Informatics Practices
Which of the following keywords is used to display non-repeated values in MySQL?
- Unique
- All
- Order by
- Distinct
Relational Database
2 Likes
Answer
Distinct
Reason — The DISTINCT
keyword is used to display the unique values of the column in MySQL.
Answered By
3 Likes
Related Questions
Which of the following are DDL commands?
(A) Delete
(B) Create
(C) Update
(D) Alter
(E) Drop
- (B), (D) and (E)
- (A), (B) and (D)
- (B), (C) and (D)
- (A), (B) and (C)
Identify the correct statement(s):
Statement 1 (S1): Char data type in MySQL stores fixed length strings.
Statement 2 (S2): Char data type stores string smaller than the maximum field size.
- (S1) : Correct, (S2) : Correct
- (S1): Incorrect, (S2) : Correct
- (S1): Correct, (S2) : Incorrect
- (S1) : Incorrect, (S2) : Incorrect
The SQL statements always end with …………… .
- ,
- :
- ;
- "
Shivam wants to see the table structure in MySQL. Select an appropriate command to help him.
- Use
- Show
- Desc
- Display