- Miscellany
- Tuesday, August 14th, 2007 at 10:02:07pm MDT
- This is the table i would like to use as the referance that has all the data and tells the query where to get the other data
- Table1
- |--|----|----------|----------|------------|
- |ID|Name|Referance1|Referance2|Referance...|
- |--|----|----------|----------|------------|
- |1 |K491|13 |43 |786 |
- |--|----|----------|----------|------------|
- The other data is stored here
- Table2
- |------|--------|----|
- |DataID|DataName|Data|
- |------|--------|----|
- |13 |Bleh |Sam |
- |------|--------|----|
- |43 |Dogs |Dig |
- |------|--------|----|
- |Random|DataName|Dat |
- |------|--------|----|
- |Random|DataName|Dat |
- |------|--------|----|
- |Random|DataName|Dat |
- |------|--------|----|
- |Random|DataName|Dat |
- |------|--------|----|
- This is what i would like to recive in the end
- Result
- |--|----|----------|----------|------------|--------|----|--------|----|
- |ID|Name|Referance1|Referance2|Referance...|Name1 |Data|Name2 |Dat2|
- |--|----|----------|----------|------------|--------|----|--------|----|
- |1 |K491|13 |43 |786 |Bleh |Sam |Dogs |Dig |
- |--|----|----------|----------|------------|--------|----|--------|----|
- I had tryed somthing like join until i relised that that would be no good as it would only join 1 row
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.