Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3074

convert Rows as Column

$
0
0

Dear All

below query is working fine but I do want to bit change in existing. If there is more than on item in document then the results are being repetitive in rows.

I do want that if there are 2 item or three item in document than there should be 2 or three column for item code and quantity in report.

 

Select T0.NumAtCard,T0.DOCNUM AS

'ExInvoiceNo',CONVERT(VARCHAR(11), t0.docdate, 101) AS Posting_date,T12.FormNo,--T0.U_VHCLNo,

T0.DOCTOTAL,T1.SubCatnum AS 'PartNo.',T1.Quantity

from OINV T0,INV1 T1  ,INV12 T12

Where T0.Docentry = T1.DocEntry

AND  T0.Docentry = T12.DocEntry

And T0.DOCNUM >=[%0] and t0.docnum <= [%1]

 

 

Thanks in advance


Viewing all articles
Browse latest Browse all 3074

Trending Articles



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