Exam 6: Introduction to SQL

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

A major benefit of SQL as a standard is reduced training costs.

(True/False)
4.7/5
(29)

What will be returned when the following SQL statement is executed? Select driver_no, count(*) as num_deliveries From deliveries Where state = 'MA' Group by driver_no;

(Multiple Choice)
4.9/5
(36)

What three clauses are contained in most SQL retrieval statements?

(Essay)
4.9/5
(36)

Which of the following is a technique for optimizing the internal performance of the relational data model?

(Multiple Choice)
4.8/5
(29)

The asterisk (*) wildcard designator can be used to select all fields from a table as well as in WHERE clauses when an exact match is not possible.

(True/False)
4.9/5
(46)

The following two SQL statements will produce the same results. Select last_name, first_name from customer where credit_limit > 99 and credit_limit < 10001; Select last_name, first_name from customer where credit_limit between 100 and 10000;

(True/False)
4.8/5
(38)

Any create command may be reversed by using a(n) ________ command.

(Multiple Choice)
4.9/5
(35)

When the SELECT clause in the create view statement contains the keyword DISTINCT, the view can be used to update data.

(True/False)
4.9/5
(35)

What is a materialized view, and when would it be used?

(Essay)
4.9/5
(39)

The WHERE clause is always processed before the GROUP BY clause when both occur in a SELECT statement.

(True/False)
4.7/5
(38)

Which of the following can produce scalar and vector aggregates?

(Multiple Choice)
4.9/5
(28)

The ALTER TABLE command is used to change a table definition.

(True/False)
4.8/5
(38)

If multiple Boolean operators are used in an SQL statement, NOT is evaluated first, then AND, then OR.

(True/False)
4.9/5
(40)

The DROP command deletes rows from a table individually or in groups.

(True/False)
4.8/5
(25)

The following two SQL statements will produce different results. Select last_name, first_name from customer where state = 'MA' or state = 'NY' or state = 'NJ' or state = 'NH' or state = 'CT'; Select last_name, first_name from customer where state in ('MA','NY','NJ','NH','CT');

(True/False)
4.7/5
(35)

Discuss when to use the GROUP BY clause.

(Essay)
4.8/5
(31)

What steps should be followed when preparing to create a table?

(Essay)
4.8/5
(32)

The ORDER BY clause is the first statement processed in an SQL command.

(True/False)
4.7/5
(30)

Given a table named store with 5 fields: store_id, address, city, state, zipcode, why would the following insert command not work? insert into store values ('234 Park Street')

(Multiple Choice)
4.9/5
(38)

Count(*) tallies only those rows that contain a value, while Count counts all rows.

(True/False)
4.7/5
(31)
Showing 61 - 80 of 105
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)