Select Query
- 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 ().
- 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 Clause is used to select a particular table in Mysql?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
FROM
- 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.
- What will be the result of the query given below?
SELECT Student_id,
‘ACTIVE’ STATUS,
Student_id * 3.14 Student_pi,
UPPER (LName) Last_Name
FROM Student;
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Status, Student_pi, Last_Name are “column aliases”.