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 |
Which one is the Best approach to put code, among Triggers and Procedures? Explain?
What are all different types of collation sensitivity?
What is the difference between the conventional and direct path loads? : aql loader
how to start mysql server? : Sql dba
What is a pdo connection?
what is single byte over head in oracle..?
What are different types of refreshment techniques of materialised view
What is a Mapplet?
What are the different dml commands in sql?
What is cursor status?
How do you delete duplicates in sql query using rowid?
How to get the procedure's, function's name from a package if it is wrapped(both spec & body).
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)