my table has two column columnname and data
i issue a simple sql like select * from mytable then data is showing like
colname data
------------------- -----------
JID 41185
WID 0
AccountReference LH169
OEReference Ari002
InvoiceNumber 0
but i want to display data in different way like
JID WID AccountReference OEReference InvoiceNumber
41185 0 LH169 Ari002 0
if i need to show data horizentally then what sql i need to issue……….please help.
you can try below links. contains tutorials for the usage of Pivot.
Link1
Link2