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