RRB Junior Engineer / DMS / CMA 2019 · Question 3686 of 3719
The SELECT DISTINCT statement is used to return only distinct (different) values. Syntax SELECT DISTINCT column1, column2, ... FROM table_name; For example There is a table name Student_details having few attributes Student Name Department City A CSE Haridwar B CE Haridwar C ME Dehradun D CSE Rishikesh E IT Rishikesh Without DISTINCT The following statement returns all cities of all Students in the Student_details tables: SELECT city FROM Student_details; City Haridwar Haridwar Dehradun Rishikesh Rishikesh As you can see clearly from the output, the cities are duplicate. With DISTINCT SELECT DISTINCT city FROM Student_details City Haridwar Dehradun Rishikesh
Source: RRB JE 2019 (CBT 2) (IT) Previous Year Paper (30 Aug 2019) — prepp.in solved-paper PDF (answer key with explanations) · reliable-secondary
Practice the full RRB Junior Engineer / DMS / CMA 2019 paper
Timed test with all 3719 questions, just like the real exam.
Start test