Question 31
MediumWhich SQL command category do GRANT and REVOKE belong to?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
DBMS
Which SQL command category do GRANT and REVOKE belong to?
DDL
TCL
DCL (Data Control Language)
DML
Sign up free to see the answer and a step-by-step explanation.
What is a database schema?
A query result
The data stored at a given moment
A backup file
The overall logical structure of a database (tables, columns, relationships)
Sign up free to see the answer and a step-by-step explanation.
What is a database instance (state)?
A single table
The DBMS software
The design of the database
The data stored in the database at a particular moment
Sign up free to see the answer and a step-by-step explanation.
What is the data dictionary?
A catalog that stores metadata about database objects
A backup of all data
A table of user passwords
A list of English words
Sign up free to see the answer and a step-by-step explanation.
A college keeps student marks in separate Excel files for each department. A student's address is changed in one file but not in the others. Which problem of file-based systems does this show?
Deadlock
Lack of physical data independence
Data inconsistency caused by redundancy
Referential integrity
Sign up free to see the answer and a step-by-step explanation.
A DBA moves a table to a faster disk and changes its storage format, and no application has to be changed. Which property does this show?
Data redundancy
Logical data independence
Physical data independence
Atomicity
Sign up free to see the answer and a step-by-step explanation.
A new column is added to a table, and existing views and applications that don't use it keep working. Which property does this show?
Durability
Isolation
Logical data independence
Physical data independence
Sign up free to see the answer and a step-by-step explanation.
Which level of the three-schema architecture describes how a particular user group sees the data, for example a payroll clerk who sees only names and salaries?
Physical storage level
Conceptual level
Internal level
External (view) level
Sign up free to see the answer and a step-by-step explanation.
Which statement is a DML statement?
DROP TABLE account;
GRANT SELECT ON account TO clerk;
CREATE TABLE account (id INT);
UPDATE account SET balance = balance - 500 WHERE id = 7;
Sign up free to see the answer and a step-by-step explanation.
A user runs DELETE FROM orders; inside a transaction and then ROLLBACK. What happens?
All the deleted rows come back
The rows stay deleted
The table is dropped
Only the first row comes back
Sign up free to see the answer and a step-by-step explanation.