Converted Text
Converted Text
Data refers to raw facts, figures, or information that has not yet been processed or analyzed. It
can be numbers, text, images, or even audio that is collected for analysis or reference.
A Database is a collection of organized data that can be easily accessed, managed, and updated.
It is designed to store, retrieve, and manage data in a structured format, usually in tables.
A Database is required for efficient data management, quick access to large volumes of data,
data integrity, and security, eliminating data redundancy, supporting backup and recovery, and
enabling concurrent data access by multiple users.
DBMS (Database Management System) manages a single database, while RDBMS (Relational
DBMS) manages relational databases where data is stored in tables. RDBMS supports
relationships between tables using keys.
Advantages include data integrity, security, reduction in redundancy, efficient data retrieval,
backup and recovery, and supporting concurrent data access.
Q.6 Give an example of DDL & DML commands?
Tuple: A row in a table. Attribute: A column in a table. Example: Tuple: (1, 'John', 30), Attribute: ID,
Name, Age.
Entity Integrity ensures that each record (tuple) in a table is unique and prevents null values in
primary key fields.
Q.13 Alter the table Employee so that NULL values are not allowed for the Age column.
Q.14 Write a query to display names and salaries of those employees whose salary is greater
than 20000.
Q.15 Write a query to display details of employees who are not getting any bonus.
Q.16 Write a query to display the names of employees whose name contains 'a' as the last
alphabet.
Q.18 Write a query to display the name and job title of those employees whose Manager is
'Amyra'.
Q.19 Write a query to display the name and job title of those employees aged between 26 years
and 30 years.
SELECT Employee_Name, Job_Title FROM Employee WHERE Age BETWEEN 26 AND 30;
Primary Key: Uniquely identifies a record in a table. Foreign Key: Refers to the primary key