Match the following -List I List II (a) DDL (i) LOCK TABLE (b) DML (ii) COMMIT (c) TCL (iii) Natural Difference (d) Binary operation (iv) REVOKE
This question asks us to match different types of database commands and operations with specific examples. Let's understand each category and example provided in the lists.
Now let's match the categories from List I with the specific examples from List II based on their functions:
| List I | List II | Match |
|---|---|---|
| (a) DDL | (i) LOCK TABLE | (a) - (iv) |
| (b) DML | (ii) COMMIT | (b) - (i) |
| (c) TCL | (iii) Natural Difference | (c) - (ii) |
| (d) Binary operation | (iv) REVOKE | (d) - (iii) |
The correct matching is a - (iv), b - (i), c - (ii), d - (iii).
| Category | Purpose | Example from List II | Other Examples |
|---|---|---|---|
| DDL (Data Definition Language) | Define/modify database structure, permissions | REVOKE | CREATE, ALTER, DROP, GRANT |
| DML (Data Manipulation Language) | Manage data within objects | LOCK TABLE | SELECT, INSERT, UPDATE, DELETE |
| TCL (Transaction Control Language) | Manage transactions | COMMIT | ROLLBACK, SAVEPOINT |
| Binary Relational Operation | Combine two relations | Natural Difference | Union (\( \cup \)), Intersection (\( \cap \)), Cartesian Product (\( \times \)) |
Relational algebra is a procedural query language used in database systems. It provides a set of operations to manipulate relations (tables) and produce new relations. These operations can be unary (acting on one relation) or binary (acting on two relations).
SQL (Structured Query Language) is the standard language for managing relational databases. While SQL has commands that correspond to relational algebra concepts, it also includes commands for data definition, transaction control, and other database management tasks, categorized into DDL, DML, and TCL.
CREATE TABLE, ALTER TABLE, DROP TABLE, GRANT, and REVOKE are DDL.SELECT, INSERT, UPDATE, and DELETE are DML.COMMIT, ROLLBACK, and SAVEPOINT are TCL.UNION, EXCEPT/MINUS, JOIN clauses).In SQL, _______ is an Aggregate function.
In SQL, which of the following command is used to modify a column in a table?
Which of the following keyword is used to eliminate duplicate records in SQL?
_______ SQL command changes one or more fields in a record.
Given two relations R 1(A, B) and R 2(C, D), the result of following query
Select distinct A, B
from R 1, R 2
is guaranteed to be same as R 1 provided one of the following condition is satisfied.