Beruflich Dokumente
Kultur Dokumente
Unit 2 - 2mark
1)Define Aggregate Functions in SQL? Commented [1]:
1) Count()
2) Sum()
3) Avg()
4) Min()
5) Max()
2) Define normalization?
A correlated subquery is evaluated once for each row processed by the parent
statement. The parent statement can be a SELECT, UPDATE,
or DELETE statement.
4)Define trigger.
Trigger: A trigger is a stored procedure in database which automatically invokes
whenever a special event in the database occurs. For example, a trigger can be
invoked when a row is inserted into a specified table or when certain table
columns are being updated.
5)list the pit fall in relation database design.
Syntax:
DELETE:
It is DML command
It supports WHERE clause/condition
Removes data based on conditions specified in the WHERE clause
(removes all the data if there is no WHERE clause)
Slower than TRUNCATE as it takes row level locks
It removes rows one at a time and records an entry in the transaction log
for each deleted row
It does activate triggers
Table identity column is not reset
Syntax:
8).Define SQL and state the difference between SQL and other
conventional programming Language.
UNIT 3
1)Define physical storage.
Databases are stored in file formats, which contain records. At physical level,
the actual data is stored in electromagnetic format on some device. These
storage devices can be broadly categorized into three types −
2)Define cache
A cache, in computing, is a data storing technique that provides the
ability to access data or files at a higher speed.
It is a step wise process that can be used at the physical level of the file system,
query optimization and actual execution of the query to get the result.
It provides the efficient result when there is a 1:M mapping between the
tables.
Every leaf node is at equal distance from the root node. A B+ tree is
of the order n where n is fixed for every B+ tree.
Unit 4
Consistency
Isolation
Durability
6)Define deadlock.
A system is in a deadlock state if there exists a set of transactions such that every transaction in the
set is waiting for another transaction in the set.
7)Type of locking
There are two types of lock:
1. Shared lock
2. Exclusive lock
8)Define atomicity?
Atomicity. In a transaction involving two or more discrete pieces of information, either
all of the pieces are committed or none are.
10)Define serializability.
When multiple transactions are running concurrently then there is a possibility that the database
may be left in an inconsistent state. Serializability is a concept that helps us to check which schedules
are serializable. A serializable schedule is the one that always leaves the database in consistent state.
Unit 5
1)Define Data Mining ?
Data mining is the process of extracting the useful information stored in
the large database.It is the extraction of hidden predictive information. Data
mining can be applied to relational databases, object-oriented databases,
data warehouses, structured-unstructured databases etc.
Nodes usually share resources, such as data, disks, and other devices.
Privacy. ...
Integrity control. ...
Recovery. ...
8)Define Integrity
Data integrity is a fundamental component of information security.
Data Integrity - can be used to describe a state, a process or a function – and is often used as a
proxy for “data quality