Important Question of Ch-10
Important Question of Ch-10
Q.2 What is database server? Explain primary key and foreign key.
Ans
Database servers are dedicated computers that hold the actual databases
and run only the DBMS and related software. Database servers are also
referred to as Back-ends.
Q.3 (a)
Create table employee
EMPID Char(4)
EMPNAME Varchar(15)
DESIGN Varchar(15)
SALARY Decimal
(b)
What is a primary key?
Ans A primary key is a unique value that identifies a row (tuple) in a table
Q.4 What do you mean by relationship? Explain the different types of relationships.
Ans
A relationship refers to an association or connection between two or more tables.
1. ONE to ONE:- In this relationship, both the tables must have primary key columns.
2. ONE to MANY OR MANY to ONE:- In this relationship, one of the tables must
have a primary key column. It signifies that one column of the primary key table
is associated with all the columns of the associated table.
3. MANY to MANY:- In this relationship, no table has the primary key column. It
signifies that all the columns of primary key table are associated with all the columnsof the
associated table.
Ans:
a. A database management system is a software package with computer programs that
controls the creation, maintenance and use of a database.
b. A primary key is a unique value that identifies a row in a table.
c. Numeric data types are numbers stored in database column. The exact numeric
data types are INTEGER, INT, TINYINT, SMALLINT, MEDIUMINT, BIGINT,
NUMBER, DECIMAL, NUMERIC, FLOAT, REAL, DOUBLE.
d. Referential integrity is used to maintain accuracy and consistency of data in a relationship.