oracle11g - Display Result From one column in SQL -
i have 1 table stores row id , col id different item name , related quantity....which described follows....
rowid colid value 3 2 laptop 4 2 mouse 4 4 80 3 4 50
i need output:
value qty laptop 50 mouse 80
select a.value value, b.value qty (select rowid, value test colid = 2 order rowid) a, (select rowid, value test colid = 4 order rowid) b a.rowid = b.rowid
Comments
Post a Comment