Sail E0 Webinar

MCQs

Total Questions : 109 | Page 8 of 11 pages
Question 71. The result of a SQL SELECT statement is a ________ .
  1.    file
  2.    report
  3.    table
  4.    form
 Discuss Question
Answer: Option C. -> table
Question 72. In an SQL SELECT statement querying a single table, according to the SQL-92 standard the asterisk (*) means that:
  1.    all columns of the table are to be returned.
  2.    all records meeting the full criteria are to be returned.
  3.    all records with even partial criteria met are to be returned.
  4.    None of the above is correct.
 Discuss Question
Answer: Option A. -> all columns of the table are to be returned.
Question 73. Which of the following do you need to consider when you make a table in SQL?
  1.    Data types
  2.    Primary keys
  3.    Default values
  4.    All of the above.
 Discuss Question
Answer: Option D. -> All of the above.
Question 74. The HAVING clause does which of the following?
  1.    Acts EXACTLY like a WHERE clause.
  2.    Acts like a WHERE clause but is used for columns rather than groups.
  3.    Acts like a WHERE clause but is used for groups rather than rows.
  4.    Acts like a WHERE clause but is used for rows rather than columns.
 Discuss Question
Answer: Option C. -> Acts like a WHERE clause but is used for groups rather than rows.
Question 75. When three or more AND and OR conditions are combined, it is easier to use the SQL keyword(s):
  1.    NOT IN only.
  2.    LIKE only.
  3.    IN only.
  4.    Both IN and NOT IN.
 Discuss Question
Answer: Option D. -> Both IN and NOT IN.
Question 76. SQL can be used to:
  1.    create database structures only.
  2.    query database data only.
  3.    modify database data only.
  4.    All of the above can be done by SQL.
 Discuss Question
Answer: Option D. -> All of the above can be done by SQL.
Question 77. The SQL keyword BETWEEN is used:
  1.    to limit the columns displayed.
  2.    for ranges.
  3.    as a wildcard.
  4.    None of these is correct.
 Discuss Question
Answer: Option B. -> for ranges.
Question 78. Which of the following query is correct for using comparison operators in SQL?
  1.    SELECT name, course_name FROM student WHERE age>50 and
  2.    SELECT name, course_name FROM student WHERE age>50 and age
  3.    SELECT name, course_name FROM student WHERE age>50 and WHERE age
  4.    None of these
 Discuss Question
Answer: Option B. -> SELECT name, course_name FROM student WHERE age>50 and age
Question 79. How to select all data from student table starting the name from letter 'r'?
  1.    SELECT * FROM student WHERE name LIKE 'r%';
  2.    SELECT * FROM student WHERE name LIKE '%r%';
  3.    SELECT * FROM student WHERE name LIKE '%r';
  4.    SELECT * FROM student WHERE name LIKE '_r%';
 Discuss Question
Answer: Option A. -> SELECT * FROM student WHERE name LIKE 'r%';
Question 80. Which of the following SQL query is correct for selecting the name of staffs from 'staffinfo' table where salary is 10,000 or 25,000?
  1.    SELECT name FROM staffinfo WHERE salary BETWEEN 10000 AND 25000;
  2.    SELECT name FROM staffinfo WHERE salary IN (10000, 25000);
  3.    Both A and B
  4.    None of the above
 Discuss Question
Answer: Option B. -> SELECT name FROM staffinfo WHERE salary IN (10000, 25000);

Latest Videos

Latest Test Papers