write a query to dispaly those name who is more than one in
student table?

example- in a student table sandeep kumar comes 4 times,
rakesh kumar comes 2 times, ajit kumar comes 1 times so
query will display sandeep kumar and rakesh kumar single
times.

Answer Posted / dheer

select v_id from dup where rowid not in (select max(rowid)
from dup group by v_id);

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use null as conditions in oracle?

582


Can I create users through internet explorer in oracle 10g?

570


Explain the use of tables option in exp command.

591


How to create additional tablespaces for an new database?

570


Explain the difference between replace() and translate() functions in oracle?

580






What is key preserved table?

562


Why cursor variables are easier to use than cursors?

570


How to select an oracle system id (sid)?

587


Is there any way to find out when one specific table/view/M-view is used last time. i.e. when one specific object is used in any SELECT statement.

859


What is the difference between a primary key & a unique key?

590


How to update a table row with a record?

597


What are the attributes that are found in a cursor?

650


How to write text literals in oracle?

609


What is define in oracle?

565


Explain the use of rows option in imp command.

604