Select Query
- What is the need of “column Aliases” in “SELECT” clause?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
“Column Aliases” are used to assign a new label to the columns in the result set without actually changing the column name.
- Is there any error in executing the following query?
SELECT USER (),
VERSION (), DATABASE ();
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Clause “FROM” is not necessary when we used “Built in” function with “SELECT” clause.
- Is there any error in executing the following query?
SELECT Student_id, ‘ACTIVE’,
Student_id * 3.145,
UPPER (LastName)
FROM Student;
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
“SELECT clause” includes the following: Literals like ‘ACTIVE’, Expressions like Student_id*314, Built_in functions like UPPER ().
- Which among the following can also be included with “SELECT” clause while writing query in Mysql?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
“SELECT clause” can also include Literals like ‘ACTIVE’, Expressions like emp_id*314, Built_in functions like UPPER ().
- Which clause is mandatory with clause “SELECT” in Mysql?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
“SELECT” clause cannot be used without clause “FROM”.