how to delete duplicate rows from a specified table(only
single table)
how do you know which join is need to be used
Answers were Sorted based on User's Feedback
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 | 3 No |
Which is faster joins or subqueries?
Do prepared statements prevent sql injection?
Can pl sql procedure have a return statement?
How does left join work in sql?
How many LONG columns are allowed in a table?
What are the different types of a subquery?
What is a schema? How is it useful in sql servers?
What is the command used to fetch first 5 characters of the string?
Is join an inner join?
what is a sub query?how will you calculate working days in a month using sub query?
What view means?
What is a record in pl/sql?
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)