0% found this document useful (0 votes)
22 views4 pages

Converted Text

Uploaded by

nexox97760
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views4 pages

Converted Text

Uploaded by

nexox97760
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Q.1 What is data?

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.

Q.2 What is a Database?

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.

Q.3 Why is a database required?

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.

Q.5 Differentiate between DBMS and RDBMS?

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.

Q.4 What are the different advantages of Database?

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?

DDL commands: CREATE, ALTER, DROP.

DML commands: INSERT, UPDATE, DELETE.

Q.7 Explain Tuple and Attribute in a table with example.

Tuple: A row in a table. Attribute: A column in a table. Example: Tuple: (1, 'John', 30), Attribute: ID,
Name, Age.

Q.8 Explain Degree and Cardinality with example.

Degree: Number of attributes. Cardinality: Number of tuples. Example: Degree = 3, Cardinality = 2.

Q.9 What is entity integrity constraint?

Entity Integrity ensures that each record (tuple) in a table is unique and prevents null values in
primary key fields.

Q.10 Employee Table Example

Table with columns Employee_ID, Employee_Name, Job_Title, Salary, Bonus, Age.

Q.11 Delete the Employee having Employee_ID 1217


DELETE FROM Employee WHERE Employee_ID = 1217;

Q.12 Update the salary of 'Amyra' to 40000

UPDATE Employee SET Salary = 40000 WHERE Employee_Name = 'Amyra';

Q.13 Alter the table Employee so that NULL values are not allowed for the Age column.

ALTER TABLE Employee MODIFY Age INT NOT NULL;

Q.14 Write a query to display names and salaries of those employees whose salary is greater
than 20000.

SELECT Employee_Name, Salary FROM Employee WHERE Salary > 20000;

Q.15 Write a query to display details of employees who are not getting any bonus.

SELECT * FROM Employee WHERE Bonus IS NULL;

Q.16 Write a query to display the names of employees whose name contains 'a' as the last
alphabet.

SELECT Employee_Name FROM Employee WHERE Employee_Name LIKE '%a';


Q.17 Write a query to display the name and job title of those employees whose Manager ID is
1201.

SELECT Employee_Name, Job_Title FROM Employee WHERE Manager_ID = 1201;

Q.18 Write a query to display the name and job title of those employees whose Manager is
'Amyra'.

SELECT Employee_Name, Job_Title FROM Employee WHERE Manager = '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;

Q.20 Explain Primary key and Foreign Key with example.

Primary Key: Uniquely identifies a record in a table. Foreign Key: Refers to the primary key

in another table, establishing a relationship between them.

You might also like