SlideShare a Scribd company logo
UNIVERSITY OF GUJRAT LAHORE CAMPUS
UNIVERSITY OF GUJRAT LAHORE CAMPUS
A W O R L D C L A S S U N I V E R S I T Y
Assignment No: 01
Submitted To: Sir Haroon
Submitted By: Sayyed Ans Ali
Date: 05-03-18
Topic Name: Basics of DBMS
Roll No: 16181519-050
Section: (A)
UNIVERSITY OF GUJRAT
LAHORE CAMPUS
H-8 Main Canal Bank Near Tajbagh Bridge Harbanspura
Lahore. Ph: 042-99239145-7 Fax: 042-36551963
www.uoglahore.edu.pk
QUESTION #01
Data Dependence Data Independence
1)A data dependency in ‘CS’ is
a situation in which a
program instruction refers
to the data of previous
instruction.
1)Independence means the
data is independent and there
is no changes occurs in
application program due to
change in data.
2) Data dependence means the
data is depends upon
application program. when we
make changes in data also
changes occurs in application
program in which we use Data.
3) The logical data
independence
Is the ability to modify logical
table without making change
in application program.
Structured Data Un-Structured data
• It is stored in organized
way.
• It is stored in un-organized
in predefined manner.
• Structured data is stored
inside of a data warehouse
where it can be pulled for
analysis.
• Unstructured data is more
like human language. It
doesn’t fit nicely into
relational databases like
sql, and searching it
based on the old
algorithms ranges from
difficult to completely
impossible.
• Structured data is both
highly-organized and easy
to digest.
• Unstructured data cannot
simply be recorded in an
Excel spreadsheet or data
table, and requires more
specialized skills and tools
to work with it.
Data Information
 Facts and figures is called
data.
 Possessed form of data is
called information.
 An example of data is E-
mail.
 This information may be in
the form of text
documents, images, audio
clips, software programs,
or other types of data.
Data Meta-Data
• Data is information processed
or stored by a computer.
• A data that describes and
gives information about
other data.
• At its starting level ,
computer data is in the
form of zeros and ones,
known as binary data.
• Meta is a prefix that in most IT
usage means "Description."
Row column
• In DBMS ‘row’ is also called
‘record’ or ‘tuple’
• A column is a set of data
values of a particular
simple types.
• For example, in a table
called customer contact
information, a row would likely
contain fields such as: ID
number, name, street
• Column defines data in
table
the column data only contains
a pointer or link to the actual
file.
address, city, telephone
number and so on.
Question # 02
List Of 20 DATA-BASE Used In World
1. ORACLE RDBMS
2. IBM DB2
3. MY SQL
4. MICROSOFT
5. AMAZON
6. TERADATA
7. FILEMAKER
8. POSTGRE SQL
9. MONGODB
10. SAP ASE (SYBASE)
11. MICROSOFT ACCESS
12. INFORMIX
13. MARIA DB
14. SQLITE
15. MEMSQL
16. ADABAS
17. Dbase
18. FIREBIRD
19. ZENGINE
20. COUCHBASE
QUESTION # 03
WHY DATABASE IS BENEFICIAL OVER FILE MANAGEMENT
• No redundant data in DBMS – Redundancy removed by data
normalization.
• Data stability and probity – data normalization takes care of
it.
• Secure – Each user has a different set of access to it.
• Privacy – Limited access.
• Easy access to data(data easily access by user or user
friendly).
• Easy recovery (backup of data).
• Flexible.
QUESTION # 04
CASE-STUDY (Departmental store)
EMPLOYEES(table)
Emp-id varchar(30)
Emp-name char(30)
Emp-CNIC int(30)
Emp-contact int(30)
Emp-address
varchar(30)
Office-code
varchar(30)(foreign
key)
OFFICES(table)
Office-code
varchar(30)
City char(30)
Office headquater
varchar(30)
Office-head
char(30)
Address
varchar(30)
Territory
varchar(30)
Contact int(30)
CUSTOMERS(table)
Customer-no int(20)
Customers-name
char(30)
Address varchar(30)
PAYMENT(table)
Customer-no int(30)
ORDERS(table)
Order-no int(30)
Order-Date int(30)
Shipping-Date int(30)
Customers-no int(20)
Payment-Date
int(30)
QUESTION # 05
DATABASE DESIGN FOR SCHOOL
SCHOOL(table)
School-Id
School-Name
Administrator
Contact
Location
DEPARTMENT(table)
Department-Id
Department-Name
Department’s-Head
School-Id(Foreign
key)
ATTENDANCE(table)
Id
Attendance
Date
Student-Id(Foreign
key)
SUBJECT(table)
Subject-Id
Name
Student-Id(Foreign key)
GRADE(table)
Id-subject(primary
key)
Grade/Point
Id-Subject(Foreign
key)

