Q) To combine the result-set of two or more SELECT statements, SQL clause used is
- SQL UNION
- SQL JOIN
- SQL GROUP BY
- NONE
Answer: 1
SQL Join statement is used to combine result set from two or more tables.
Q) In a sql subquery , which operator is used to check for existence of record ?
- SQL NOT NULL
- SQL AS
- SQL EXISTS
- NONE
Answer: 3
The EXISTS operator returns true if the subquery returns one or more records.
Q) Correct SQL query syntax to update a record from a table is
- UPDATE table_name
SET column1 = value1, column2 = value2, …
WHERE condition;
- UPDATE table_name
SET COLUMN column1 = value1, column2 = value2, …
WHERE condition; - UPDATE table_name
UPDATE column1 = value1, column2 = value2, …
WHERE condition; - UPDATE table_name
column1 = value1, column2 = value2, …
WHERE condition;
Answer: 1
Q) Which is called as a virtual table in SQL?
- INNER JOIN
- JOIN
- VIEW
- NONE
Answer: 3
In SQL, the view is a virtual table based on the result-set of an SQL statement.