English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

Write a SQL statement using the DISTINCT keyword. - Computer Science

Advertisements
Advertisements

Question

Write a SQL statement using the DISTINCT keyword.

Short Note

Solution

DISTINCT keyword:

The DISTINCT keyword is used along with the SELECT command to eliminate duplicate rows in the table. This helps to eliminate redundant data. For

Example

SELECT DISTINCT Place FROM Student;
Will display the following data as follows :
SELECT * FROM Student;

Output
Place
Chennai
Bangalore
Delhi

shaalaa.com
SQL Commands and Their Functions
  Is there an error in this question or solution?
Chapter 12: Structured Query Language (SQL) - Evaluation [Page 231]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 12 Structured Query Language (SQL)
Evaluation | Q 5. | Page 231
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×