S
Steve Klett
Hi-
this is not a complicated question and probably get's asked often....
with that said, here is what I am trying to do. I have 3 tables
table1 (products)
ProdId
ProdName
ProdParentId
table2 (faq_categories)
CatId
ProdId
CatName
table 3 (faq_main)
FaqId
CatId
Question
Answer
What I want to do is get join all the "faq_categories" that match certain
criteria in "products", then join all the "faq_main" that match the relevant
faq_categories"
Maybe it will make more sense if I show you how I would like to render the
data
Product1
Category 1
Q:asdasd
A:asdagt345dfg
Category 2
Q:asdflwfybsdf
A:adkbafj
Product2
Category 3
Q:asdfhkasfsd
A:sdfh34hfsdf
So, with that said... how do I do this? Is there a way to get them all at
once or do I need to do subqueries? At the least what I would like to be
able to do is get the "products" and "faq_categories" with the same query.
Looking for help, not sure what to do. Thanks!
Steve
this is not a complicated question and probably get's asked often....
with that said, here is what I am trying to do. I have 3 tables
table1 (products)
ProdId
ProdName
ProdParentId
table2 (faq_categories)
CatId
ProdId
CatName
table 3 (faq_main)
FaqId
CatId
Question
Answer
What I want to do is get join all the "faq_categories" that match certain
criteria in "products", then join all the "faq_main" that match the relevant
faq_categories"
Maybe it will make more sense if I show you how I would like to render the
data
Product1
Category 1
Q:asdasd
A:asdagt345dfg
Category 2
Q:asdflwfybsdf
A:adkbafj
Product2
Category 3
Q:asdfhkasfsd
A:sdfh34hfsdf
So, with that said... how do I do this? Is there a way to get them all at
once or do I need to do subqueries? At the least what I would like to be
able to do is get the "products" and "faq_categories" with the same query.
Looking for help, not sure what to do. Thanks!
Steve