DB SQL Exam Practice Questions and Answers
The ________ is the structure that contains descriptions of objects such as tables and views created by
users. - ANSWER✔✔-schema
________ is a set of commands used to control a database, including security. - ANSWER✔✔-DCL
________ is a set of commands used to update and query a database. - ANSWER✔✔-DML
DDL is typically used during which phase of the development process? - ANSWER✔✔-Physical design
The main concept of relational databases was published in 1970 by: - ANSWER✔✔-E.F.Codd.
Relational databases are heavily based on the mathematical concept of: - ANSWER✔✔-Set Theory.
The command for creating a database is: - ANSWER✔✔-create schema.
The SQL command ________ defines a logical table from one or more tables or views. - ANSWER✔✔-
create view
Any create command may be reversed by using a(n) ________ command. - ANSWER✔✔-drop
The first in a series of steps to follow when creating a table is to: - ANSWER✔✔-identify each attribute
and its characteristics.
The SQL command ________ adds one or more new columns to a table. - ANSWER✔✔-alter table
INSERT INTO is an example of ________ code. - ANSWER✔✔-DML
Copyright ©Stuvia International BV 2010-2024 Page 1/14
, Copyright © KAYLIN 2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED FIRST PUBLISH NOVEMBER, 2024
What does the following SQL command do? insert into Customer_T values (001,'John Smith','231 West
St','Boston','MA','02115') - ANSWER✔✔-Adds a new record to the Customer_T
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') - ANSWER✔✔-You must specify the
fields to insert if you are only inserting some of the fields.
Which of the following is a technique for optimizing the internal performance of the relational data
model? - ANSWER✔✔-Clustering data
Indexes are created in most RDBMSs to: - ANSWER✔✔-provide rapid random and sequential access to
base-table data.
In an SQL statement, which of the following parts states the conditions for row selection? - ANSWER✔✔-
Where
The first part of an SQL query to be read is the ________ statement. - ANSWER✔✔-FROM
The last part of an SQL query to be read is the ________ statement. - ANSWER✔✔-ORDER BY
- ANSWER✔✔-
What does the following SQL statement do? Select * From Customer Where Cust_Type = "Best" -
ANSWER✔✔-Selects all the fields from the Customer table for each row with a customer labeled "Best"
What result will the following SQL statement produce? Select Avg(standard_price) as average from
Product_V - ANSWER✔✔-The average Standard_Price of all products in Product_V
Which of the following questions is answered by the SQL statement? Select Count (Product_Description)
from Product_T - ANSWER✔✔-How many products have product descriptions in the Product Table?
Copyright ©Stuvia International BV 2010-2024 Page 2/14