We have a table as
table01 (rollno, etcs100, etcs101, etcs102)
table02 (serialno, subjectcode)
I want to select a value from table02 (ie. subjectcode = "etcs100" )
and match this value from Column Name of table01 and update this column value by 1.
UPDATE TABLE01
SET (SELECT SUBJECTCODE 
     FROM table02 WHERE SERIALNUMBER = '1') 
         = (SELECT SUBJECTCODE FROM table02 
             WHERE SERIALNUMBER = '1') + 1
WHERE rollno = 1
We are looking for a query like this. we are using oracle database
 
    