Relational Database Management Systems
Relational Database Management Systems
System
Includes school QB answers+ Textbook
QNA
(blue text -definitions) (star marked, imp. Ones ⭐
)(red text- mcq,
violet- both mcq and def.) (thumbs down means read once nicely, no need
to rote 👎🏿) (nothing means more imp than thumbs down, less than star)
1) What is a database? ⭐⭐
- A database is an organised collection of data. It is an integrated collection of data
records,files, and other objects.
- Various database programs are Oracle, Microsoft Access, OpenOffice.org Base,
and MySQL.
- The database concept has evolved since the 1960’s to provide ease for data
storing.
⭐
5) Explain some advantages of databases. (If list comes, just write points b4 colon).
(for explain 3-4 are enough, for list write all of the starting points)
Advantages of using Database are as follows:
i. Reduces data redundancy: The DBMS’s contain many files, to be stored in many
different locations in many systems. Due to this, sometimes multiple copies of the same
file were made causing data redundancy. This is prevented in a database as there is 1
database and any change in it is reflected immediately. So no chance of duplicate data.
ii. Enables Sharing of data: Database users can share data with other people, and there
are various levels of authorisation to access the data with the data only being shared to
authorised users.
iii. Data Integrity and Security: Data integrity means that the data is accurate and
consistent. It is very important because of multiple databases in a DBMS, which all
contain data. Therefore it is necessary to ensure that the data is correct and consistent.
iv. Data Consistency: Due to no redundancy, data is consistent. Data consistency means
that there should be multiple mismatching copies of the same data. All data appears
consistently across the databases and should be same for all the users
v. Data Backup and Recovery: DBMS takes care of data backup and recovery, and the
users don't need to backup data. DBMS also restore the data after a crash/system failure.
8) What is RDBMS? ⭐
- When data is to be stored, maintained, and retrieved from multiple tables then
special database software is required known as Relational Database Management
System.
- A relational database is a type of database. It uses a structure that allows us to
identify and access data in relation to another piece of data in the database.
- Often, data in a relational database is organised into tables / relations.
9) What are primary keys, composite primary keys and foreign keys?
In RDBMS’s data can be integrated using the following keys:
⭐
- A primary key is a unique field that identifies a row/record in a table.
- When primary key constraint is applied on one or more columns in a table then it
is known as Composite Primary Key.
- A Foreign key identifies a column or set of columns in one (referencing) table that
refers to a column or set of columns in another (referenced) table.
10) What is a data type? List and explain the various data types present in a
⭐
RDBMS. (if only list then only list, don't explain)(Examples of each data type at
end of the doc)
Datatypes are used to identify which type of value we are going to store in the database.
Fields (columns) can be of different types depending on the data they contain. The 5 data
types are:
- Numeric Types: Used for describing numeric values for fields in a table. It can be
used for storing mobile no. etc.
- Alphanumeric Types: Used for storing characters and symbols.
- Binary Types: used for storing data in binary formats, like for storing images,
music files etc. basically files of any type can be stored in this data type
- Date time: Used for describing date and time values for the field. (DOB etc.)
- Other Variable types: Used for storing serialised java objects.
⭐
12)What is referential integrity and state its types.
Referential integrity is used to maintain accuracy and consistency of data in a
relationship. In Database, data can be linked between two or more tables with the help of
primary key and foreign key constraints.
Types of Relationship:
1. One to One : This relationship tells us that one data in Table A is related to a single
data in Table B. And vice versa.
Eg, An employee can belong to only one department in the organisation.
2. One to Many : This relationship entails one data in Table A to have links to multiple
data in Table B. However, a single data in Table B, will have a link to a single data in
Table A.
Eg, One individual may have multiple bank accounts, but each bank account will be
linked to one specific owner or account holder only.
3. Many to Many : Consider two table A and B. Each data in Table A is linked to all the
data in Table B and vice versa. A great example would be linking a student table to the
courses table. Table A has the name of all the students while Table B has the name of all
the courses. A particular student may enroll oneself to more than one course whilst a
courses may have more than one student. Hence, it becomes a many to many relationship.
16)What is SQL? ⭐
- Structured query language or SQL is one of the query languages used to make
queries into databases and information systems.
- Queries are commands that are used to define the data structure and also to
manipulate the data in a database
17)Differentiate between DDL and DML ⭐⭐
- DDL (Data definition language) – Data definition language is used to design and
modify the structure of a database.
Common DDL commands are
a. Create – This command is used to create database
b. Alter – This command is used to modify the database.
c. Drop – This command is used to delete database tables.
19)What is a report?
A report helps display the data in a summarised manner. It is used to generate the overall
work outcome in a clear format.
⬇⬇⬇⬇
⬇ go down there is the examples of
1) Numeric data types: for this just rote 5 out of all, but you need to have a basic
idea cuz mcq