In: Computer Science
Structured query language (SQL):
A. Does not allow conditions to be put on the query. B. Is a complex language used to extract data from a limited number of tables. C. Isolates data within tables. D. Takes advantage of the primary record key to link tables.
Structured query language (SQL):
A. Does not allow conditions to be put on the query. FALSE
SQL allows conditions to be put on the query using WHERE clause. For example following is a conditional SELECT query
SELECT * FROM EMPLOYEE WHERE GENDER = 'MALE';
B. Is a complex language used to extract data from a limited number of tables. FALSE
SQL is a simple language. It can be used to extract data from one or more tables. Data from multiple tables can be combined using JOIN. It can retrieve even millions of records from multiple tables.
C. Isolates data within tables. TRUE
In RDMS, all data are stored in tables. No data is stored outside table. Data is isolated within tables, but relationship can be established across tables. For example FOREIGN KEY is used to link acolumns in two tables.
D. Takes advantage of the primary record key to link tables. TRUE
The advantage of normalization is PRIMARY key to uniquely identify a record with in a table. SQL query will be faster when tables are normalized with primary key