More Related Content

PPT
Database Systems Introduction (INTD-3535)
PPTX
Introduction to databases
PPT
Database structure
PPT
Database Concept by Luke Lonergan
PPT
Lecture 01 introduction to database
PPT
Intro databases (Table, Record, Field)
PPTX
Introduction to database
PPTX
Basic Concept of Database
Database Systems Introduction (INTD-3535)
Introduction to databases
Database structure
Database Concept by Luke Lonergan
Lecture 01 introduction to database
Intro databases (Table, Record, Field)
Introduction to database
Basic Concept of Database

What's hot (20)

PPT
A short introduction to database systems.ppt
PPTX
Database and types of database
PPTX
ITGS - Data And Databases
PPT
Data Dictionary
PDF
Database management system
PDF
Database report
PPTX
Databases and its representation
PPT
Database Management & Models
PDF
Chapter 6 Database SC025 2017/2018
PPTX
Presentation of DBMS (database management system) part 1
PPT
Week 1 Before the Advent of Database Systems & Fundamental Concepts
PPTX
Database fundamentals
PPT
Electronic Databases
PDF
RDBMS Arch & Models
PPTX
Relational database revised
PDF
Data models
PDF
Unit 4 rdbms study_material
DOC
rdbms-notes
PPTX
Data resource management and DSS
A short introduction to database systems.ppt
Database and types of database
ITGS - Data And Databases
Data Dictionary
Database management system
Database report
Databases and its representation
Database Management & Models
Chapter 6 Database SC025 2017/2018
Presentation of DBMS (database management system) part 1
Week 1 Before the Advent of Database Systems & Fundamental Concepts
Database fundamentals
Electronic Databases
RDBMS Arch & Models
Relational database revised
Data models
Unit 4 rdbms study_material
rdbms-notes
Data resource management and DSS
Ad

Similar to Dbms quries (20)

PPT
Introduction to Database Management Systems
PDF
INT 1010 07-3.pdf
PPT
Dbms 1
PPT
Unit01 dbms 2
PPTX
DBMS - Relational Model
PPTX
SQL training in Pune
PPT
dbms intro
PPT
Unit 01 dbms
PPTX
Mis chapter 7 database systems
PPTX
Introduction to Database Management Sytems
PPTX
Database fundamentals(database)
PPT
Database Systems Concepts, 5th Ed
PPTX
Unit-I_dbms_TT_Final.pptx
PPT
Unit01 dbms
PDF
4. GE ELECT 1 BSHM - Data and Databases.pdf
PPTX
PPTX
PDF
Database Systems - Lecture Week 1
Introduction to Database Management Systems
INT 1010 07-3.pdf
Dbms 1
Unit01 dbms 2
DBMS - Relational Model
SQL training in Pune
dbms intro
Unit 01 dbms
Mis chapter 7 database systems
Introduction to Database Management Sytems
Database fundamentals(database)
Database Systems Concepts, 5th Ed
Unit-I_dbms_TT_Final.pptx
Unit01 dbms
4. GE ELECT 1 BSHM - Data and Databases.pdf
Database Systems - Lecture Week 1
Ad

More from Ans Ali (8)

DOCX
Project,ATM Project,Java Atm Project
PDF
Sort techniques
PDF
chap 2 Ex#1.1
PPTX
Intro to computing
PPT
File handling
DOCX
MS-Commands
PPTX
Types of Arrays
PPTX
Into to programming fundamentals
Project,ATM Project,Java Atm Project
Sort techniques
chap 2 Ex#1.1
Intro to computing
File handling
MS-Commands
Types of Arrays
Into to programming fundamentals

Recently uploaded (20)

PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Pre independence Education in Inndia.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Classroom Observation Tools for Teachers
PDF
01-Introduction-to-Information-Management.pdf
PDF
Insiders guide to clinical Medicine.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Institutional Correction lecture only . . .
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Pharmacology of Heart Failure /Pharmacotherapy of CHF
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Pre independence Education in Inndia.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Anesthesia in Laparoscopic Surgery in India
Classroom Observation Tools for Teachers
01-Introduction-to-Information-Management.pdf
Insiders guide to clinical Medicine.pdf
Computing-Curriculum for Schools in Ghana
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
GDM (1) (1).pptx small presentation for students
Renaissance Architecture: A Journey from Faith to Humanism
Institutional Correction lecture only . . .
STATICS OF THE RIGID BODIES Hibbelers.pdf
RMMM.pdf make it easy to upload and study
102 student loan defaulters named and shamed – Is someone you know on the list?
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx

Dbms quries

  • 1. UNIVERSITY OF GUJRAT LAHORE CAMPUS UNIVERSITY OF GUJRAT LAHORE CAMPUS A W O R L D C L A S S U N I V E R S I T Y Assignment No: 01 Submitted To: Sir Haroon Submitted By: Sayyed Ans Ali Date: 05-03-18 Topic Name: Basics of DBMS Roll No: 16181519-050 Section: (A) UNIVERSITY OF GUJRAT LAHORE CAMPUS H-8 Main Canal Bank Near Tajbagh Bridge Harbanspura Lahore. Ph: 042-99239145-7 Fax: 042-36551963 www.uoglahore.edu.pk
  • 2. QUESTION #01 Data Dependence Data Independence 1)A data dependency in ‘CS’ is a situation in which a program instruction refers to the data of previous instruction. 1)Independence means the data is independent and there is no changes occurs in application program due to change in data. 2) Data dependence means the data is depends upon application program. when we make changes in data also changes occurs in application program in which we use Data. 3) The logical data independence Is the ability to modify logical table without making change in application program. Structured Data Un-Structured data • It is stored in organized way. • It is stored in un-organized in predefined manner. • Structured data is stored inside of a data warehouse where it can be pulled for analysis. • Unstructured data is more like human language. It doesn’t fit nicely into relational databases like sql, and searching it based on the old algorithms ranges from difficult to completely impossible. • Structured data is both highly-organized and easy to digest. • Unstructured data cannot simply be recorded in an Excel spreadsheet or data table, and requires more
  • 3. specialized skills and tools to work with it. Data Information  Facts and figures is called data.  Possessed form of data is called information.  An example of data is E- mail.  This information may be in the form of text documents, images, audio clips, software programs, or other types of data. Data Meta-Data • Data is information processed or stored by a computer. • A data that describes and gives information about other data. • At its starting level , computer data is in the form of zeros and ones, known as binary data. • Meta is a prefix that in most IT usage means "Description." Row column • In DBMS ‘row’ is also called ‘record’ or ‘tuple’ • A column is a set of data values of a particular simple types. • For example, in a table called customer contact information, a row would likely contain fields such as: ID number, name, street • Column defines data in table the column data only contains a pointer or link to the actual file.
  • 4. address, city, telephone number and so on. Question # 02 List Of 20 DATA-BASE Used In World 1. ORACLE RDBMS 2. IBM DB2 3. MY SQL 4. MICROSOFT 5. AMAZON 6. TERADATA 7. FILEMAKER 8. POSTGRE SQL 9. MONGODB 10. SAP ASE (SYBASE) 11. MICROSOFT ACCESS 12. INFORMIX 13. MARIA DB 14. SQLITE 15. MEMSQL 16. ADABAS 17. Dbase 18. FIREBIRD 19. ZENGINE 20. COUCHBASE
  • 5. QUESTION # 03 WHY DATABASE IS BENEFICIAL OVER FILE MANAGEMENT • No redundant data in DBMS – Redundancy removed by data normalization. • Data stability and probity – data normalization takes care of it. • Secure – Each user has a different set of access to it. • Privacy – Limited access. • Easy access to data(data easily access by user or user friendly). • Easy recovery (backup of data). • Flexible.
  • 6. QUESTION # 04 CASE-STUDY (Departmental store) EMPLOYEES(table) Emp-id varchar(30) Emp-name char(30) Emp-CNIC int(30) Emp-contact int(30) Emp-address varchar(30) Office-code varchar(30)(foreign key)
  • 9. PAYMENT(table) Customer-no int(30) ORDERS(table) Order-no int(30) Order-Date int(30) Shipping-Date int(30) Customers-no int(20)
  • 10. Payment-Date int(30) QUESTION # 05 DATABASE DESIGN FOR SCHOOL SCHOOL(table) School-Id School-Name Administrator Contact Location