troubleshooting Question

I'm needing help with pulling all of the categories in my table

Avatar of brihol44
brihol44 asked on
9 Comments1 Solution258 ViewsLast Modified:

I have the code attached and I have two tables with main categories and sub-categories. I'm needing to pull all of the main categories even if there isn't a related ID_KEY in the sub-categories table.

My query now just seems to pull records that only join a sub-category id to main category id

Thank you,


      FROM bg_2011_categories t1
      LEFT JOIN bg_2011_sub_categories t2
             ON t1.id_category = t2.category_id

Open in new window

Join our community to see this answer!
Unlock 1 Answer and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros