Supressing Duplicate Rows : = Sometimes, your query results contain duplicate rows. You can eliminate such rows by adding the keyword DISTINCT immediately after the keyword SELECT. Multiple columns can be declared after the DISTINCT qualifier. The DISTINCT qualifier affects all the selected columns, and represents a DISTINCT combination of the columns. When DISTINCT is implemented upon a column which may contain NULL values, all the NULLS in the column together treated as one DISTINCT group. A select statement should have one DISTINCT keyword. Examples := Ø Select DISTINCT deptno from emp; Ø Select DISTINCT deptno,mgr from emp; Ø Select DISTINCT deptno,job from emp; HOME
Welcome to our blog for SQL and PLSQL. Here you will find about the SQL basic to advance level things along with PLSQL. Also you will get the latest SQL related Interview questions and answers. I hope you will get the things you are looking for here. Happy learning for SQL and PL-SQL.