1) Introduction:: Data Design and Modeling Database Management System Software End Users
1) Introduction:: Data Design and Modeling Database Management System Software End Users
PUNE - 411043
Department of Electronics & Telecommunication
ASSESMENT YEAR: 2018-2019 CLASS : SE V/VI/VII/VIII
CLASS:TE7 SUBJECT:ESD
1] INTRODUCTION:
6.Telecommunications
Any telecommunication company cannot even think about their business without DBMS.
DBMS is must for these companies to store the call details and monthly post paid bills.
PUNE INSTITUTE OF COMPUTER TECHNOLOGY
PUNE - 411043
Department of Electronics & Telecommunication
ASSESMENT YEAR: 2018-2019 CLASS : SE V/VI/VII/VIII
3] view of data
1. Physical Level
Physical level describes the physical storage structure of data in
database.
It is also known as Internal Level.
This level is very close to physical storage of data.
At lowest level, it is stored in the form of bits with the physical
addresses on the secondary storage device.
At highest level, it can be viewed in the form of files.
The internal schema defines the various stored data types. It
uses a physical data model.
2. Conceptual Level
Conceptual level describes the structure of the whole database
for a group of users.
It is also called as the data model.
Conceptual schema is a representation of the entire content of
the database.
These schema contains all the information to build relevant
external records.
It hides the internal details of physical storage.
3. External Level
External level is related to the data which is viewed by individual
end users.
This level includes a no. of user views or external schemas.
This level is closest to the user.
External view describes the segment of the database that is
required for a particular user group and hides the rest of the database
from that user group.
PUNE INSTITUTE OF COMPUTER TECHNOLOGY
PUNE - 411043
Department of Electronics & Telecommunication
ASSESMENT YEAR: 2018-2019 CLASS : SE V/VI/VII/VIII
5.]Disadvantages of DBMS :
5] DATABASE LANGUAGES
Database Languages are used to create and maintain database on computer. There are
large numbers of database languages like Oracle, MySQL, MS Access, dBase, FoxPro
etc. SQL statements commonly used in Oracle and MS Access can be categorized as
data definition language (DDL), data control language (DCL) and data manipulation
language (DML).
6.] SQL
Structured Query language is a standard database language which is used to create ,
maintain and retrieve the relational database SQL can :
1.Execute queries against a database.
2. Retrieve data from a database.
PUNE INSTITUTE OF COMPUTER TECHNOLOGY
PUNE - 411043
Department of Electronics & Telecommunication
ASSESMENT YEAR: 2018-2019 CLASS : SE V/VI/VII/VIII
3.Insert and update records in a database.
1] SELECT- extracts data from databases.The data returned is stored in a result table, called
the result set.
FROM table_column;
The where clause is used to extract only those that fulfil a specified condition.
FROM table_column;
Where condition;
3] INSERT INTO: Statement is used to insert new records in a table .There are two ways .The
first way specifies both columns and values .
Syntax:
VALUES(value 1,……);
Where condition;
Syntax:
PUNE INSTITUTE OF COMPUTER TECHNOLOGY
PUNE - 411043
Department of Electronics & Telecommunication
ASSESMENT YEAR: 2018-2019 CLASS : SE V/VI/VII/VIII
CREATE DATABASE DATABASE_NAME;
CODE:
password: ****
Database changed
-> );
+------+-------------+------------+--------------+------------------------+----------+-------------+-------+
+------+-------------+------------+--------------+------------------------+-----------+------------+-------+
+------+-------------+--------------+--------------+------------------------+-----------+-----------+---------+
-> );
+-------+------------+-----------------+--------------+-----------+----------------+-------------+--------+
+-------+------------+-----------------+--------------+------------+---------------+-------------+--------+
-> );
->(“LM358”,”DIP-8”,100),
->(“LM3524”,”DIP-16”,20);
+-------+-------------+--------------------+--------+
+-------+-------------+--------------------+--------+
PUNE INSTITUTE OF COMPUTER TECHNOLOGY
PUNE - 411043
Department of Electronics & Telecommunication
ASSESMENT YEAR: 2018-2019 CLASS : SE V/VI/VII/VIII
|
1 | LM3524 | DIP-16 | 45.000 |
+-------+------------+---------------------+-----------+
-> );
mysql> INSERT INTO diode(d_name, cost, ifsm, Vrms, Irm, Vfm,quantity ) VALUES
+-------+------------+--------+-----------+---------+--------+--------+------------+
+-------+------------+--------+-----------+---------+--------+--------+------------+
+-----+---------------+---------+----------+---------+-------+---------+-------------+
-> );
-> );
+------+------------+------+--------------+----------------+-------------------+--------------+-------------+
+------+------------+------+--------------+----------------+-------------------+--------------+-------------+
+------+------------+------+--------------+----------------+-------------------+----------------+-----------+
-> Ic FLOAT(5,3),
-> );
+-------+-----------+------+-----------+----------+------------+
+-------+-----------+------+------------+---------+-------------+
+-------+-----------+------+--------------+--------+-------------+
-> WHEN(r_id IS NOT NULL) THEN (SELECT cost FROM resistance WHERE
resistance.r_id=orders.r_id)
PUNE INSTITUTE OF COMPUTER TECHNOLOGY
PUNE - 411043
Department of Electronics & Telecommunication
ASSESMENT YEAR: 2018-2019 CLASS : SE V/VI/VII/VIII
->
WHEN(c_id IS NOT NULL) THEN (SELECT cost FROM capacitors WHERE
capacitors.c_id=orders.c_id)
-> WHEN(t_id IS NOT NULL) THEN (SELECT cost FROM transistor WHERE
transistor.t_id=orders.t_id)
-> WHEN(i_id IS NOT NULL) THEN (SELECT cost FROM inductor WHERE
inductor.i_id=orders.i_id)
-> WHEN(ic_id IS NOT NULL) THEN (SELECT cost FROM ic WHERE ic.ic_id=orders.ic_id)
-> WHEN(d_id IS NOT NULL) THEN (SELECT cost FROM diode WHERE
diode.d_id=orders.d_id)
-> ELSE 1
-> (CASE -> WHEN(r_id IS NOT NULL) THEN (SELECT r_name FROM resistance WHERE
resistance.r_id=orders.r_id)
-> WHEN(i_id IS NOT NULL) THEN (SELECT i_name FROM inductor WHERE
inductor.i_id=orders.i_id)
-> WHEN(d_id IS NOT NULL) THEN (SELECT d_name FROM diode WHERE
diode.d_id=orders.d_id)
-> WHEN(ic_id IS NOT NULL) THEN (SELECT ic_name FROM ic WHERE ic.ic_id=orders.ic_id)
+-------------+--------------+------------+---------+-----------------+------------+
+-------------+--------------+-------------+--------+-----------------+------------+
+----------+----------+----------+--------+----------+-------+--------+-------------+
PUNE INSTITUTE OF COMPUTER TECHNOLOGY
PUNE - 411043
Department of Electronics & Telecommunication
ASSESMENT YEAR: 2018-2019 CLASS : SE V/VI/VII/VIII