Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL Query 2 tables

$
0
0

I have a 2 tables, an item table and an item price table with a sample data and the output that I need, the structure are:

Item Table  

 Item   Description

 ABC1   ABC Table

Item Price Table

 Item   Quantity Price

 ABC1    0    100

 ABC1  10    90

 ABC1  20    80

Output

 Item     Description  Qty1  Price1  Qty2  Price2  Qty3  Price3

 ABC1   ABC Table   0    100   10   90    20   80

Any help in editing the SQL query for this to happen would be greatly appreciated. 


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>