Database Questions & Answers Part A
Database Questions & Answers Part A
Database Questions & Answers Part A
RDBMS: Data is stored in multiple tables and the tables are linked using a
common field. Relational is suitable for medium to large amounts of data.
The software takes care of describing data structures for storing the data
and retrieval procedures for answering queries.
Each row (or tuple) in a table represents a set of related data, and every row
in the table has the same structure. While the rows actually contain data in
a related fashion, the columns actually contain data of a similar kind i.e.,
data in a column is always of a similar kind.
Datatypes are used to identify which type of data (value) we are going to
store in the database.
• Other Variable types : stores serialised Java objects. Data type used
is other.
2
4. Write the steps to create a database in the Open office database (Base).
It consists of data files that contain It stores data in several tables which
records which have a small and have a large number of fields and
fixed number of fields. records.
Data Integrity: Data integrity means that the data is accurate and consistent
3
in the database. All of these databases contain data that is visible to
multiple users. So it is necessary to ensure that the data is correct and
consistent in all the databases and for all the users.
Privacy: The privacy rule in a database states that only the authorized users
can access a database according to its privacy constraints. To secure data
levels are set in the database and a user can only view the data which is
allowed to be seen. For example - In social networking sites, access
constraints are different for different accounts a user may want to access.
4
8.
ClientID Numeric
Name Varchar
Address Varchar
Phone Numeric
OrderID Numeric
ClientID Numeric
SaleDate Date
5
#ItemsBought Numeric
9. In the given table: store, identify the data types for the various fields.
Char: Stores exactly the length specified by the user. Pads with trailing
spaces for shorter strings.
Example: If Char (25) is set for School_name and data entered is Sanskriti
School:16 characters , then 9 spaces will still be allocated and it will be filled
with spaces .
6
11.
In the above example, the two tables are connected by the BookID, which
acts as a key between the two tables. Here you can see the two tables are
related to each other or share a relation defined using BookID.
Database servers are dedicated computers that hold the actual databases
and run only the DBMS and related software. Typically databases available
on the database servers are accessed through command line or graphic user
interface tools referred to as Frontends; database servers are referred to as
Back-ends. Such type of data access is referred to as a client-server model.
relational model.
4. Three popular DBMS software are ________, ________, & _______.
7
of vertical ___________ and horizontal ____________.
8. _____________ are used to identify which type of data we are going to
11. ____ are the basic building blocks for the database.