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 |
How to determine the service pack currently installed on SQL Server?
What is the Query of getting last 10 transaction Reports (like insert, update, Delete Data from Tabele) ?
what is the difference between Delete and Truncate command in SQL
Which sql server table is used to hold the stored procedure scripts?
How to create new databases with "create database" statements?
what is the maximum size of sql row in mssql?
How real and float literal values are rounded?
Stored Procedure returns data from multiple tables. How to access it in your ASP.Net code?
Tell me what is use of except clause? How it differs from not in clause?
Define union, union all, minus, intersect?
When you should use a low fill factor?
How you can get a list of all the table constraints in a database?
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)