I have been trying to match 2 tables to produce a set of results showing all records from Features and any that match
in StockFeatures and to show the CarID.
StockFeatures will have other CarID and these should not be returned.
View1
View2
Results
This produces a list of all Feature along with the CarID where they match.
I'm want to know if there is a simple way of doing this in one query as this final query will not work when I use in my coldfusion app (this is not a question about CF, it does not support outer joins in query on query)
in StockFeatures and to show the CarID.
StockFeatures will have other CarID and these should not be returned.
View1
Code:
SELECT CarID, Feature
FROM v100cars.StockFeatures
WHERE (CarID = 16)
Code:
SELECT Feature
FROM v100cars.Features
WHERE (NOT (Feature LIKE N' %'))
Code:
SELECT View1.CarID, View2.Feature
FROM View1 RIGHT OUTER JOIN
View2 ON View1.Feature = View2.Feature
I'm want to know if there is a simple way of doing this in one query as this final query will not work when I use in my coldfusion app (this is not a question about CF, it does not support outer joins in query on query)