Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear all,

i have a two table like this

product table
ProductID	Article_No	SeriesId
1	           SY000	1
4	           SY001	3
3	           SY001	2


productsize table

ProductID	Size	Quantity
4	       2	5
4	       5	8
4	       8	15


how to select out put table.. like this.
ProductID   Article_No  SeriesId      size   Quantity

4              SY001            3        2     5
4              SY001            3        2     8
4              SY001            3        2     15
&lt;/pre&gt;</pre>


how to create query
Posted

1 solution

use this...
SQL
select Product.ProductID,Article_No,SeriesId,size,Quantity
from productsize
left join
product on product.ProductID=  productsize.ProductID

Happy Coding!
:)
 
Share this answer
 
Comments
Amir Mahfoozi 16-Dec-12 2:23am    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900