How will you select unique values from a list of records?
Answers were Sorted based on User's Feedback
Answer / os reddy
select distinct * from emp;
OR
select unique * from emp;
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / eshwer
by using min(rowid) or max(rowid). its like deleting duplicate values.
select columns from emp where rowid not in[in] (select maxrow(id) from emp group by columns);
| Is This Answer Correct ? | 0 Yes | 0 No |
What is faster join or subquery?
how to give permission to users that users can update/insert/delete on a row of table on timeing 10am to 6pm only?
explain the difference between delete , truncate and drop commands? : Sql dba
Define select, insert, create, delete, update, drop keywords
How do I tune a sql query?
Is sql a case sensitive language?
Explain raise_application_error.
what are the differences between binary and varbinary? : Sql dba
What are the different parts of a package?
What is the advantage of index in sql?
display records from 5 to 9 using rowid or rownum
What is program debugging?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)