How would you retrieve Unique rows from table without using UNIQUE and DISTINCT keyword?
Answers were Sorted based on User's Feedback
Answer / jayanth
using union
select * from tableA
union
select * from tableB
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / virendra maurya
We can simply remove duplicate from table
1. Using CTE
2. Using Group by
3. Using Rank function
Is This Answer Correct ? | 0 Yes | 1 No |
What is a result set object returned by odbc_exec()?
What is the main difference between ‘between’ and ‘in’ condition operators?
hi ..i am working as a sql dba.....now i want to learn more about t-sql..... is it possible to learn online.... plz refer any site ..thankq
What is the Disadvantage of indexed sequential file.
Explain how to maintain a fill factor in existing indexes?
Define self join?
What is the stuff and how does it differ from the replace function?
How to retrieve error messages using odbc_errormsg()?
What is SCOPE_IDENTITY() in sql
What is sql or structured query language?
What are the difference between data mart and data warehouse? : sql server analysis services, ssas
What is a functions and types in sql server?