Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
nacnac
Starting Member
2 Posts |
Posted - 2008-08-21 : 06:52:40
|
| This is simplified but basically the situationI have 3 tables; customercust_idcust_nameproductsprod_idprod_pricecustom_pricecust_idprod_idcustom_prod_priceCustomers may or may not have custom prices in the custom_prices table. What I would like is a query listing all the products in the products table and if they are available the custom prices joined to the products for an individual customer.thanks for any help out there! |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-08-21 : 07:03:03
|
| [code]select *from products pleft join custom_price cpon cp.prod_id=p.prod_idleft join customer con c.cust_id=cp.cust_id[/code]replace * with your actual columns. |
 |
|
|
nacnac
Starting Member
2 Posts |
Posted - 2008-08-21 : 09:16:47
|
| thanks a lot! |
 |
|
|
|
|
|