Database Concepts Class 12 Important Questions
Database Concepts Class 12 Important Questions
1. What is data?
Answer – Data is a collection of raw facts which have not been processed to reveal
useful information.
2. What is Database?
1) A database is a representation of some aspect of the real world also called miniworld.
Whenever there are changes in this miniworld they are also reflected in the database.
Answer – Large amounts of data may be kept in one location, which makes databases a
suitable choice for data access. The data can be accessed and changed simultaneously
by several individuals. You can quickly and easily find the information you need in
databases since they can be searched and sorted.
1. Reduction in Redundancy: All the data is stored at one place. There is no repetition of
the same data. This also reduces the cost of storing data on hard disks or other memory
devices.
5. User Friendly: Using a DBMS, it becomes very easy to access, modify and delete data.
Answer – A database management system is a group of applications that let users build,
administer, and use databases. It permits the development of a data repository that may
be created once and then accessible by various users in accordance with their needs. As
a result, all application programmes have access to a single data source.
2. Populating the Database: It involves storing the data on some storage medium that is
controlled by DBMS.
4. Sharing the Database: Allow multiple users to access the database at the same time.
5. Protecting the Database: It enables protection of the database from software/
hardware failures and unauthorized access.
b. Insulation Between Programs and Data – Programs that access this data don’t
need to be changed because the description of the data is stored separately in the
database management system (DBMS) and any changes to the data’s structure are
made in the catalog. The term “Program-Data Independence” refers to this quality.
c. Sharing of Data – Multiple users can access the database at once in a multi user
scenario. Therefore, a DBMS must have concurrency control software to provide
concurrent access to the database’s data without encountering any consistency issues.
1. End Users – Users who use the database for querying, modifying and generating
reports as per their needs.
4. System Analyst – A system analyst plays a major role in the database design and all
the technical, economic and feasibility aspects.
a. High Cost – The cost of implementing a DBMS system is very high and a very time
consuming process.
b. Security and Recovery Overheads – Databases protect the data from unauthorized
access from the users.
Answer – Columns with user-defined domain constraints make it easier for users to
enter values that relate to the data type. Additionally, it notifies the user that the column
is not properly filled in if it receives a faulty input.
Answer – This constraint specifies that the primary key of a relation cannot have null
value. The reason behind this constraint is that we know the primary key contains no
duplicates.
14. What is the referential integrity constraint?
Answer – Foreign key constraints or referential integrity constraints. A logical rule about
the values in one or more columns in one or more tables is known as a foreign key
constraint, also known as a referential constraint or a referential integrity constraint.
Answer – SQL statements are basically divided into two categories, DDL & DML.
a. Data Definition Language – Commands from the Data Definition Language (DDL)
are used to specify the structure holding the data. These commands are automatically
committed, which means that any database changes made by DDL commands are
permanently recorded.
b. Data Manipulation Language – The database’s data can be changed using Data
Manipulation Language (DML) commands. These instructions can be rolled back and are
not automatically committed.
Answer –
Data Definition Language (DDL) commands:
CREATE table
ALTER table
DROP table
Data Manipulation Language (DML) commands:
INSERT table
UPDATE table
DELETE
Database Concepts Class 12 NCERT Solutions
17. Consider the following Employee table –
or
(e) Alter the table Employee so that NULL values are not allowed for Age column.
(f) Write a query to display names and salaries of those employees whose salary
are greater than 20000.
(g) Write a query to display details of employees who are not getting any bonus.
(h) Write a query to display the names of employees whose name contains “a” as
the last alphabet.
(i) Write a query to display the name and Job title of those employees whose
Manager_ID is 1201.
(k) 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;
18. A Railway company uses machines to sell tickets. The machine details and daily
sales information are recorded in two tables:
The primary key of the table Machine is Machine_ID. Records in the table Sales are
uniquely identified by the fields Machine_ID and Date.
(b) Write a query to find the number of ticket machines in each station.
(c) Write a query to find the total ticket income of the station “New Delhi” of each
day.
SELECT Station FROM Machine where Station=”New Delhi” GROUP BY Sales HAVING
SUM(Income);
(d) Write a query to find the total number of tickets sold by the machine
(Machine_ID = 122) till date.