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 difference between my sql and sql?
what is an execution plan? When would you use it? How would you view the execution plan? : Sql dba
Mention what problem one might face while writing log information to a data-base table in pl/sql?
What do you mean by stored procedures?
What is the difference between execution of triggers and stored procedures?
Can we interchange parameters in procedure while calling
What are character functions?
Hello All, Could any well write a query for the following scenario. Account(table name) No Name Amount 1 ABCD 2000.00 2 DEFG -2000.00 3 GHIJ 3000.50 4 JKLM 4000.00 5 MNOP 6000.00 O/p Should be in this format No Name Credit Debit 1 ABCD 2000.00 0 2 DEFG 0 -2000.00 3 GHIJ 3000.50 4 JKLM 0 -4000.00 5 MNOP 6000.00 o could any one give appropriate query for this Thnks in Advance
What are the string functions in sql?
What is sql*loader?
how to shut down the server with 'mysqladmin'? : Sql dba
While inserting/updating million of records into a database table, how do I came to know how many records has been inserted or updated successfully so far?