How will you select unique values from a list of records?

Answer Posted / os reddy

select distinct * from emp;

OR

select unique * from emp;

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is 'mysqlcheck'? : Sql dba

573


What is auto increment feature in sql?

621


What is the usage of when clause in trigger?

567


what is the difference between join and union? : Sql dba

548


Is grant a ddl statement?

453






Does sql use python?

563


Which join is default?

519


Why are sql stored procedures used?

617


i have 2 table table one 4 columns respective values a1 7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same then 4th column values 1)Qes diff >5 then print 5 * diff value 2)Que diff <5 print 5

3202


What is full join in sql?

525


Why is sql important?

578


what are aggregate and scalar functions? : Sql dba

552


How do I view a sql trace file?

566


What are actual parameters and formal parameters?

570


Which is better join or inner query?

518