Concept:
A VIEW is a logical representation of another table or combination of tables. A view derives its data from the tables on which it is based. These tables are called base tables
Explanation:
Which of the following statements are true?
i) DDL Compiler is a Query processor component
ii) DML Compiler is a Query Processor component
iii) Query evaluation engine is a Query Processor component
Query Processor:
The Query Processor Components include:
Data Definition Language(DDL) Compiler: DDL compiler takes the data definition statement that is the source form & convert them into the object form (or) interprets DDL commands and records them in the data dictionary.
Data Modelling Language (DML) compiler: translates DML commands into query evaluation plans.
Query evaluation engine: executes queries according to the plans
The alter table command to add attributes to an existing relation. All tuples in the relation are assigned null as the value for the new attribute. The form of the alter table command is
alter table r add A D;
where r is the name of an existing relation, A is the name of the attribute to be added, and D is the type of the added attribute.SQL includes a feature for testing whether a subquery has any tuples in its result.
The ‘exists’ construct returns the value true if the argument subquery is nonempty.PL/SQL block has the actual PL/SQL code.
PL/SQL engine is the component where the actual processing of the codes takes place.
Database server is the most important component of Pl/SQL unit which stores the data.PL/SQL blocks have a pre-defined structure in which the code is to be grouped. Below are different sections of PL/SQL blocks.
Which of the query in SQL is an example of self-join?
I. SELECT a.column_name FROM table1 a, table1 b WHERE a.x = b.x;
II. SELECT b.column_name FROM table1 a, table2 b WHERE a.y = b.y;Aggregate functions return a single result row based on groups of rows, rather than on single rows. Aggregate functions can appear in select lists and in ORDER BY and HAVING clauses.
Function |
Description |
COUNT |
COUNT returns the number of rows returned by the query |
AVG |
AVG returns average value of expression |
MIN |
MIN returns minimum value of expression |
SUM |
SUM returns the sum of values of expression |
Note:
AVG is aggregate function but not AVERAGE191 Points
54 Points
53 Points
52 Points
49 Points