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.

Answers were Sorted based on User's Feedback



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

Answer / neha_gupta

select ename,count(1) from student
group by ename
having count >1

Is This Answer Correct ?    9 Yes 1 No

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

Answer / u.radha

SELECT STUD_NAME,COUNT(*) FROM STUDENT GROUP BY STUD_NAME
HAVING COUNT(*) > 1

Is This Answer Correct ?    8 Yes 1 No

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

Answer / gourav

select first_name,count(*) from employees
group by first_name
having count(*)>1;

Is This Answer Correct ?    3 Yes 0 No

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

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

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

Answer / u.radha

select distinct student_name from student;

Is This Answer Correct ?    4 Yes 3 No

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

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

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

Answer / abc

SELECT name FROM student_table
GROUP BY name
HAVING ( COUNT(name) > 1 );

Is This Answer Correct ?    1 Yes 0 No

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

Answer / cheeku

select distinct NM from
(
(select name from student_tbl M where exists
(select 1 from student_tbl S where
S.name = M.name and
S.rowid <> M.rowid)
)NM;

Is This Answer Correct ?    0 Yes 1 No

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

Answer / valmiki sreenivasulu

A)select sname from student group by sname;

Is This Answer Correct ?    3 Yes 4 No

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

Answer / abrar yaseen

select student_name from student group by student_name
having count(OCCURANCE) > 1

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More Oracle General Interview Questions

You have found corruption in a tablespace that contains static tables that are part of a database that is in NOARCHIVE log mode. How would you restore the tablespace without losing new data in the other tablespaces?

0 Answers  


what is the scripts in data base?

0 Answers  


What are the uses of a database trigger?

0 Answers  


What is the maximum number of CHECK constraints that can be defined on a column ?

3 Answers  


What is a sub query and what are the different types of subqueries?

0 Answers  






8. Display the client name and order date for all orders using the natural join keywords.

1 Answers   Wipro,


For a field in a repeating frame, can the source come from the column which does not exist in the data group which forms the base for the frame ?

0 Answers   Oracle,


what is difference between DBMS and RDBMS?

2 Answers   Metric Stream,


Display the records between two range?

2 Answers  


What is cluster Key ?

3 Answers  


t1 col1 col2 nishi 5000 lucky 6700 akash 7000 i want that a query that when i insert 7000 it will show me data already present and data will not insert. if data is not present it will insert.

2 Answers   MasterCard,


What is COST-based approach to optimization ?

5 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)