Module 2 Flashcards
What is DDL?
Data definition language
- part of SQL, used to create and modify the tables and objects in a database
What are DDL Commands?
CREATE, ALTER, DROP
What is DML?
Data Manipulation Language
- retrieves and updates data in a database
What are DML Commands?
SELECT, INSERT, UPDATE, DELETE
Used to specify who can access data in the database and what operations can they perform
Data Control Language (DCL)
What are DCL Commands?
GRANT and REVOKE
What are some properties of foreign keys?
- Creates a relationship between two tables
- Enforces integrity rules
- A foreign key in one table relates to a primary key in a different table
Which of the following access privileges are provided by an RDBMS?
A. User access to specific operations on specific attributes of specific tables in the database.
B. User access to the entire database.
C. User access to specific operations on specific tables in the database.
D. User access to specific cells in the database.
E. User access to specific tables in the database.
A, B, C, E
In terms of an RDBMS, What is Metadata?
Data definitions and relationships
Name 4 leading RDBMS used today
- Oracle
- MySQL
- UDB
- Sybase
A database plan or framework, in which organizes tables in a relational database
RDBMS Schema
What would you use to load a data warehouse?
SQL
A row of data that is related
Tuple
Which of the following are true statements about the DROP TABLE command?
A. Once a table is dropped, it no longer exists in the system catalog.
B. The DROP TABLE Command is a DDL Command.
C. The DELETE command must be used in conjunction with the DROP TABLE command to delete the data in a table before it is dropped.
D. The ALTER TABLE…DROP command can achieve the same result as the DROP TABLE command.
E. The DROP TABLE command allows you to specify a condition where only certain data is deleted.
A. Once a table is dropped, it no longer exists in the system catalog.
B. The DROP TABLE Command is a DDL Command.
Which of the following are true about the DELETE command?
A. The WHERE clause is a mandatory part of the DELETE command.
B. The DELETE command deletes an entire record of data at a time.
C. The SET clause of a DELETE command lets you specify which attribute you want to delete.
D. The DELETE command only deletes data from the table specified.
B. The DELETE command deletes an entire record of data at a time.
D. The DELETE command only deletes data from the table specified.