Hey there.
Here's the basic idea:
table THINGS (thing1type smallint, numthing1 smallint, thing2type smallint, numthing2 smallint, thing3type smallint, numthing3 smallint)
table THING_TYPES (thingnum smallint, attribute1 smallint, attribute2 smallint, attribute3 smallint)
table ATTRIBUTE1_INFO (attributenum smallint, name varchar, nickname varchar, description varchar)
(similar tables exist for each of the 3 attribute types)
I would like to get a query where my result is the nicknames of the attributes:
(thing1.attribute1.nick, thing1.attribute2.nick, thing1.attribute3.nick, numthing1, thing2.attribute1.nick, thing2.attribute2.nick, thing2.attribute3.nick, numthing2,...)
But, for the life of me, I can't figure out how to make that complex of a select statement.
Would someone please make a suggestion? (either how to clean up my database, but preferably, how to select from it as is)
-nathan sheldon
Here's the basic idea:
table THINGS (thing1type smallint, numthing1 smallint, thing2type smallint, numthing2 smallint, thing3type smallint, numthing3 smallint)
table THING_TYPES (thingnum smallint, attribute1 smallint, attribute2 smallint, attribute3 smallint)
table ATTRIBUTE1_INFO (attributenum smallint, name varchar, nickname varchar, description varchar)
(similar tables exist for each of the 3 attribute types)
I would like to get a query where my result is the nicknames of the attributes:
(thing1.attribute1.nick, thing1.attribute2.nick, thing1.attribute3.nick, numthing1, thing2.attribute1.nick, thing2.attribute2.nick, thing2.attribute3.nick, numthing2,...)
But, for the life of me, I can't figure out how to make that complex of a select statement.
Would someone please make a suggestion? (either how to clean up my database, but preferably, how to select from it as is)
-nathan sheldon