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 |
Can we use pl sql in mysql?
what is oltp (online transaction processing)? : Sql dba
how would concatenate strings in mysql? : Sql dba
Why cross join is used?
What is multiple columns?
What will you get by the cursor attribute sql%found?
What is before trigger?
Is a foreign key always unique?
how to get help information from the server? : Sql dba
I have a table with 1 million records out of which 10,000 records are of unique records, then if I will implement index, then which type of index shall I use and why shall I use?
How many types of triggers exist in pl/sql?
What is cursor and its types?