SELECT *
FROM product A,style B,quantity C
WHERE A.product_id = B.product_id AND
B.style_id = C.style_id AND
ORDER BY A.product,B.style,F.productSize
1. You do not want to use * in this as it's going to pull all fields from
all tables- you don't need the duplicates...
2. I don't know what id names your using/what tables need left joins so
I'll say APrimary for primary key of table A/Product, etc
SELEct blah blah
from product A LEFT OUTER JOIN STYLE B on A.ProductID=B.ProductID LEFT OUTER
JOIN Quantity C
on B.Style_ID=C.Style_ID
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2003 11:57 AM
To: CF-Talk
Subject: Re: SQL Question
How do I do that with multiple tables? All the examples I have
onlu use 2 tables.
BJ
= = = Original message = = =
try a LEFT OUTER JOIN. That should work for you.
Jeff
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, June 02, 2003 8:47 AM
Subject: SQL Question
I have a MS_SQL query (simplified for this question):
I have another table that contains images for some of the products.
I would like to get back all the products that have or don't
have images. I tried using a RIGHT JOIN but I couldn't get it
working correctly.
The images use the style_id to identify which style they belong
to. So B.style_id = D.style_id (D being images)
Thoughts?
Thanks,
BJ
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
http://www.cfhosting.com
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4