Hi there,
I'm trying to figure out the best way to do this, and coul duse some input. I currently have a few data columns with primary keys KEYA KEYB KEYC, and a few other data columns with pk KEYA, KEYB, KEYC, KEYD, and a few OTHER columns with pk KEYA, KEYB.
Right now I have three tables (actually, there are even more like this, but I will keep it simple), one table for each set of PKs. This is a complete waste of space, and getting all the KEYA fields to match correctly for joins if I change the name of one of the keys is a pain.
I perform a successive sequence of calculation queries on these tables, creating temp tables along the way, and end up with a final result.
Is there a better way to organize this?
I'm trying to figure out the best way to do this, and coul duse some input. I currently have a few data columns with primary keys KEYA KEYB KEYC, and a few other data columns with pk KEYA, KEYB, KEYC, KEYD, and a few OTHER columns with pk KEYA, KEYB.
Right now I have three tables (actually, there are even more like this, but I will keep it simple), one table for each set of PKs. This is a complete waste of space, and getting all the KEYA fields to match correctly for joins if I change the name of one of the keys is a pain.
I perform a successive sequence of calculation queries on these tables, creating temp tables along the way, and end up with a final result.
Is there a better way to organize this?