adplus-dvertising
frame-decoration

Question

The following SQL statement is invalid.
SELECT abc, xyz FROM table1 UNION abc, def FROM table2;

a.

True

b.

False

c.

May be True or False

d.

Can't say

Posted under MySQL Database

Answer: (b).False

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The following SQL statement is invalid.

Similar Questions

Discover Related MCQs

Q. Which keyword used with UNION does not retain duplicate rows?

Q. Which keyword used with UNION retains duplicate rows?

Q. The UNION ALL has a higher precedence than UNION DISTINCT.

Q. Which clause is used to sort a UNION result as a whole?

Q. Suppose it is desired that UNION operation should return not more than 3 rows. Which keyword is used for this?

Q. Which table is used to run a UNION-type query on MyISAM tables?

Q. SELECT on a MERGE table is like _____________

Q. Which of these is also known as a virtual table?

Q. A View can be used to select a subset of the table columns.

Q. A view can refer to multiple tables via __________

Q. Views are not updatable.

Q. A view can be deleted using the command __________

Q. What cannot be done on a view?

Q. What can be used to check for views that have been invalidated by DROP or ALTER operations?

Q. Which of the following does not support a materialized view?

Q. To perform a delete on a single-table, how is the name of a column qualified?

Q. A multiple-table delete can apply any join.

Q. Qualifying the name of column with the table name is not necessary in single-table updates.

Q. UPDATE statement is a DML statement. What does DML stand for?

Q. Which keyword in the UPDATE statement is used to assign values to columns?