Wa0014.
Wa0014.
Wa0014.
TERESA SCHOOL
CLASS X: INFORMATION TECHNOLOGY (402)
2022-23
UNIT-3 DATABASE MANAGEMENT SYSTEMS (BASIC)
1|Page
9) State the relationship and difference between a primary and foreign key?
Primary Key Foreign Key
A primary key is a unique value that identifies a A FOREIGN KEY is a field in one table, that refers
row in a table. to the PRIMARY KEY in another table.
There can be only one Primary Key There can be multiple foreign key in a table
Primary Key field can’t have NULL values. Foreign Key field can have NULL values.
The table with the foreign key is called the child table, and the table with the primary key is called the
referenced or parent table.
The FOREIGN KEY is used to link two tables together.
2|Page
16) What is the default datatype of all fields in a table?
Text[VARCHAR] data type
19) Does Base add Primary key itself if user doesn’t its own?
Base automatically adds the column to be set as Primary Key which will help the user to enter the unique values and
helps in creating the relationship with the other tables.
21) What are the different categories of datatypes? Explain each one of them.
Data types in OpenOffice base are broadly classified into five categories listed below.
• Numeric Types
• Alphanumeric Types
• Binary Types
• Date time
• Other Variable types
Numeric data types are used for describing numeric values for the field used in the table of a database like mobile
number, roll number, door number, year of school admission etc.
Examples- Boolean, smallint, Integer, Float, decimal, Real etc
Alphanumeric data types are used for describing alphabets and special character values for the field used in the
table of a database like name, dept, subject, address etc.
Examples- char, varchar etc
Binary Datatype are used for storing photos, music files, etc. in the table of a database.
Example- Image, Binary, LongBinary etc
Date time datatypes are used for describing date and time values for the field used in the table of a database like
Date of Birth, Date of Joining.
Example- Date, Time, Timestamp
23) What are the different field properties of Numeric Data type?
The properties of numeric type data are
AutoValue – if set to yes then field will get the auto numeric values.
Length – By default length of the field is 10 but the size of the field can be set to maximum length.
Default Value – A default value can be set for a field if user don’t provide any value while entering the values in
the table.
Format example – This property helps to set the format of the data entered in the field such as 91-222-333.
3|Page
24) What are the different field properties of Character Data type?
The properties of character type data is shown below in the figure.
Entry Required – if set to yes then it will be must to insert the value in the field which means that field cannot be
left blank.
Length – By default length of the field is 10 but the size of the field can be set to maximum length.
Default Value – A default value can be set for a field if user don’t provide any value while entering the values in
the table.
Format example – This property helps to set the format of the data entered in the field such as 91-222-333.
25) What do you mean by Sorting? In how many ways it can be done?
Sorting means to arrange the data in either ascending order of descending order. It can be done in two ways either
ascending or descending order. Select the column, then click on sort button.
30) How many types of relationships can be created in Base? Explain each of the them.
There are three types of relationships which can be created in 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 primary key column.
3. MANY to MANY - In this relationship, no table has the primary key column.
32) What is the file extension for databases created using OpenOffice.Org Base?
.odb
4|Page
33) List any three file formats that can be managed using OpenOffice.Org Base?
Three file formats that can be managed using OpenOffice.Org Base.
• .odb.
• .odf.
• .odt
Report- A report helps to display the data in a summarized manner. It is used to generate the overall work outcome
in a clear format. You can create reports in the database.
50) In how many ways Forms and Reports can be created in a database?
Forms can be created by two ways –
• Create Form in Design View
• Use Wizard to Create Form
Reports can by created by one way –
• Use Wizard to Create Report
51) Define DELETE Statement in SQL.
Delete statement is used to remove one or more records from the table. It is a DML Command.
6|Page