database project airport management system
TRANSCRIPT
Group members
Asad Nisar Nauman Abbas Muhammad Fahad Husnain Ehsan Fazeela Safdar
Airport Management System Course DBMS Instructor Sir Usman
Table of Content
What is Database Database Management Importance of DBMS Airport Management System Introduction Benefits Implement of DBMS Requirement ER-Diagram SQL Security
.
Over View
A Collection of logical related data it can easily access.
Data store in Tables, RowsAnd Column
Data Base
A database management system (DBMS) is system software.
Creating and managing databases. In which files are integrated to each
other The DBMS facilitates the user to create,
retrieve, update and manage data.
Database management
Importance of DBMS
It helps make data management more efficient and effective.
A database management system stores, organizes and manages a large amount of information within a single software application.
Use of this system increases efficiency of business operations and reduces overall costs.
Introduction of Airport Managements System We used DBMS in airport management system. First of all, we need to identify the entities,
attribute and relationships. When we use DBMS, the record of all airport
management entities is in the same location. We shows entities, attributes and relationships
by ER diagram. SQL is a language which is used for applying
queries. Example we applying queries for insertion, deletion or updating etc.
Benefits
While using DBMS, the data is independent. It removes duplication of data. Easy to insert, update and delete data in DBMS. When we use DBMS, the files integrated each other. We can secure our data by using DBMS.
Problems
They do not communicate at accurate time. Duplication of Data Data Dependency At the Time of installation of a data base or
implementation of database we check the capacity of the operating system if operating system cannot capable to perform the operations we need to install a upgrade operating system to run a database efficiently.
Implement of DBMS
Analyze user environment. Develop logical model. Choose DBMS. Map logical model DBMS. Develop physical Design. Evaluate Physical Model.
Requirements of AMS
Database management system required a operating system that have capability to run and perform the operation of database with the help of quires.
Database required a that Database Administrator for control the of the data flow.
Entities & Attribute
ENTITY : Airpot ATTRIBUTES (Airpot_id, Airpot_name, city)
ENTITY : Employee ATTRIBUTES (emp _id, emp _ name, emp_age, Airport_name, salary, Job, emp_Address)
ENTITY : Passengers ATTRIBUTES (p_id, p_name, p_age, p_address, country_name)
ENTITY : Airline Companies ATTRIBUTES (c_id, c_name, city, country)
ENTITY : Ticket ATTRIBUTES (order_no, flight_name, seat_class, price, passenger_name)
ENTITY : Flight time ATTRIBUTES (Flight_no, Airport_name , Arrivals_hours , Aiport _arrival, Departure_Hours)
ER-DIADRAM
AIRPORT
CityAirport_Na
me ID
Has
Employees
Emp_id
Emp_name
JOB
Salary/payment
AGE
Serve
Passengers
Country
P_Address
P_Name
P_ID
PurchasesTickets
Class/seat
Flight/compan
y
Flight Number Price Passenger
name
Carries
Airlines company
IDCountry
Name
CityBelongs to
FlightsAirportName
Airportarrrival Departur
e_Hour Flight_no
1
MM
M
M
M
1
1
1
M
M
Description
Airport has employees Employees serve passengers Passengers purchases tickets Flight carries passengers Ticket belongs to flight
Models of DBMS
Data Model is a collection of concept used to describe the structure of a data. It contains data types, relationships, and constraints. Hierarchical model Network model Relational model
Relational Model
Conceptually simple Computers lacked power to implement the relational
model We are using the RDBMS in this data model RDBMS has its ability to hide the complexities of the
relational model from the user. It contains tables.
SQL
S.Q.L stands for Structured Query language. It is used to interact with the database. SQL was developed by IBM. It is the standard language for RDBMS. Using SQL statements we can perform tasks such
as retrieving or updating data from the database. Select statement Create table Insert into Delete table
Basic statements
Data definition language Select statement Create statement Alter statement
Adding a column Renaming a column
Drop statement
Select statement
Select*From<Table Name>Where<Condition>ExampleSelect*From studentwhere name = Ali;
Create statement
Create table <table name>(Column 1 data type,Column 2 data type…Column n data type)Example:Create table <Student>{std_id varchar (15)Std _name varchar(20)Std_address varchar (40)};
Alter statement
Alter table <table name>ADD(Column 1 data type,Column 2 data type…, Column n data type);Alter table studentAdd(Roll_no varchar(10),std_age varchar(3));
Drop Statement
Syntax: Drop Table <table name> Example: Drop Table Student;
Basic statements
Data manipulation language(DML) Insert statement Delete statement
Insert statement
Syntax: insert into <table name> (column 1, coulmn 2…, column n)Values (value 1, value2,… value n);Example: insert into student ( std _id, std_name, std-address)Values (10, Ali, ABC)
Delete statement
Syntax: delete from <table name> where (condition)Example: delete from student where std_id=10;
DBMS Security
The unit of data used in specifying security in the database can be, for example;
• the entire database• a set of relations• individual relation• a set of tuples in a relation• individual tuple• a set of attributes of all tuples• an attribute of an individual tuple.
Security
Database Security involves protection against: unauthorized disclosures alteration destruction Stop people without db access from having any
access.
THE END