Unit 3 Relational Database Management Systems
Unit 3 Relational Database Management Systems
Ans. Primary key and Foreign key are used to relate the tables so that data can
be fetched from multiple tables.
We can not enter duplicate values in Primary key while duplicate values can be
entered in Foreign Key.
Q5. In how many ways tables can be created in Base?
Ans: Datatype are used to identify which type of data we are going to store in
the database
Ans. A row also called a Record or Tuple represents a single, data item in a
table. Whereas A column is a set of data values of a particular simple type, one
for each row of the table.
Q11. Name different Binary data types.
Ans. The different Binary data types are:
1. Longvarbinary
2. Binary
3. Varbinary
Q12. What is the file extension for databases created using OpenOffice.Org
Base?
Ans. Three file formats that can be managed using OpenOffice.Org Base.
1. .odb
2. .odf
3. .odt
Q14. How many types of relationships can be created in Base? Explain each of
them.
Ans. DML stands for Data Manipulation Language. DML Commands are :
SELECT – retrieve data from a database.
INSERT – insert data into a table.
UPDATE – updates existing data within a table.
DELETE – deletes all or specific records from a table.
Q18. What is the purpose of using queries?
Ans. The purpose of using query is to collect specific information from the pool
of data(TABLE). A query also helps us to extract information from different
tables.
Q19. Which clause of the Select statement helps to display specific data?
Ans. ‘Where’ clause of the Select statement helps to display specific data.
Q20. Differentiate between Where and Orderby clause of SQL statements.
Ans. Where clause helps to retrieve specific row from the table and ORDER BY
clause specifies an order in which to return the rows.
Q21. State the purpose of Update Command with the help of an example.
Ans. Update statement is used for modifying records in a table. for example the
following command will increase the salary of all employees by Rs 2000.
Update emp set sal = sal + 2000;
Q22. Why is there a need to create Forms?
Ans. A form provides the user a systematic way of storing information into the
database. It is an interface in a user specified layout that lets users to view,
enter, and change data directly in database objects such as tables.
Q23. What is the purpose of creating Reports?
Ans. Table must be created and selected before creating forms and reports in
OpenOffice Base.
Q25. Differentiate between Forms and Reports.
Forms Reports
We can make changes to data. We can not make changes to the data.
Q26. Can a form display data from queries?
Ans. Yes
Q27. In how many ways Forms and Reports can be created in a database?