03 Database Management System Important Questions Answers
03 Database Management System Important Questions Answers
B. Subjective Questions
1. In how many ways tables can be created in Base?
Ans. Tables can be created in two ways.
1. In Design view
2. Using Wizard
7. How many types of relationships can be created in Base? Explain each of them.
Ans. There are three types of relationship in OpenOffice Base.
ONE to ONE: In this relationship, both the tables must have primary key columns. Example: In
the given tables EMP and DEPT, EMP_ID in EMP table and DEPT_ID in DEPT table are the
primary keys.
ONE to MANY: In this relationship, one of the table must have primary key column. It signifies
that one column of primary key table is associated with all the columns of associated table.
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 columns of associated table.
11. A table named School (containing data of students of the whole school) is created, where
each record consists of several fields including AdmissionNo (Admission Number), RollNo
(Roll Number), Name. Which field out of these three should be set as the primary key and
why?
Ans. AdmissionNo should be set as primary key because admission numbers are unique for each
and every students of the school, which is not possible in the case with RollNo and Name.
12. Why Memo data type is preferred over Text data type for a field?
Ans. When the length of the field is more than 255 characters. Text data type is not capable to
store the project description because its length cannot be more than 255 characters so, Memo data
type is preferred over Text data type.
14. Damini is a programmer in an institute and is asked to handle the records containing
information of students. Suggest any 5 fields name and their data type of students database.
Ans.
16. Write a SQL command to create the table BANK whose structure is given below.
Ans. The SQL command to create a table as per given structure is as follows Mysql> CREATE
TABLE BANK (ID Number integer (10) PRIMARY KEY, Name varchar (20), B date Date,
Address varchar (50));
18. Write one example of data field for which you would set the Required property to Yes.
Ans. In a table, when we declare a field as a primary key, then the field’s Required property must
be set to yes because in a primary key field, we need to enter data always.
20. Insert some information into a table COLLEGE, whose structure is given below.
Ans. (i) Mysql>INSERT INTO COLLEGE (ROLL_NO, NAME, CLASS, BRANCH) VALUES
(2, ‘VIKAS’,12, ‘SCIENCE’); (ii) Mysql>INSERT INTO COLLEGE (ROLL_NO, NAME,
CLASS, BRANCH) VALUES (3, ‘RAJ’, 10, ‘SCIENCE’);
25. Describe any four major problems associated with sustainable development.
Ans. Four problems associated with sustained development are as follows
(i) The concept of sustainable development is subject to criticism. What, exactly, is to be
sustained in a sustainable development? Any positive rate of exploitation of a non-renewable
resource will eventually lead to exhaustion of Earth’s final stock.
(ii) Turning the concept of sustainability into policy raises questions about how to assess the well-
being of present and future generations. The issue is more complicated because our children do
not just inherit environmental pollution and resource depletion, but also enjoy the fruits of our
labour, in the forms of education, skills, and knowledge (i.e. human capital), as well as physical
capital.
(iii) Poor management of natural resources, combined with growing economic activities, will
continue to pose serious challenges to environment. The problem arises because people,
institutions and governments have failed to evolve mechanism and policies to strike a balance
between development and conservation of resources and preservation of environment.
(iv) The commonly held view that greater economic activity necessarily hurts the environment, is
based on static assumptions about technology, tastes and environmental investments. In reality,
the relationships between inputs and outputs and the overall effects of economic activities on the
environment, are continually changing.