Switch to full style
Include SQL commands
Post a reply

SQL DISTINCT Command

Sun Jul 15, 2012 10:49 pm

To avoid duplicate records in select query results you can use DISTINCT command :

Code:

SELECT DISTINCT 
FROM Department


or you can limit it to a specific column :

Code:

SELECT DISTINCT departmentName FROM Department




Post a reply
  Related Posts  to : SQL DISTINCT Command
 BETWEEN SQL COMMAND     -  
 PHP echo command     -  
 Average SQL command     -  
 SQL COUNT Command     -  
 JVM does not recognize MQ command.     -  
 SQL LOCATE command     -  
 Calling the man Command     -  
 SQL LIKE query Command     -  
 SQL ALTER Command     -  
 SQL GROUP BY Command     -