how to delete duplicate rows from a specified table(only
single table)
how do you know which join is need to be used

Answer Posted / yankee

If you wish to remove duplicate values, then use the
DISTINCT parameter.
Consider there is a table:emp, with deptno. as one of its
coloumn. This coloumn has repeated values. Then you should
use the following query to remove the duplicate values:
SELECT DISTINCT deptno FROM emp;

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is myisam? : Sql dba

578


What sql does db2 use?

544


What is database migration?

519


Does truncate require commit?

546


What does over partition by mean in sql?

533






What is rownum in sql?

559


Which constraints we can use while creating database in sql?

617


What is a crud api?

502


What does inner join mean?

558


What is the difference between joins?

536


What are different types of statements supported by sql?

609


What is parameter substitution in sql?

525


how to rename an existing table in mysql? : Sql dba

576


Can a primary key be a foreign key?

577


In a distributed database system, can we execute two queries simultaneously?

569