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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -