Quantcast
Channel: Answers for "How to show another tables data in a specific column based on a query"
Viewing all articles
Browse latest Browse all 4

Answer by Grant Fritchey

0
0
Can't you just JOIN to the table twice? SELECT pct.Asset, pt1.Path AS PrinterID1, pt2.Path AS PrinterID2 FROM PCTable AS pct JOIN PrinterTable AS pt1 ON pct.Printerid1 = pt1.PrinterID JOIN PrinterTable AS pt2 ON pct.PrinterID2 = pt2.PrinterID BTW, points out that a better design would be to list the PC to Printer associations through an interim table so that you can do many to many joins. What happens when a PC has another printer?

Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images