Dbms Important
Dbms Important
Dbms Important
Data Redundancy and Inconsistency: Reduced by integrating all the data into a
single database.
2. What is a schema?
Super Key: A set of one or more columns that uniquely identifies a record in a table.
Candidate Key: A minimal super key, meaning it cannot be reduced further and still
uniquely identify a record.
5. What is a transaction?
A Join statement in SQL is used to combine rows from two or more tables based on a
related column between them.
7. What is a subquery?
A subquery is a query nested inside another query, used to provide results for the
main query.
Logical Data Independence: The ability to change the logical schema without
altering the external schema or application programs.
Physical Data Independence: The ability to change the physical schema without
affecting the logical schema.
SELECT [DISTINCT] column1, column2, ... FROM table1 [WHERE condition] [GROUP BY column1,
column2, ...] [HAVING condition] [ORDER BY column1, column2, ... [ASC|DESC]];
Access control is a security technique that regulates who or what can view or use
resources in a computing environment, ensuring only authorized users can access
certain data.
1. Define DBMS. What are the advantages of DBMS over conventional file processing system?
What are the functions of a database administrator?
Functions of a DBA:
Database design and implementation
Performance tuning
2. Explain the rules defined by Codd that are necessary for any DBMS to be considered as a
RDBMS.
E.F. Codd defined 12 rules (Codd's 12 rules) which a DBMS must follow to be
considered a true RDBMS. These include the Information rule, Guaranteed access
rule, Systematic treatment of null values, Active online catalog, etc.
3. Differentiate between Strong and Weak entity, Referential and Domain integrity, Single
valued and multi valued attributes.
Strong vs. Weak Entity: A strong entity can exist independently while a weak entity
depends on a strong entity.
Referential vs. Domain Integrity: Referential integrity ensures that a foreign key
value always points to an existing record. Domain integrity ensures that all entries in
a column are of the same data type.
Single Valued vs. Multi Valued Attributes: Single valued attributes have a single
value for each entity, while multi-valued attributes can have multiple values.
4. What is relational algebra? Explain different types of join and aggregate operations of
relational algebra. Give appropriate examples.
Types of Join:
Outer Join: Includes all tuples from one or both relations, filling in
with NULLs where no match is found.
Aggregate Operations:
2NF: Ensures 1NF and all non-key attributes are fully functionally dependent
on the primary key.
Backup Mechanisms:
Recovery Mechanisms:
a) Display the names of the students who have grade 'C' or grade 'D'.
b) Display the grade of the students whose name starts with 'D'.
d) Display the Roll number and name of the student who belongs to class '7' and
plays hockey.
SELECT RollNo, Name FROM SPORTS WHERE Class = '7' AND Game = 'Hockey';
8. Explain the data types available in SQL. Also explain various aggregate functions in SQL
with suitable examples.
Data Types:
10. Define object databases. Describe persistent programming languages. What are the several
approaches proposed to make the objects persistent?
Object Databases: Databases that store data in the form of objects, as used in
object-oriented programming.
Approaches to Persistence: