SlideShare a Scribd company logo
1 of 13
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

What's hot

A short introduction to database systems.ppt
A short introduction to  database systems.pptA short introduction to  database systems.ppt
A short introduction to database systems.ppt
Muruly Krishan
 
RDBMS Arch & Models
RDBMS Arch & ModelsRDBMS Arch & Models
RDBMS Arch & Models
Sarmad Ali
 
Relational database revised
Relational database revisedRelational database revised
Relational database revised
mnodalo
 
Unit 4 rdbms study_material
Unit 4  rdbms study_materialUnit 4  rdbms study_material
Unit 4 rdbms study_material
gayaramesh
 

What's hot (20)

Database
DatabaseDatabase
Database
 
A short introduction to database systems.ppt
A short introduction to  database systems.pptA short introduction to  database systems.ppt
A short introduction to database systems.ppt
 
Database and types of database
Database and types of databaseDatabase and types of database
Database and types of database
 
ITGS - Data And Databases
ITGS - Data And DatabasesITGS - Data And Databases
ITGS - Data And Databases
 
Data Dictionary
Data DictionaryData Dictionary
Data Dictionary
 
Database management system
Database management systemDatabase management system
Database management system
 
Database report
Database reportDatabase report
Database report
 
Databases and its representation
Databases and its representationDatabases and its representation
Databases and its representation
 
Database Management & Models
Database Management & ModelsDatabase Management & Models
Database Management & Models
 
Chapter 6 Database SC025 2017/2018
Chapter 6 Database SC025 2017/2018Chapter 6 Database SC025 2017/2018
Chapter 6 Database SC025 2017/2018
 
Presentation of DBMS (database management system) part 1
Presentation of DBMS (database management system) part 1Presentation of DBMS (database management system) part 1
Presentation of DBMS (database management system) part 1
 
Week 1 Before the Advent of Database Systems & Fundamental Concepts
Week 1 Before the Advent of Database Systems & Fundamental ConceptsWeek 1 Before the Advent of Database Systems & Fundamental Concepts
Week 1 Before the Advent of Database Systems & Fundamental Concepts
 
Database fundamentals
Database fundamentalsDatabase fundamentals
Database fundamentals
 
Electronic Databases
Electronic DatabasesElectronic Databases
Electronic Databases
 
RDBMS Arch & Models
RDBMS Arch & ModelsRDBMS Arch & Models
RDBMS Arch & Models
 
Relational database revised
Relational database revisedRelational database revised
Relational database revised
 
Data models
Data modelsData models
Data models
 
Unit 4 rdbms study_material
Unit 4  rdbms study_materialUnit 4  rdbms study_material
Unit 4 rdbms study_material
 
rdbms-notes
rdbms-notesrdbms-notes
rdbms-notes
 
Data resource management and DSS
Data resource management and DSSData resource management and DSS
Data resource management and DSS
 

Similar to Dbms quries

Database fundamentals(database)
Database fundamentals(database)Database fundamentals(database)
Database fundamentals(database)
welcometofacebook
 

Similar to Dbms quries (20)

Emerging Technologies in IT
Emerging Technologies in ITEmerging Technologies in IT
Emerging Technologies in IT
 
INT 1010 07-3.pdf
INT 1010 07-3.pdfINT 1010 07-3.pdf
INT 1010 07-3.pdf
 
Dbms 1
Dbms 1Dbms 1
Dbms 1
 
Unit01 dbms 2
Unit01 dbms 2Unit01 dbms 2
Unit01 dbms 2
 
DBMS - Relational Model
DBMS - Relational ModelDBMS - Relational Model
DBMS - Relational Model
 
SQL training in Pune
SQL training in PuneSQL training in Pune
SQL training in Pune
 
dbms intro
  dbms intro  dbms intro
dbms intro
 
Unit 01 dbms
Unit 01 dbmsUnit 01 dbms
Unit 01 dbms
 
Mis chapter 7 database systems
Mis chapter 7 database systemsMis chapter 7 database systems
Mis chapter 7 database systems
 
Database fundamentals(database)
Database fundamentals(database)Database fundamentals(database)
Database fundamentals(database)
 
DBMS
DBMSDBMS
DBMS
 
Database Systems Concepts, 5th Ed
Database Systems Concepts, 5th EdDatabase Systems Concepts, 5th Ed
Database Systems Concepts, 5th Ed
 
Unit-I_dbms_TT_Final.pptx
Unit-I_dbms_TT_Final.pptxUnit-I_dbms_TT_Final.pptx
Unit-I_dbms_TT_Final.pptx
 
Unit01 dbms
Unit01 dbmsUnit01 dbms
Unit01 dbms
 
Dbms Basics
Dbms BasicsDbms Basics
Dbms Basics
 
Database
DatabaseDatabase
Database
 
Database Systems - Lecture Week 1
Database Systems - Lecture Week 1Database Systems - Lecture Week 1
Database Systems - Lecture Week 1
 
A relational model of data for large shared data banks
A relational model of data for large shared data banksA relational model of data for large shared data banks
A relational model of data for large shared data banks
 
Lecture 3 note.pptx
Lecture 3 note.pptxLecture 3 note.pptx
Lecture 3 note.pptx
 
RDMS AND SQL
RDMS AND SQLRDMS AND SQL
RDMS AND SQL
 

More from Ans Ali (8)

Project,ATM Project,Java Atm Project
Project,ATM Project,Java Atm ProjectProject,ATM Project,Java Atm Project
Project,ATM Project,Java Atm Project
 
Sort techniques
Sort techniquesSort techniques
Sort techniques
 
chap 2 Ex#1.1
chap 2 Ex#1.1chap 2 Ex#1.1
chap 2 Ex#1.1
 
Intro to computing
Intro to computingIntro to computing
Intro to computing
 
File handling
File handlingFile handling
File handling
 
MS-Commands
 MS-Commands MS-Commands
MS-Commands
 
Types of Arrays
Types of ArraysTypes of Arrays
Types of Arrays
 
Into to programming fundamentals
Into to programming fundamentalsInto to programming fundamentals
Into to programming fundamentals
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 

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