Ans: A prearranged collection of figures known as data is called database.
Ans: Database Management Systems (DBMS) are applications designed especially which enable user interaction with other applications.
Ans: The various kind of interactions catered by DBMS are:
Ans: The development of database technology is divided into:
Ans: Edgar F. Codd proposed the relational model in 1970.
Ans: A database language may also incorporate features like:
DBMS-specific Configuration and management of storage engine
Computations to modification of query results by computations, like summing, counting, averaging, grouping, sorting and cross-referencing Constraint enforcement Application Programming Interface
Ans: As special-purpose languages, they have:
Ans: A data model determining fundamentally how data can be stored, manipulated and organised and the structure of the database logically is called database model.
Ans: Structured Query Language (SQL) being ANSI standard language updates database and commands for accessing.
Ans: The various relationships of database are:
Ans: Organized data void of inconsistent dependency and redundancy within a database is called normalization.
Ans: Advantages of normalizing database are:
Ans: Boosting up database performance, adding of redundant data which in turn helps rid of complex data is called denormalization.
Ans: Managing properties and attributes of database is called Data Definition Language(DDL).
Manipulating data in a database such as inserting, updating, deleting is defined as Data Manipulation Language. (DML)
Ans: They are:
CREATE:
Create is used in the CREATE TABLE statement. Syntax is:
CREATE TABLE [column name] ( [column definitions] ) [ table parameters]
ALTER:
It helps in modification of an existing object of database. Its syntax is:
ALTER objecttype objectname parameters.
DROP:
It destroys an existing database, index, table or view. Its syntax is:
DROP objecttype objectname.
Ans: Full recordings of two tables is Union All operator.
A distinct recording of two tables is Union.
Ans: A database object which helps in manipulating data row by row representing a result set is called cursor.
Ans: They are:
Ans: The types of cursor are:
Ans: A query contained by a query is called Sub-query.
Ans: Group-clause uses aggregate values to be derived by collecting similar data.
Ans: Both having B-tree structure, non-clustered index has data pointers enabling one table many non-clustered indexes while clustered index is distinct for every table.
Ans: Functions which operate against a collection of values and returning single value is called aggregate functions
Ans: Scalar function is depended on the argument given and returns sole value.
Ans: Restrictions that are applied are:
Triggers such as INSTEAD OF is associated with views.
Ans: A ‘correlated subquery’ is a sort of sub query but correlated subquery is reliant on another query for a value that is returned. In case of execution, the sub query is executed first and then the correlated query.
Ans: Storage and access of data from the central location in order to take some strategic decision is called Data Warehousing. Enterprise management is used for managing the information whose framework is known as Data Warehousing.
Ans: Joins help in explaining the relation between different tables. They also enable you to select data with relation to data in another table.
The various types are:
Other joins are CROSS JOINs, NATURAL JOINs, EQUI JOIN and NON-EQUI JOIN.
Ans: Indexes help in improving the speed as well as the query performance of database. The procedure of boosting the collection of indexes is named as Index hunting.
Ans: Index hunting helps in improving the speed as well as the query performance of database. The followed measures are achieved to do that:
Ans: The disadvantages of query are:
Ans: Ways to efficiently code transactions:
Ans: Executive plan can be defined as:
Ans: A data structure in the form of tree which stores sorted data and searches, insertions, sequential access and deletions are allowed in logarithmic time.
Ans: Iterating over all the table rows is called Table Scan while iterating over all the index items is defined as Index Scan.
Ans: Fill Factor can be defined as being that value which defines the percentage of left space on every leaf-level page that is to be packed with data. 100 is the default value of Fill Factor.
Ans: Fragmentation can be defined as a database feature of server that promotes control on data which is stored at table level by the user.
Ans: Nested loop (loop over loop)
An outer loop within an inner loop is formed consisting of fewer entries and then for individual entry, inner loop is individually processed.
E.g.
It’s processing takes place in this way:
For i in (select * from col1) loop
For j in (select * from col2 where col2=i.col1) loop
Results are displayed;
End of the loop;
End of the loop;
The Steps of nested loop are:
Nested Loops is executed from the inner to the outer as:
While joining large tables, the use of Hash Join is preferred.
Algorithm of Hash Join is divided into:
Two independent sources of data are joined in sort merge join. They performance is better as compared to nested loop when the data volume is big enough but it is not good as hash joins generally.
The full operation can be divided into parts of two:
Sort join operation :
Get first row R1 from input1
Get first row R2 from input2.
Merge join operation:
‘while’ is not present at either loop’s end.
if R1 joins with R2
next row is got R2 from the input 2
return (R1, R2)
else if R1 < style=””> next row is got from R1 from input 1
else
next row is got from R2 from input 2
end of the loop
Ans: Division of logical database into independent complete units for improving its management, availability and performance is called Database partitioning.
Ans: Splitting of one table which is large into smaller database entities logically is called database partitioning. Its benefits are:
Ans: DBMS along with database is called Database system.
Ans: Query Evaluation Engine executes the low-level instructions that are generated by the compiler.
Ans: DDL statements are interpreted and recorded in tables called metadata.
Ans: Atomicity: It’s an all or none concept which enables the user to be assured of incomplete transactions to be taken care of. The actions involving incomplete transactions are left undone in DBMS.
Aggregation: The collected entities and their relationship are aggregated in this model. It is mainly used in expressing relationships within relationships.
Ans: The various transaction phases are:
Ans: Compilations of objects make up this model in which values are stored within instance variables which is inside the object. The object itself comprises bodies of object for its operation which are called methods. Objects containing same kind of variables and methods are called classes.
Ans: It can be defined as being a ‘thing’ with an independent existence in the real world.
Ans: A set of entries having similar attributes are entity types.
Compilation of all entries of any particular type of entry in the database is called Entity Set.
Compilation of similar entity types into one particular type which is grouped together as an entity set.