How would you retrieve Unique rows from table without using UNIQUE and DISTINCT keyword?

Answer Posted / jayanth

using union
select * from tableA
union
select * from tableB

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is sql server free?

527


Where can you add custom error messages to sql server?

586


What are the different Topologies in which Replication can be configured?

649


How efficient you are in oracle and SQL server?

643


While migrating Microsoft SQL Server 2008 database to SQL Azure, what can be done to ensure the database connectivity does not degrade?

89






Which event (check constraints, foreign key, rule, trigger, primary key check) will be performed last for an integrity check?

519


What is xml datatype?

660


How to filter out duplications in the returning rows in ms sql server?

639


What is an expensive query?

540


What are the differences between DDL, DML and DCL in SQL?

758


Explain about the command-line tool SQLCMD?

557


Explain powershell included in sql server 2008?

617


List down some advantages of sql stored procedure?

565


Explain the different types of joins?

574


What is a transaction and why is it important?

574