What does the Drop statement do?
Removes an object from the database
Select is a _______ command.
DML
What Statement can remove rows from a table or view?
Delete
Transact-SQL language.
Which key uniquely identifies a row in a table? Which key uniquely identifies a row in a table?
You need to enable a new employee to authenticate to your database. Which command should you use?
CREATE USER
Which keyword can be used in a create table statement?
d. UNIQUE
You need to store product quantities, and you want to minimize the amount of storage space that is used. Which data type should you use?
INTEGER
You need to store product names that vary from three to 30 characters. You also need to minimize the amount of storage space that is used. Which data type should you use?
VARCHAR (30)
Which permission does a user need in order to run a stored procedure?
EXECUTE
Which constraint ensures a unique value in the ID column for each customer?
PRIMARY KEY
Data in a database is stored in:
Tables
You need to establish a set of permissions that you can routinely assign to new users. What should you create?
Which database term is used to describe the process of applying a backup to a damaged or corrupt database?
One difference between a function and a stored procedure is that a function:
Must return a value.
You need to retrieve data from two related database tables based on a column that exists in both tables. Which command should you use in a query?
You work at a coffee shop. They ask you to set up a website that stores charges on purchases. You need to recommend a data type in a database table to run financial functions against the charged amounts. Which data type should you recommend?
Varchar
You develop a database to store data about textbooks. The data must be stored to process at a later time.Which database object should you use to store the data?
Stored procedure
On which database structure does an insert statement operate?
Which statement should you use to remove a foreign key?
ALTER TABLE
You delete rows in a table named Order. The corresponding rows in the OrderItem table are automatically deleted. This process is an example of a/an:
Cascade delete