Unit 3 Database Management System Class 10
Unit 3 Database Management System Class 10
Unit 3 Database Management System Class 10
2) Click the Select Fields > Choose Category > Select the table > Click on Next Button.
3) Select the fields as per the requirements. Click on Next button
4) Set the data types and properties of the selected fields. Click on Next Button
5) Set the Primary Key and Click on Next Button
6) Window to rename the table will open. A user can either go ahead with the same table name or can change it.
7) Click on Finish to insert the data in the table.
b) Creating table using Design View
1) Click on Create Table in Design View.
2) Specify the field name and data type of the field.
3) Save the table by clicking on File > Save
4) Specify the table name. The default name is Table1. Click OK.
5) An alert appears, if there is no primary key in the table.
6) Click yes and set the primary key and finally save the table.
Data Types :
Datatypes are used to identify which type of data (value) we are going to store in the database. Data types in
OpenOffice base are broadly classified into five categories listed below.
1. Numeric Types
2. Alphanumeric Types
3. Binary Types
4. Date time
5. Other Variable types
Numeric Types :
Numeric data types in a database can be used for storing information such as mobile number, roll number, door
number etc. The different types of numeric data types available are listed here.
Alphanumeric Types :
This data type is used to store information which has alphabets as well as numbers for example address, book
summary field etc. The different types of Alphanumeric Types available are listed here.
Binary Types :
Binary data types are used for storing data in binary formats. Binary data types in a database can be using for
storing photos, music files, etc.
DATE TIME :
Date time data types in a database can be used for storing information such as date of birth, date of admission, date
of product sale, etc.
Database Management System Class 10 Notes
ASSESSMENT
Fill in the blanks:
1) A table is a set of data elements that is organized using a model of vertical and horizontal __________________.
2) A _______________ is a set of data values of a particular type, one for each row of the table.
3) A____________________ _ represents a single, data item in a table.
4) _______________________ are used to identify which type of data we are going to store in the database.
5) There are __________________ ways to create a table.
6) Field properties can be set in both the _________________ and _______________ .
Short Answer Questions
Q1. In how many ways tables can be created in Base?
Q2. Why are data types used in DBMS /RDBMS?
Q3. List datatypes available in Numeric Datatype?
Q4. List datatypes available in Alphanumeric Datatype?
Q5. Define the structure of a table.
Q6. Differentiate between Tuples and Attributes of a table.
Q7. Name different Binary data types.
Field Properties :
To set the field properties: Select the table > Right click > Select the option Edit > the table will open in Design View.
In design view there are different properties of fields according to the data type set for each field.
The properties of numeric type data is given below :
1) AutoValue – if set to yes then field will get the auto numeric values.
2) AutoValue – if set to yes then field will get the auto numeric values.
3) Length – By default length of the field is 10 but the size of the field can be set to maximum length.
4) 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.
5) Format – This property helps to set the format of the data entered in the field such as 91-222-333.
The properties of character type data is shown below :
1) Entry Required – if set to yes then it will be must to insert the value in the field.
2) Length – By default length of the field is 10 but the size of the field can be set to maximum length.
3) 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.
4) Format – This property helps to set the format of the data entered in the field such as 91-222-333.
Sorting Data :
Sorting means to arrange the data in either ascending order of descending order.
Referential Integrity :
Referential integrity is used to maintain accuracy and consistency of data in a relationship. In Base, data can be
linked between two or more tables with the help of primary key and foreign key
Referential integrity helps to avoid:
1) Adding records to a related table if there is no associated record available in the primary key table.
2) Changing values in a primary if any dependent records are present in associated table(s).
3) Deleting records from a primary key table if there are any matching related records available in associated
table(s).