Professional Documents
Culture Documents
Ggscet, Talwandi Sabo
Ggscet, Talwandi Sabo
Ggscet, Talwandi Sabo
PRACTICAL FILE
OF
DBMS
SUBMITTED BY:-
SUBMITTED TO:-
INDEX
SR NAME OF EXPERIMENTS
N
O
1 INTRODUCTION TO DBMS
EXPERIMENT NO. 1
MANISHA GOYAL 7270303158 Page 2
GGSCET, TALWANDI SABO 2009
Introduction to D.B.M.S
D.B.M.S stands for Database Management System .It is a software use to
access the database in such a way that there is no problem is accessing
the database. its goal is to store and retrieve database information that is
both convenient and efficient.
ADVANTAGES
Minimal redundancy
Inconsistency
Sharing of data
Standard
Search Capability
Integrity
Privacy & security
Data migration & data Transfer
Simplicity
Concurrency
Faster Application Development
Flexibility
Title:- Introduction to Oracle:
ORACLE TOOLS: Some of the Oracle’s tools to access data & create
tables are:-
SQL *PLUS: It has a command line interface with it with which we can
access the database & write stored procedure.
Example: char(40)
Example: varchar2(80)
• number(o, d): Numeric data type for integers and reals. o = overall
number of digits, d= number of digits to the right of the decimal point.
Maximum values: o =38, d= - 84 to +127.
Experiment No.2
Title:- To implement different types of DDL,DML and DCL statements in SQL.
5. To create a table
9. To alter a table
(a) To add data in a table
Experiment No.3
Theory :-
Data constraints: Besides the cell name, cell length and cell data type there are
other parameters i.e. other data constrains that can be passed to the DBA at check
creation time. The constraints can either be placed at column level or at the table
level
Primary Key: primary key is one or more columns is a table used to uniquickly
identity each row in the table. Primary key values must not be null and must be uni
Question across the column. A multicolumn primary key is called composite primary
key
Syntax :
Create table table name
Experiment No.4
Title:- To explore ‘select’ clause using where, order by ,between,like,group
by,having, etc
Theory:-
There are circumstances where we would like to apply the aggregate function not
only to a single set of tuples, but also to a group of sets of tuples, we specify this
wish in SQL using the group by clause. The attribute or attributes given in the group
by clause are used to form group. Tuples with the same value on all attributes in the
group by clause are placed in one group.
1. TO EXPLORE SELECT USING GROUP BY
Experiment No.5
Title:- To implement inbuilt functions on the created database
2. Logical Operators
Experiment No.6
Title:- To implement nested and correlated database .
Theory:-
A sub Query is a form of an SQL statement that appears inside another SQL
statement. It also termed as nested Query. The statement containing a sub Query
called a parent statement. The rows returned bu the sub Query are use by the
following statement.
Union Clause:
The user can put together multiple Questionnaires and combine their output using
the union clause . The union clause merges the output of two or more
Questionnaires into a single set of rows and column. The final output of union clause
will be
MINUS CLAUSE:- The user can put together multiple Questionnaires and combine
their output = records only in Query one