Class 10 I.T. Practical File
Class 10 I.T. Practical File
6
Database Servers
Database servers are dedicated
computers that hold the actual
databases and run only the DBMS
and related software. Typically
databases available on the
database servers are accessed
through command line or graphic
user interface tools referred to as
Frontends; database servers are
referred to as Back-ends. Such type
of data access is referred to as a
client-server model.
7
RDBMS
A relational database management
system (RDBMS) is a database
management system that is based
on the relational model as
introduced by E. F. Codd, of IBM’s
San Jose Research Laboratory.
Most popular databases currently in
use are based on the relational
database model The relational
model for database management is
a database model based on first-
order predicate logic, first
formulated and proposed in 1969 by
Edgar F. Codd. In the relational
8
model of a database, all data is
represented in terms of tuples,
grouped into relations. A database
organized in terms of the relational
model is a relational database. The
purpose of the relational model is to
provide a declarative method for
specifying data and queries: users
directly state what information the
database contains and what
information they want from it, and
let the database management
system software take care of
describing data structures for
storing the data and retrieval
procedures for answering queries.
9
Tables :
10
Columns or Fields:
A column is a set of data values of a
particular simple type, one for each
row of the table. The columns
provide the structure according to
which the rows are composed. For
example, cFirstName, or
cLastName are fields in a row.
11
Rows or Records
or Tuples:
A row also called a record or tuple
represents a single, data item in a
table. In simple terms, a database
table can be visualized as
consisting of rows and columns or
fields. Each row in a table
represents a set of related data, and
every row in the table has the same
structure.
12
Data types :
14
15
16
MANIPULATING DATA
In a database you can define the
structure of the data and manipulate
the data using some commands.
There are two types of languages
for this task. These are:
• Data Definition Language (DDL)
• Data Manipulation Language
(DML)
18
Data Definition
Language (DDL)
A data definition language or data
description language (DDL) is a
standard for commands that define
the different structures in a
database. DDL statements create,
modify, and remove database
objects such as tables, indexes, and
users. Common DDL statements
are CREATE, ALTER, and DROP.
19
Data Manipulation
Language (DML)
A data manipulation language (DML) is a
language that enables users to access
and manipulate data in a database. The
goal is to provide efficient human
interaction with the system. Data
manipulation involves:
CREATING A DATABASE
OBJECT
22
Launching Openoffice To launch
OpenOffice, click
Start>Programs>OpenOffice.org
3.4.1>OpenOffice.org.
23
Select the option database to launch the
base application.
• Click Start>Programs>OpenOffice.org
3.4.1>OpenOffice.org Base. You should
are guided through the Database Wizard
for creating a database. You will see a
24
dialog box similar to the one displayed
below.
25
: BUILDING FORMS
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.
To create a form,
Click on Forms option located
under Database section (Figure
below).
31
Click Use Wizard to Create Form…
option under Tasks group. The
32
Form Wizard dialog box appears as
shown below.
33
you use SQL (pronounced as “sequel”)
or Structured Query Language. Query
languages are computer languages
used to make queries into databases
and information systems. Queries are
commands that are used to define the
data structure and also to manipulate
the data in the database.
43
44
You can type the query in the above
window and execute it by using the
F5 function key or by clicking the
icon in the window. For example, if
you want to display all the data in
the table that you created in the
early session, then the select
statement will be: select * from
SDetails; After executing the select
query the output will be shown
similar to the one displayed below
45
You can type the query in the above
window and execute it by using the
F5 function key or by clicking the
icon in the window. For example, if
you want to display all the data in
the table that you created in the
early session, then the select
statement will be: select * from
SDetails; After executing the select
query the output will be shown
similar to the one displayed below
46
To get details about the list of
students whose favorite color is
blue, you can use: select * from
SDetails where Color=’Blue’; After
executing the select query the
output will be shown similar to the
one displayed below.
48
“Location”)values (‘8’, ‘Ranjith Singh’, ’67’, ‘12-03-99’,’X’,
‘435363’, ‘[email protected]’, ‘White’, ‘Bihar’);
UPDATE statement
CREATE Statement
49
would like to create a table using the Create statement,
type the following and click Execute.
The end .
50