Write one update command to update seqno field of a table
on the basis of row number.

Answer Posted / gourvendra singh

You can update the seqno which is having the rownum=1 only.
for eg:
If you have a table dept in scott user, you can try the
following command:-

update dept
set deptno=90
where rownum=1;

the above will update the record of the table which having
the rownum=1. and if you want to update some other record
then you have to make query to make the required record as
the first record of the table.

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many sql commands are there?

675


What is the difference between view and stored procedure?

498


Why stored procedure is faster than query?

519


Why use triggers in sql?

505


Can you join views in sql?

544






how to create a new view in mysql? : Sql dba

500


Could you please provide oca (oracle 10g) dumps for my certification ?

4515


what are the different type of normalization? : Sql dba

556


How many types of literals are available in pl sql?

520


Explain the insert into statements in sql?

569


Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?

623


how tsql statements can be written and submitted to the database engine? : Transact sql

538


Who is the owner of mysql database?

553


Write an sql query to select all records from the table?

558


Explain what is table in a database?

583