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

Answer by Oleg

Because your PC Table has 2 columns storing the printer IDs, you just need to join this table with your printer table twice, once for each ID. Here is the script: select pc.Asset, printer.[Path]...

View Article



Answer by Grant Fritchey

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...

View Article

Answer by Oleg

Because your PC Table has 2 columns storing the printer IDs, you just need to join this table with your printer table twice, once for each ID. Here is the script: select pc.Asset, printer.[Path]...

View Article

Answer by Grant Fritchey

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...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images