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 / seethal

select stu_name from(select stu_name,count(stu_name) sc from
stu_table group by stu_name)where sc > 1;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I get column names from a table in oracle?

534


HI ALL, CAN ANYONE TELL ME THE DIFFERENCES BETWEEN SQL CLUSTURS,MSQL CLUSTERS,ORACLE CLUSTERS.......THANKS IN ADVANCE

1785


What do you mean by merge in oracle and how can you merge two tables?

522


Explain constraining triggers.

593


How many types of auditing in Oracle?

566






Explain oracle data types with examples?

575


What is a synonym? What are its various types?

622


Use of an integrity constraint is better to validate data. Explain

545


When do we use group by clause in a sql query?

569


What is the difference between the Oracle ODBC driver and a Microsoft ODBC (Open Database Connectivity) Driver?

614


Define oracle database

596


What are a query and state the different types of queries and their uses?

510


What do you mean by merge in oracle?

591


Explain the use of rows option in exp command.

585


What is Redo Log Buffer in Oracle?

630