How will you select unique values from a list of records?
Answer Posted / 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 |
Post New Answer View All Answers
Can we create clustered index without primary key?
Can delete statement be rollbacked?
What is attribute indicator in pl sql?
Is left join same as inner join?
Can a select statement fire a trigger?
what are all different types of collation sensitivity? : Sql dba
What is the use of desc in sql?
how can I make a script that can be bi-language (supports english, german)? : Sql dba
What is trigger types of trigger?
What are the different ways to optimize a sql query?
Is sql sequential or random?
What is trigger and stored procedure in sql?
Define sql delete statement.
How to add new employee details in an employee_details table with the following details
What is the difference between execution of triggers and stored procedures?