Quantcast
Channel: Answers for "Trying to UNION 2 SELECTs from same tables"
Browsing all 4 articles
Browse latest 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

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 all 4 articles
Browse latest View live




Latest Images