You are on page 1of 13

CREATING DATABASE AND TABLES

, Whatmethodcan yOu use to add a new table to your database in OOo Base ?
view to create a table
Use Design
(a)
create
table through table wizard
(c)
(6)enterdata directly in a blank sheet and save it as table
above
ld)all
the ,(er (a) and (b)
4 ABASEdatabase is made up of all the following components EXCEPT:
(a)tables (b) queries (c) forms
4 Whichofthe following fields would not make a suitable primary key1(Yformula
? bars
customers account number
(a)A AutoNumber field (YA date field
i An (d) A student
The default
extension of O0o BASE database is admission number
5
(a)oob (b) base
odb
(d) dbo
Theshortcut key
to create a new database is

(e Ctrl+N (b) Ctrl+ O (c) Ctrl+ A


(d) Ctrl + D
. Theshortcut key to open an existing database is
(a) Ctrl + N (bY Ctrl +O (c) Ctrl + A
data (d) Ctrl + D
& A table is a set of elements that is organized using a model of
vertical and horizontal
(a) Rows, Tables
() Rows, Columns oColumns, Rows
(d) Forms, Reports
[CBSE Sample Paper Term I 2021-22]
9 specifies the type of data that may be stored in a
(a) Autosave field.
(b) Autovalue
10. Afer opening a database, you
can create tables
eyField Type (d) Entry
(a) Tables Tab (b) Tools menu interactively using
1. State True or (c) Edit menu La Table wizard
False.
0) There can be multiple
primary keys in a table.
") Adatabase can have multiple
(i) Columns in objects like table, forms, queries, reports etc.
(0) Aprimary key
tables are called records and rows in tables are called fields.
2 value can be NULL.
Dat(a) Front-ends
abase servers are referred to as
(b Back-ends (c) Clients (d) Model
[CBSE Sample Paper Term I, 2021-22]
mpet
3. ency Based Questions
"SheZoya has recently learnt about
started O0o BASE to createdatabase tables. She has enthusiastically downloaded Open Office.

openinZoyag/creating
(a)
a table. But when the Base started, she cancelled the dialog of
right solution froma database. She was unable to create tables. Help her do this by picking up the
the options given below.
has not downloaded Table Wizard. She must download Table Wizard also.
Zoya must either create
database
S0t les7 apated.
new blank database or open an existing database. Only in an open

IASSEL BLoAEDsYSTEM
UNIT III: DATABASE M
158
Table
INFORMATION TEECHNOG
Wizard to be used with base.
must fetch the settings for
(c) Zoya
a special extension which allowsto create tables without
install
(d) Zoya should he
database.
new database. She now wants to ne d
mistake and created a
14. Zoya has rectified
interactively. Whichher
feature of OOo BASE will help her to create the tables in thiscreate
way ?
(c) The Queries Tab (a dat atle
(a) The Tables Tab
(b) The Forms Tab The Table
using Table Wizard, Zoyais clear about what type of data Wizard
15. While creating tables
or text or date etc.)
will be stored in the
fields. For this what should she do
(
whiwleheth e
usrTng Nuanesr
(a) She should create a text file which stores the details of data types for each field. tadl
wizard ?

data to be stored, in Table Wizard


(b) Zova cannot define the type of
should choose the Field Type for each field
After selecting the fields, Zoya in the
with other details. table, along
the default types, after Table
(d) Zoya can only change the data type from wizard has createg
the table.

LET US REVISE
org (000).
OBASE is the database component of open source office suite OpenOfice.
.odb.
OThe default extension of 00o BASE database is
One can createa new database either using Table Wizard or by creating constituent tables in Desiam rou
B
T

B Joluion Time
1 The manager of acar showroom uses a database to store data about cars he sells. This is part of the databse.

Make Model Size of engine Registration Price (Rs.)


Opel Vectra 1.8 VSE 648 9,00,000

Opel Zafira 2.0 BFK 297 9, 29,000


Volkswagen Golf 1.4 SB A5526 14,15,000

Volkswagen Polo 1.2 DD B4978 23,11,000


11,19,000
Volkswagen Jetta 1.6 B G8347
Renault 18,17,000
Megane 1.4 1233 CD 33
Renault Clio 6289 XF 54 9,11,000
1.2

(a) Give the name of a field that contains numeric data.


(b) Identify the field type of the 'model' field.
(c) Which field could be made the key field or the primary key !
Ans. (a) Size of Engine and Price
(b) Character or Text
(c) Registration
CREATING DATABASE AND TABLES 159

iowns agardening center


Rushal
that has a Nursery of plants and that sells plants, manure, gardening books
equipments and material. She has developed aprogram that asks the user to enter
2 related instruments,
andotherand price ofa) plant. The programthen calculates and displays atable of prices as shown below.
the
name the
Plant : Geranium
Number Cost (Rs)
1 41.50
2 63.00
3 44.50
4 56.00
5 67.50

a Cou you name some possible tables of this database and what kind of information would they be
storing? Name at least three tables.
a Pushali uses a database to store details of books stocked by the center. She uses the database to
produce lists of books on special offer.
Listing A Listing B
Title Price (Rs.) Title Price (Rs.)
Bulbs for Spring 90 Bulbs for Spring 90

Green Lawns 115 Green Lawns 115

195 Orchids 225


Orchids
Bonsai for Beginners 300
Bonsai for Beginners 300

shown in Listing A to
Specify which database operation has taken place that has converted the table
that of table shown in Listing B.
Ans.
(a) Names of possible tables : (i) Plants (i) Books (iii) Equipments and Materials
(b) Modification of record has taken place.
directed :
3. Look at the table structures shown below and do as
be present in each of the following tables
ldentify the column(s) out of the given three, which should not
() Table 1: Stock
Date of Birth Item Quantity
Item No.

(ii) Table 2. : Book


Accssn No
Admno. Price

(ii) Table 3. : Firmnotive


Phone Number
Design Cat
FNo.
(ii) Phone Number
(ii) Admno
Ans. (i) Date of Birth

UNIT III : DATA BASE MAN


160

GLOSSARY
INFORMATION TECH YO
Data Type Means to identify type of data type and associated features and fine:.
Primary key A designated field having unique value for each row in a table.

Aosignment
1. How can a BASE database be created ?
2. What is the need of designing tables ?
3. How can a table be created in BASE ?
4. What does a table wizard do ?

5. Can you set the primary key of a table through the table wizard?

PRACTICAL ASSIGNMENT
1. Start BASE and open new database named Employee.
2. Define structure of first table of your data-base as follows in design view.
P
A Structure of Table 1
Field Name Data type
Empcode TINYINT
Fname Text (15 characters)
B
Lname Text (15 characters)
Address Text

City Text (20 characters)


DOB Date
Phone Text

Specify Empcode as Primary key and save this table as Table 1.


3. Define structure of second table (Table 2) as follows :

Structure of Table 2

Field Name Data Type


Empcode TINYINT

Department Text
DOJ Date
Basic Salary Number

4. Suggest a primary key for table 2 and set it for table 2.


click at the ellipsiS next
(ii) To set the Format held property, you need tovOu need to select the desired tormat
property and then from the Field Format dialog.
type and category. (Fig 3.7)
Field Format Then from the
Field Properties Format Alignment Format dialog, select
desired format.
To set Format, Category Format
Entryrequired
No click at the ellipsis General English (ndia)
User-defined -1234
button. Number -1234.12
ength Percent -1,234
0
melplaces Currency -1,234.12
Date -1,234.1 2
otvalue Time
1234.57
Formatevample Scientific
Options
Decimal places Negative numbers red
Leading zeroes 1 Ihousands separator
Format code
General

OK Cancel Help Reset

Figure 3.7 Setting Format property


Once vou have made the desired changes in the table structure, you can enter or edit data in
table as you will learn in the coming session.

(heck Point
1. What method can you use to add a new table to your database in OOo Base ?
(a) Use Design view to create a table (b) create table through table wizard
(c) enter data directly in a blank sheet and save as table
(d) all the above é (a) and (b)
2. Which of the following is/are not part(s) of table structure in OOo BASE ?
(a) Field Name (b) Field type (c) Length (d) Primary key
(ef size of table (humber of records
3. Which of the following represent Text field type categories in O0oBASE ?
(a) CHAR (b) VARCHAR (c) LONGVARCHAR (Yall these
* When you save a BASE database, what file format do you use ?
(a) .adp. (b) xml. (c) .mdb ) .odb
5. The
legal empty value in BASE database is termed as
(a) Hollow (b) empty (c) void (GY null
6.
TIMESTAMP belongs
(a) Integer
to field type in BASE.
(b) Time ()Bate/Time (d) Text
1.
Which of the following is are not a BASE field type?
(a) TinyINT (bPercernt (c) Double a BigDouble
UNIT II: DATABASE MANAGEMENT SYSTEM
172 INFORMATION TECHINOLOGy
numbers?
8. Which of the following field types can represent upto 5 digits
(SMALLINT)
(b) Real
( Small Integer
(a) Integer([NT)
(d) Float numbers or text in
cannot allowintegers or them ?
9. Which of the following field types (c) Binary
(a) Xes/No (b) Image these
(e) none of
10. . (d)
Which
all ofthe
the following
above field properties ensure that "data cannot be skippedin the field" or "feld cann,

be left cmpty"? e Default Value (d) Length


6YEntryRequired EXCEPT:
(a) Format following components
up of all the
database is made (c) forms yformula bars
11. ABASE (b) queries
(a) tables monitor your growing collection of
you'd like to set up a table in BASE to DVDs. In that
12. Suppose be entered as a
table, each DVD will (c) column (d) field
(b) long integer
a) record
the following parameters does BASE always consider
you define a field for a table, which of
13. When
optional ? teyDescription (d) Field Size
(a) Field Name (b) Data Type
should have a field size of :
14..The number 487.52 (c) Integer (d) Big Integer
P
(a) Tiny Integer b Small Integer
A
according to text, number, currency, date/time, etc is called
15. The organizing of data
oDate type (d) Data structure
(a) Data (6) Type
T
16. What identifies the contents of a field? (d) Table name
B (b) Field Value le Field name
(a) Data
of the following which one is most appropriate data
field in context of employee table if only
17. Out [CBSE Sample Paper 2011|
one of these is required ?
(a) Age in years (Date of Birth (c) Age in days (a) Age in months
[CBSE Sample Paper 201)
18. What data type should yorchoose for a zip code field in a table ?
(a) Text (bYNumber (c) Varchar (d) All the above
19. Which of the following fields would not make a suitable primary key ?
(a) A customers account number \A date field
(c) An AutoNumber field (d) A student admission number
[CBSE Sample Paper 2011)
20. What, is the purpose of the description column in Table Design View?
(a) Todescribe the data that should be entered in each field
(b) To define the data type applied to each field within the table
(c) To enter lookup data that the field should refer to
Paper 201
(d) None of the above |CBSESample
21. Fill in the blanks
as
is known
(a) The type th¡t dictates what sort of data can be stored within a field

(b) A field that uniquely identifies each record is


called
CREATING/EDITING TABLES IN DESIGN VIEW
173
( )Tostore an object like image, you need to create a field in table, having field type as

In a text type data field we can put maximum >characters. [CBSE Sample Paper 2011]
Matchthefollowing:
22
Part A
Part B
(o) Default Value () Maximum length of a text field or numeric field
(0) Length (ii) Number of places to the right of the
decimal
(c) Format example (ii) Data's display layout
Decimal Places (iv) A value that gets entered in a field
() automatically when new
records are entered.

23. The of a table is used to modify the design of a table, like


modifying the name of a
ieldor changing the data type of a field.
(a) Datasheet View
(c) Table View
rDesign View
(d) Wizard View
A You can select multiple fields of a table in design view by using the
key.
(a) Alt (b) Spacebar (c) Shift Ctrl
n the datasheet view of the Student table, the StudentAddress field needs to be
displayed as Address.
Which field property can be used to achieve this ?
4 Caption (b) Required
(0) Validation Rule (d) Default
26 data type stores date and time values between the years 100 through 9999.
(a) Date (b) Time ÓDate/Time (d) Memo

Competency Based Questions


I. Isha, Zoya's friend, has also learnt about Databases.She is a person of details. She feels that rather
than creating tables interactively, she should create the tables from scratch by typing the field name,
type, and other settings. What should she use to create tables in this manner ?
(a) Table Wizard, 6) Design View (c) Data View (d) Tables tab
3 Isha has successfully created her first table. But whileentering data, she realised that she forgot to
ud one field. She has already entered a few records. What can she do to add a new field in the
already created table ?
(a) Isha should delete the old table and create a new table.
she can add a new field.
() She will have to delete all the records in the table before
new field.
) She should open the table in Design view and add the
in Base.
(a) new field to an existing table is not allowed
Adding
29. Isha has now Some experience of creating and updating tables. Her boss has asked her to create a
details, the table should also have a
tabout the attendance of the employees. Along with other should be the field type for this
office. What
6lat can store the date and time of entry in the
field ?
(d) All of these.
(a) Date (b) Time (g/ Timestamp
Slot n One Prus IDATABASE
HASSELB MANAGEM E
sAL
II:

UNKalai
174
one of the tables. there is afield namely
INFORMATION TECHYOLG
employees, in
tables for yearly Bonus is
30. While creatingorganisation, minimumguaranteed
policy of the performance
depending upon theautomatically inserted in the Bonus
What
of the employee. fieldshould 2 Isha set
{7500/-
Bonus can
so that Bonus. behe even pr
amount of bonus is (b) Length property rmin Ttge
property
(a) Entry Required (af Default value property
Decimal places property
(c) days, salary and
bonus fields have the same
31. In tables, the
age, number of
money values (Salary and Bonus) should data type
However, the boss
clearly
wants the field storing
tell about the money value.
What can Isha do to achieve this ? Numbe
that they from others
cannot show two number fields differently
(a) Isha
\o Isha should choose the field format for Bonus and Salary as the currency format.
(c) Isha should use Text type for these fields so that Commas can be inserted in the values
and Salary as Text type and type "Rs.
should change the field type of Bonus
(d) Isha
int these fields.
with eah
32. Isha's value
office is a progressive office where each employee must commit to a charity cause. Whi
Creating table, Isha has been asked to ensure that 'Charity Cause' field never goes blank for aN
achieve this ?
emplovee. How can Isha
property length (b) By setting field property Default Valye
(a) By setting field Places rby setting ield property Entry Reuisd
(c) By setting field property Decimal
P
A
LET US REVISE
T
edited in design view.
I Atable can be Created or length fields alot x
B fields irrespective of their contents whereas variable
DFixed length fields allot same length to all
the field.
much length as needed by the contents of
Text, Date/Time, Numeral and Special.
O BASE datatype have these categories : Memo[LONGVARCHARJ.
Text[VARCHARJ, Text/VARCHAR-IGNORECASE] and
OTet data types are ed(fx)[CHAR.,
OMaximum length of all text type field is 2 GB.
Date/Time[TIMESTAMP].
0 Date/Time data types are : Date(DATE], Time[TIME], Float, Real Double, Numenc a
D Numeral data types are : Tiny Integer, Small Integer, Integer, Big Integer,
Decimal.

OSpecial datatypes include : Yes/No, Image, Binary and Other. Default vlue andFormat
Decimal Places,
O Different field properties that can be set are: Entry Required, Length,
example.
O Null value represents a legal empty value in adatabase.

Soluion Tine defaut.


that you can have in BASE. Which field isthe
type
1. Discuss various types of numeric fields
type ?
Or
Explain any three data types in OpenOffice Base.
CREATING/EDITING TABLES IN DESIGN VIEW
3
Sesson

Ans.In
BASE, we can have following types of Numeric fields:
length of
TinyInteger [TINYINT]. This field. accepts integers or whole numbers with afixed
() three (3) spaces.
Small Integer (SMALLINT,. This field accepts integers or whole numbers with a fixed length
of five (5) spaces.
(i)Integer |INT]. Thisfield accepts integers or whole numbers with afixed length of ten (10)
f up the field witha value you set automatically.
spaces. It also) has an auto value eature thattills
BigInteger
(ie) nineteen (BIGINT]. This field accepts integers or whole numbers with a fixed length of
(19) spaces. It also has an auto value feature that fills up the field with a value you
set automatically.

2. When should you prefer a. NUMERICfieldtype over INT ? types of numbers such as
Ans NUMERIC field type should be used when we need to store all
numbers with decimals, fractional numbers etc. On the other hand, INT field type
whole numbers,
should be used when purely
whole numbers are to be stored in the field.
by default value?
3. What do you understand field or control.
Ans. The default value is used to specify the default value for a
when a new record is created. For
The default value is automatically entered in afield or control
House". When users
Pvamnle. in Student table, you might set the default value for House as "Tagore different house.
or enter the name of a
add records to the table, they can either accept this value
Date[DATE] and Time(TIME] field types ?
A How is the feld type Date Time (TMESTAMPl different from field type stores the
the Time[TIME]
Ans. The Date[DATE] field type stores the dates only and combination of both Date and Time types
STAMP] is a
times only. But the field type Date/Time[TIME
known as timestamp.
and hence can store a combination of date and time, also
5. What is the significance of Null values ?
in a field when table demands data for the
Ans. Nullvalues are very useful while entering data values are legal empty values in BASE,
Null
field but user does not have any value to enter. Since
they can be entered in such situations.
6. Do as directed :
[CBSE Sample Paper 2011, Term I]
personal
and is asked to handle the records containing
() Pronita is a programmer in an institution fieldnames, which you think must
five
informationof the teachers teaching in the institution. Suggest
be present in the table called Teacherinfo.
the question.
() Look at the table called "Item" given below and answer
ItemStock ItemDOP Quantity Purchased
ItemId Item Name

(a) Suggest the data types of all the fields


from the above table ?
(0) Which twofields can act as the Prinary Key
Ans.

() TNo, TName, DOB, Address, B Salary.


Text
(i) (a) ItmelD
Item Name Text

ItemStock Number
ItemDOP Date

Quantity Purchased Number


(b) ItemIDand ItemName can act as the primary key.

UNIT II: DATABASE MANAGEMENT SYSTEM


176
to storeidata about cars he sells.
INFORMATION TECHNOIOG
ofacar shoUTOOMuses adatabase This is part oj
7. The manager the
Make
Model Size of engine Registration
VSE 648
Price (Rs.) databgee
1.8
Opel
Vectra
Zafira 2.0 BFK 297 9,00,000
9, 29,000
Opel SB A5526
1.4
Volkswagen
Golf
1.2 DD B4978 14,15,000
Volkswagen Polo
1.6 B G8347 23,11,000
Volkswagen Jetta
1.4 1233 CD 33
11,19,000
Renault Megane
6289 XF 54
18,17,000
1.2
Renault Clio
9,11,000
field that contains integer data.
(a) Give the name of a
the mnodel'field.
(b) Identify the field type of 2
Which field could be made the key field or the primary key and whu
(c)
Ans.
(a) Price
VARCHAR
(b) CHAR OR
Registration Field because it contains unique values for each record.
(c)
P
Rushali owns agardening center that has a Nursery of plants and that sells plants, manure. onrde
8. developed a program that asks the user thi
and other related instruments,equipments and material. She has
the name and the price of a plant.
of prices as shown below.
The program then calculates and displays a table
B Plant : Geranium

Number Cost(Rs)
1 41.50

63.00

3 44.50
56.00

5 67.50
databast
the
She Uses
(a) Rushali uses a database to store details of books stocked by the center.
produce lists of books on special offer.
Listing B
Listing A Price(Bs)
Title Price (Rs.) Title 90
Bulbs for Spring 90 Bulbs for Spring 115
Green Lawns 115 Green Lawns 195
Orchids 195 Orchids 300

Bonsai for Beginners

tableshown
Specify which database operation has taken place that has converted the
that of table shown in Listing B,

KEla
CREATING/EDITINGTABLES IN DESIGN VIEW
177
creatingthe tables, Bushali wants to make sure that Price
acccidentally. What can she do to ensure this ? column must not be left blank
deliberatelyor
create a new table where she wants to store the
ants to details of registered customers. To
numbers of the Customers, she has
storethephone decided the data
datatype. Butshe is confused which datatype suits her need the most. type
Helpshould be athis datatype.
her decide
Price
whole-number
shouldbe data type of column and why?
What
D
record has taken place.
A1s.
Insertion of
c£n set
the Field Property Entry Required to yes.
She
())Integer would suffice as it offers 10 spaces. Most phone numbers fit in this width. However,
ifthe phone numbers are bigger than 10 digits then Big Integer [BIGINT] should be used

that
offers 19 spaces.
typeof,Price column must allow decimal point hence
Thedata
suited for it.
Float, Real or Numeric types
best
areHouse conducts adventure trips and adventure cainps. When clients make a booking, Mira, the
¿Jowreka
enterstheir details in a database.
gitary,

Field Name Type Size Remarks


Sample Record
ClientCode Number 4
1342
Surname Text 20
Patrick
Firstname Text 20 Must not be empty Mike
Address Text 30
34 Kasturba Rd
Town Text 20
B'pore
Pincode Text
246003
Sex Text 6
Male
Date of Birth Date 6
03/11/98
Course Name Text 20 "Rock climbing" if no value is specified Ropes Course

4 Check the data types and the sample values. Are all data types correct? If no, then which type(s)
wOuld
you change and why?
0) How would you ensure the specifications in
(o) The
Remarks column?
database
Calculate howcurrently
holds information concerning 5,000 clients.
Ans. many bytes will be required to store all records. (Show your working.)
(a) Yes, all
data types are correct. Even though pincode stores a numeric value, yet Text data
ype can be effectively used
() Text for it because,
data types allow entry of numbers.
(ii) Since no
calculation is required for it thus it can be stored in Text data type without
b) For hinderingnotany operation.
"must be
empty", we set the field property Entry Required to yes for the field
FiForrst"NRockame climbing" no value
if is specified, we can set default value field property to "Rock
limbing" for the field Course Name.
SYSTEM
CREATING//EDITING TABLES IN DESIGN VIEW 177
Session3

(0) While Creating the tables, Rushali wants to make sure that Price column must not be left blank
doliberately or accidentally. What can she do to ensure this ?
() Rushali zpants to create a new table where she wants to store the details of registered customers. To
store the phone numbers of the customers, she has decided the data type should be awhole-number
data tupe. But she isconfused which datatype suits her need the most. Help her decide this datatype.
(a) Whaf should be data type of Price column and why?
Ans.

(a) Insertion of record has taken place,


(h She c£n set the Ficld Property Entry Requied to yes.
(0 Integer would suffce as it offers 10 spaces. Most phone numbers fit in this width. However,
if the phone numbers are bigger than 10 digits then Big Integer [BIGINT] should be used
that offers 19 spaces.
(à The data type of Price
it.
column must allow decimal point hence Float, Real or Numeric types
are best suited for
Youreka House condiucts adventure trips and adventure camps. When clients make abooking, Mira, the
secretary, enters their details in a database.

Field Name Type Size Remarks Sample Record


Client Code Number 1342

Surname Text 20 Patrick


Firstname Text 20 Must not be empty Mike
Address Text 30 34 Kasturba Rd

Town Text 20 B'pore


Pincode Text 246003

Sex Text 6 Male


Date of Birth Date 6 03/11/98
Course Name Text 20 "Rock climbing" if no value is specified Ropes Course

(a) Check the data types and the sample values. Are all data types correct? If no, then which typels)
would you change and why?
(b) How would you ensure the specifications in Remarks column?
() The database currently holds information concerning 5,000 clients.
Calculate how many bytes willbe required to store all records. (Show your working.)
Ans.

(a) Yes, all data types are correct. Even though pincode stores a numeric value, yet Text data
type can be effectively used for itbecause,
() Text data types allow entry of numbers.
(i) Since no calculation is required for it thus it can be stored in Text data type without
hindering any operation.
(b) For "must not be emply", we set the field property Entry Required to yes for the field
FirstName
For "Rock climbing" if no value is specified, we can set default value field property to "Rock
climbing" for the field Course Name.
UNIT II: DATABASE MANAGEMENT SYSTEM
178 INFORMATION TECHNOLOGty
its field sizes.
(c) Total size of one record is sum of allof
Hence,
=124 hkor
Size of 1 record :4+ 20 +20 + 30 +20+ 8 + 6+6+20
124 *5000
Bytes required by 5000 records =
=620000 bytes 620 Kilo bytes (KB)
= 620000/1024 KBs =606 KBs
Exactly,
directed :
10. Look at the table structures shown below and do as
present in each of
ldentify the column(s) out of the given three, which should not be the following tables:
) Tablel:Stock
Item No. Date of Birth Item Quantity

(ii) Table 2.: Book


Admno. Price Accssn No

(i) Table 3. : Firmotive

FNo. Design at Phone Number


P
A [CBSE Sample Paper 2011
Ans. (i) Date of Birth (ii) Admno (iii) Phone Number
T 11. What happens when you enter numbers in a Text data type field ? [Delhi 2008 (1 mark]
Ans. Numbers are accepted as text values.
B
12. Name tuo possible Primary key fields for an Employee table. [Delhi 2007 (2 marks)]|
Ans. EmployeeNumber, EmployeePANNumber.
13. What is a Primary Key in adataBase ? Give an example. [Outside Delhi 2010 (1 mark)])
Ans. Primary Key is a designated field in a table, which has a unique value for each record and
thus it can uniquely identify every record in the table.

GLOSSARY

Data Type Means to identify type of data type and associated features and functions.
Data Validation Process of ensuring the entry of only valid data (as per the rules) in the table.

Assignment
1. How are field types Boolean and TINYINT different from one another ?
2. Write the difference between INT and TINYINT data
types.
3. What do you mean by default value of a field in BASE and how can it be set ?
4. What arethe different Date/Time formats available in BA SR SS, ! 2
Kalal

You might also like