In table three columns with 1 milion records(here there is
no sequence values) i want add one more column with
sequence values from the first how it is posible?

Answer Posted / mohamed shahid

CREATE TABLE T AS SELECT ROWNUM AS seq,emp.* FROM emp;

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain commit and rollback in mysql : sql dba

547


What is the current version of sql?

540


Why sql query is slow?

583


Mention what problem one might face while writing log information to a data-base table in pl/sql?

676


How to use distinct and count in sql query? Explain

612






What is a sql select statement?

572


what is the difference between group by and order by in sql? : Sql dba

600


what is row? : Sql dba

712


How can one get sql*loader to commit only at the end of the load file? : aql loader

572


What are two statement types in sql?

540


Is keyword pl sql?

562


What is the difference between the conventional and direct path loader? : aql loader

654


How is indexing done in search engines?

531


What is the cause of mutating table error and how can we solve it?

602


Table A Table B 1 1 2 1 3 1. Union & union all --> A Union B , A Union all B 2. Minus , Intersect --> A minus B , B Minus A , A Intersect B 3. Joins A join B , A Left Join B A Right Join B , A full Join B 4. %Type - Uses & Benifit 5. Truncate & Delete 6. Pragma Autonomus Transaction 7. how to Perform DDL from function or procedure 8. Can we have DML inside Function 9. Rank & Dense Rank diffrence 10. Water Mark in Oracle 11. Index , Can we have index in all column of table if no then why ?

536