Quantcast
Channel: Answers for "Trying to UNION 2 SELECTs from same tables"
Browsing latest articles
Browse All 4 View Live

Answer by JohnM

Why can't you just put it all in one statement? Like this: SELECT ca.Name AS AgeGroup, ca.Category FROM Category AS ca INNER JOIN Category AS parentca ON ca.ParentCategoryID = parentca.CategoryID INNER...

View Article



Answer by MarcTemkin

If I understand your question correctly then a solution for your problem is: SELECT DISTINCT ca.Name AS AgeGroup , cn.Name AS CategoryName FROM Category AS ca INNER JOIN Category AS parentca ON...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images