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

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

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create an oracle testing table?

591


How to pass a cursor variable to a procedure?

560


How index is implemented in oracle database?

596


How to rename an existing table?

607


What is oracle analytical function?

526






How to initialize variables with default values?

634


How to check database size in Oracle?

639


How can I see all tables in oracle?

542


Is oracle an operator?

534


Give the advantages and disadvantages of clusters.

576


src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));

1179


What are the different types of synonyms?

594


Explain self joins in oracle?

561


What is a system tablespace and when it is created?

560


what is normalisation?what are its uses?

1761