SlideShare une entreprise Scribd logo
Database Design
                            Tutorial 1

   1. Using the following databases write the database schema and Network
      diagrams.
          a. Shop database
PartDetails
partName            colour             Cost               suppierId

SuplierDetails
suppierId                address                  phone



           b. Flower database
DeliverlyInfo
DeliveryId                category                size


FlowerInfo
Id  Name      LatinName HighZoneId LowZoneId DeliveryId Light        Soil


ZoneInfo
ZoneId                   LowestTemp               highestTemp


         c. PurchaseProd
Customer
cNo   title   sName initials     street   city   postc    credLim balance


Invoice
invoNo             cNo                 invDate            amount


Payment
invoNo             paytNo              pmtDate            amount




Version 1.1                          1 of 9
Database Design
                             Tutorial 2
Tutorial 2:
Functional Dependency Diagrams:
Complete the following:
   1. For each of the tables of data below, draw a functional dependency
       diagram.
Table 1




Table 2




Table 3




   2. For each of the following tables, draw a functional dependency
      diagram.
Table 1




Table 2




          a. Assume a tute group meets only once a week.
          b. How would the diagram be different if this were not the case?



Version 1.1                          2 of 9
Table 3




   3. For the following business rules, pick out the data elements and draw
      functional dependency diagrams.
         a. Orders (identified by order_id) are made for parts (identified by
             part_no). Any quantity of parts can be ordered in an order.
         b. The grades received by students (identified by student_id) in
             units in different semesters.
         c. The price of cars (identified by registration number) in car yards
             owned by a dealer.
         d. The outstanding loans which are due by a borrower (identified
             by borrower_id) on a particular due date of books (identified by
             accession number).
         e. The date, time and amount of withdrawals and deposits on
             accounts (identified by account_no).
         f. The total distance travelled in kilometers by cars (identified by
             registration number) used by drivers (identified by employee#)
             on a day (identified by date). Assume a car can be driven by
             more than one driver in a day.
         g. A person (identified by employee#) can work on more than one
             project (identified by project_id). A person starts on a project on
             a single start date. More than one person can start on the same
             project on the same date but a person can start only once on the
             same project and cannot start on more than one project on the
             same date.
         h. Deliveries (identified by delivery number) include many parts
             (identified by part number). There is quantity delivered of each
             part, and each part has one weight (measured in kilograms).
             Parts come in many colours. The quantity on hand is maintained
             for each colour of each part.
         i. Subjects (identified by subject name) use a number of texts
             (identified by title). Each text can have a number of authors
             (identified by author name). Each subject can be taught a
             number of semesters and there is one teacher (identified by
             teacher name) for each subject each semester.

   4. Consider a simple personnel application where an employee is
      uniquely identified by an employee number. Each employee has a
      name and a salary. Suppose different employees can have the same
      name or salary. Draw a functional dependency diagram for the
      application.
Suppose further that each employee worked in a department and that all
employees in the same department received the same salary. Modify your
FDD accordingly. Eliminate redundant FDs.


Version 1.1                           3 of 9
Database Design
                                Tutorial 3

   1. Which of the following are likely to be reasonable entity types in a
      typical business system. For those that you do not think are reasonable
      entity types, indicate why they do not qualify.
          a. Customer
          b. Computer sales tax
          c. Height
          d. Product
          e. Tomato
          f. Religion
          g. Temperature
          h. Edit transaction
          i. Manufactured part
          j. Map
          k. ASCII character
   2. Which of the following are likely to be relationships in an ERD and
      which are not? Why or why not?
          a. Purchases
          b. Customer
          c. Belongs to
          d. Weight
          e. Produces
          f. Sales tax computation
   3. For each of the following, suggest a way to identifying an instance.
      Which ones are therefore likely to be strong or weak entities?
          a. Person
          b. street corner
          c. appointment
          d. film
          e. real estate purchase
          f. stock holding
          g. car
          h. personal computer
          i. super market purchase
          j. journey
          k. road sign
          l. book
   4. Draw an ER Diagram to represent the following situation for an airline:

   “XYZ airline has three major resources aeroplanes, pilots, and crew
   members. Pilots and crew members have respective home bases, to
   which they return at the end of an assigned flight. A flight on a particular
   day must have an aeroplane, at least one pilot and one or more crew
   members attached to it. Each aeroplane has a maintenance base.”




Version 1.1                            4 of 9
Database Design
                                 Tutorial 3

   5. Draw an ER Diagram to describe the following situation for a publisher:
   “ABC Press works with several different authors who write the books it
   publishes. Some authors have written only one book, while others have
   written many; also, some books are co-authored by multiple authors. ABC
   also works with multiple printers; each book, though, is printed by only one
   printer. An editor as ABC Press works with several authors at a time,
   editing and producing their book projects; it is the editors job to turn over
   the final camera-ready copy to the printer when the manuscript has been
   copyedited and typeset.”

   6. Study the following narrative and draw ER Diagrams with cardinality
      constraints. Ensure that every entity identifiable.
         a. Orders(identified by order_id) are made for parts (identified by
             part_no). any quantity of parts can be ordered in an order.
         b. Students (identified by student_id) are graded in units( with a
             unit-code) in different semesters.
         c. Each car (identified by registration number) is on sale at a
             particular car yard ( at an address) for a price. Each car yard is
             owned be a dealer.
         d. Each book (identified by barcode number) barrowed by a
             member (identified by borrower_id) is due on a particular date.
         e. The date and amounts of all withdrawals and deposits on
             accounts (identified by account_no)
         f. The distance travelled in kilometres by cars (identified by
             registration number) by particular drivers (identified by driver_id)
             on various dates.
         g. A person starts on a project on a given start date. More than one
             person can start on the same project on the same date but a
             person can start only once on the same project and cannot start
             on more than one project on the same date. A person can work
             on more than one project.
         h. A delivery (identified by delivery number) may supply many
             parts (identified by part number). Each part has one weight
             (measured in kilograms) and may come in different colours. For
             each part of a certain colour, the quantity delivered is picked
             from the quantity on hand.
         i. Subjects (identified by subject name) use a number of texts.
             Each text has a unique name and can have a number of
             authors. An author is identified by their name. Each subject can
             be taught a number of semesters and there is one teacher for
             each subject each semester.
         j. Suppose in case I) different teachers recommend different texts
             for the same subject, but not in different semester.




Version 1.1                           5 of 9
More on FDD

2. Shoes are sold in a variety of styles and sizes. A style is identified by a
   style number. Each style has a description, but the same description may
   apply to several styles. Weekly-Sales represents the number of shoes of a
   particular size and style sold in the previous week. Monthly-style-value is
   the total sales value in the previous month for each style. Draw an FDD for
   the data elements Style-Number, Description, Size, Weekly-Sales,
   Monthly-Style-Value.
   How would your diagram change if you incorporated Week and Month, so
   historical data of Weekly-Sales and Monthly-Style-Value could be
   maintained?




3. Refer to the forms below.
Draw FDDs & network diagrams for forms:
   a. CUSTOMER ORDER




   b. THE SOFTWARE SOFTIES




Version 1.1                          6 of 9
Version 1.1   7 of 9
c. FASHION DISTRIBUTORS




   d. BILBO & BAGGINS




Version 1.1                  8 of 9
e. THE HOUSE OF MUSIC




Version 1.1                9 of 9

Contenu connexe

Similaire à All Database Design Tuts V1.3

Database Fdd
Database FddDatabase Fdd
Database FddCathie101
 
DATABASE DESIGN AND MANAGEMENT - By Hansa Edirisinghe
DATABASE DESIGN AND MANAGEMENT - By Hansa EdirisingheDATABASE DESIGN AND MANAGEMENT - By Hansa Edirisinghe
DATABASE DESIGN AND MANAGEMENT - By Hansa EdirisingheHansa Edirisinghe
 
Assignment 1 for 2nd sem
Assignment 1 for 2nd semAssignment 1 for 2nd sem
Assignment 1 for 2nd semhome
 
Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab 6.docx
Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab 6.docxStudent Lab Activity A. Lab # CIS CIS170A-A1B. Lab 6.docx
Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab 6.docxemelyvalg9
 
Multiple Choice1.There are fundamental challenges in managing.docx
Multiple Choice1.There are fundamental challenges in managing.docxMultiple Choice1.There are fundamental challenges in managing.docx
Multiple Choice1.There are fundamental challenges in managing.docxroushhsiu
 
Case Summary Assignment Planning and organization fundamentally .docx
Case Summary Assignment Planning and organization fundamentally .docxCase Summary Assignment Planning and organization fundamentally .docx
Case Summary Assignment Planning and organization fundamentally .docxtroutmanboris
 
PROG3040 Assignment 1 – Fall 2013 Glenn Paulley – 2A605, x25.docx
PROG3040 Assignment 1 – Fall 2013    Glenn Paulley – 2A605, x25.docxPROG3040 Assignment 1 – Fall 2013    Glenn Paulley – 2A605, x25.docx
PROG3040 Assignment 1 – Fall 2013 Glenn Paulley – 2A605, x25.docxwkyra78
 
Answer all questions and discussions.1.Describe what is an.docx
Answer all questions and discussions.1.Describe what is an.docxAnswer all questions and discussions.1.Describe what is an.docx
Answer all questions and discussions.1.Describe what is an.docxlisandrai1k
 
C basic questions&ansrs by shiva kumar kella
C basic questions&ansrs by shiva kumar kellaC basic questions&ansrs by shiva kumar kella
C basic questions&ansrs by shiva kumar kellaManoj Kumar kothagulla
 
1 Project 2 Introduction - the SeaPort Project seri.docx
1  Project 2 Introduction - the SeaPort Project seri.docx1  Project 2 Introduction - the SeaPort Project seri.docx
1 Project 2 Introduction - the SeaPort Project seri.docxhoney725342
 
Cis 110 Education Organization -- snaptutorial.com
Cis 110   Education Organization -- snaptutorial.comCis 110   Education Organization -- snaptutorial.com
Cis 110 Education Organization -- snaptutorial.comDavisMurphyB68
 
Compiler gate question key
Compiler gate question keyCompiler gate question key
Compiler gate question keyArthyR3
 
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docx
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docxCOMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docx
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docxdonnajames55
 
MC0077 SMU 2013 Fall Session
MC0077 SMU 2013 Fall SessionMC0077 SMU 2013 Fall Session
MC0077 SMU 2013 Fall SessionNarinder Kumar
 
Assignment Week 1.docDue by 11pm June 30th Chapter 1.docx
Assignment Week 1.docDue by 11pm June 30th Chapter 1.docxAssignment Week 1.docDue by 11pm June 30th Chapter 1.docx
Assignment Week 1.docDue by 11pm June 30th Chapter 1.docxssuser562afc1
 
Intro to C++ - Class 2 - Objects & Classes
Intro to C++ - Class 2 - Objects & ClassesIntro to C++ - Class 2 - Objects & Classes
Intro to C++ - Class 2 - Objects & ClassesBlue Elephant Consulting
 
Intro To C++ - Class 2 - An Introduction To C++
Intro To C++ - Class 2 - An Introduction To C++Intro To C++ - Class 2 - An Introduction To C++
Intro To C++ - Class 2 - An Introduction To C++Blue Elephant Consulting
 

Similaire à All Database Design Tuts V1.3 (20)

Database Fdd
Database FddDatabase Fdd
Database Fdd
 
DATABASE DESIGN AND MANAGEMENT - By Hansa Edirisinghe
DATABASE DESIGN AND MANAGEMENT - By Hansa EdirisingheDATABASE DESIGN AND MANAGEMENT - By Hansa Edirisinghe
DATABASE DESIGN AND MANAGEMENT - By Hansa Edirisinghe
 
TGP 2.docx
TGP 2.docxTGP 2.docx
TGP 2.docx
 
Assignment 1 for 2nd sem
Assignment 1 for 2nd semAssignment 1 for 2nd sem
Assignment 1 for 2nd sem
 
Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab 6.docx
Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab 6.docxStudent Lab Activity A. Lab # CIS CIS170A-A1B. Lab 6.docx
Student Lab Activity A. Lab # CIS CIS170A-A1B. Lab 6.docx
 
Instant DBMS Assignment Help
Instant DBMS Assignment HelpInstant DBMS Assignment Help
Instant DBMS Assignment Help
 
Multiple Choice1.There are fundamental challenges in managing.docx
Multiple Choice1.There are fundamental challenges in managing.docxMultiple Choice1.There are fundamental challenges in managing.docx
Multiple Choice1.There are fundamental challenges in managing.docx
 
Case Summary Assignment Planning and organization fundamentally .docx
Case Summary Assignment Planning and organization fundamentally .docxCase Summary Assignment Planning and organization fundamentally .docx
Case Summary Assignment Planning and organization fundamentally .docx
 
PROG3040 Assignment 1 – Fall 2013 Glenn Paulley – 2A605, x25.docx
PROG3040 Assignment 1 – Fall 2013    Glenn Paulley – 2A605, x25.docxPROG3040 Assignment 1 – Fall 2013    Glenn Paulley – 2A605, x25.docx
PROG3040 Assignment 1 – Fall 2013 Glenn Paulley – 2A605, x25.docx
 
Answer all questions and discussions.1.Describe what is an.docx
Answer all questions and discussions.1.Describe what is an.docxAnswer all questions and discussions.1.Describe what is an.docx
Answer all questions and discussions.1.Describe what is an.docx
 
C basic questions&ansrs by shiva kumar kella
C basic questions&ansrs by shiva kumar kellaC basic questions&ansrs by shiva kumar kella
C basic questions&ansrs by shiva kumar kella
 
1 Project 2 Introduction - the SeaPort Project seri.docx
1  Project 2 Introduction - the SeaPort Project seri.docx1  Project 2 Introduction - the SeaPort Project seri.docx
1 Project 2 Introduction - the SeaPort Project seri.docx
 
Oo ps exam answer2
Oo ps exam answer2Oo ps exam answer2
Oo ps exam answer2
 
Cis 110 Education Organization -- snaptutorial.com
Cis 110   Education Organization -- snaptutorial.comCis 110   Education Organization -- snaptutorial.com
Cis 110 Education Organization -- snaptutorial.com
 
Compiler gate question key
Compiler gate question keyCompiler gate question key
Compiler gate question key
 
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docx
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docxCOMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docx
COMP 2213X2 Assignment #2 Parts A and BDue February 3 in cla.docx
 
MC0077 SMU 2013 Fall Session
MC0077 SMU 2013 Fall SessionMC0077 SMU 2013 Fall Session
MC0077 SMU 2013 Fall Session
 
Assignment Week 1.docDue by 11pm June 30th Chapter 1.docx
Assignment Week 1.docDue by 11pm June 30th Chapter 1.docxAssignment Week 1.docDue by 11pm June 30th Chapter 1.docx
Assignment Week 1.docDue by 11pm June 30th Chapter 1.docx
 
Intro to C++ - Class 2 - Objects & Classes
Intro to C++ - Class 2 - Objects & ClassesIntro to C++ - Class 2 - Objects & Classes
Intro to C++ - Class 2 - Objects & Classes
 
Intro To C++ - Class 2 - An Introduction To C++
Intro To C++ - Class 2 - An Introduction To C++Intro To C++ - Class 2 - An Introduction To C++
Intro To C++ - Class 2 - An Introduction To C++
 

Plus de Cathie101

Page Layout 2010
Page Layout 2010Page Layout 2010
Page Layout 2010Cathie101
 
Dynamic Web Pages Ch 8 V1.0
Dynamic Web Pages Ch 8 V1.0Dynamic Web Pages Ch 8 V1.0
Dynamic Web Pages Ch 8 V1.0Cathie101
 
Dynamic Web Pages Ch 6 V1.0
Dynamic Web Pages Ch 6 V1.0Dynamic Web Pages Ch 6 V1.0
Dynamic Web Pages Ch 6 V1.0Cathie101
 
Dynamic Web Pages Ch 1 V1.0
Dynamic Web Pages Ch 1 V1.0Dynamic Web Pages Ch 1 V1.0
Dynamic Web Pages Ch 1 V1.0Cathie101
 
Dynamic Web Pages Ch 9 V1.0
Dynamic Web Pages Ch 9 V1.0Dynamic Web Pages Ch 9 V1.0
Dynamic Web Pages Ch 9 V1.0Cathie101
 
Dynamic Web Pages Ch 7 V1.0
Dynamic Web Pages Ch 7 V1.0Dynamic Web Pages Ch 7 V1.0
Dynamic Web Pages Ch 7 V1.0Cathie101
 
Dynamic Web Pages Ch 5 V1.0
Dynamic Web Pages Ch 5 V1.0Dynamic Web Pages Ch 5 V1.0
Dynamic Web Pages Ch 5 V1.0Cathie101
 
Dynamic Web Pages Ch 4 V1.0
Dynamic Web Pages Ch 4 V1.0Dynamic Web Pages Ch 4 V1.0
Dynamic Web Pages Ch 4 V1.0Cathie101
 
Dynamic Web Pages Ch 3 V1.0
Dynamic Web Pages Ch 3 V1.0Dynamic Web Pages Ch 3 V1.0
Dynamic Web Pages Ch 3 V1.0Cathie101
 
Dynamic Web Pages Ch 2 V1.0
Dynamic Web Pages Ch 2 V1.0Dynamic Web Pages Ch 2 V1.0
Dynamic Web Pages Ch 2 V1.0Cathie101
 
Dynamic Web Pages 2009v2.1
Dynamic Web Pages 2009v2.1Dynamic Web Pages 2009v2.1
Dynamic Web Pages 2009v2.1Cathie101
 
Sql All Tuts 2009
Sql All Tuts 2009Sql All Tuts 2009
Sql All Tuts 2009Cathie101
 
Database Design E R 2009
Database Design E R 2009Database Design E R 2009
Database Design E R 2009Cathie101
 
Database Design Fdd 2009
Database Design Fdd 2009Database Design Fdd 2009
Database Design Fdd 2009Cathie101
 
Database Design E R 2009
Database Design E R 2009Database Design E R 2009
Database Design E R 2009Cathie101
 
Overall Computer Systems 2nd Year 2009
Overall Computer Systems 2nd Year 2009Overall Computer Systems 2nd Year 2009
Overall Computer Systems 2nd Year 2009Cathie101
 
Database Design 2009
Database Design 2009Database Design 2009
Database Design 2009Cathie101
 
Database Design Tut 2 A
Database Design Tut 2 ADatabase Design Tut 2 A
Database Design Tut 2 ACathie101
 

Plus de Cathie101 (20)

Page Layout 2010
Page Layout 2010Page Layout 2010
Page Layout 2010
 
Css 2010
Css 2010Css 2010
Css 2010
 
Xhtml 2010
Xhtml 2010Xhtml 2010
Xhtml 2010
 
Dynamic Web Pages Ch 8 V1.0
Dynamic Web Pages Ch 8 V1.0Dynamic Web Pages Ch 8 V1.0
Dynamic Web Pages Ch 8 V1.0
 
Dynamic Web Pages Ch 6 V1.0
Dynamic Web Pages Ch 6 V1.0Dynamic Web Pages Ch 6 V1.0
Dynamic Web Pages Ch 6 V1.0
 
Dynamic Web Pages Ch 1 V1.0
Dynamic Web Pages Ch 1 V1.0Dynamic Web Pages Ch 1 V1.0
Dynamic Web Pages Ch 1 V1.0
 
Dynamic Web Pages Ch 9 V1.0
Dynamic Web Pages Ch 9 V1.0Dynamic Web Pages Ch 9 V1.0
Dynamic Web Pages Ch 9 V1.0
 
Dynamic Web Pages Ch 7 V1.0
Dynamic Web Pages Ch 7 V1.0Dynamic Web Pages Ch 7 V1.0
Dynamic Web Pages Ch 7 V1.0
 
Dynamic Web Pages Ch 5 V1.0
Dynamic Web Pages Ch 5 V1.0Dynamic Web Pages Ch 5 V1.0
Dynamic Web Pages Ch 5 V1.0
 
Dynamic Web Pages Ch 4 V1.0
Dynamic Web Pages Ch 4 V1.0Dynamic Web Pages Ch 4 V1.0
Dynamic Web Pages Ch 4 V1.0
 
Dynamic Web Pages Ch 3 V1.0
Dynamic Web Pages Ch 3 V1.0Dynamic Web Pages Ch 3 V1.0
Dynamic Web Pages Ch 3 V1.0
 
Dynamic Web Pages Ch 2 V1.0
Dynamic Web Pages Ch 2 V1.0Dynamic Web Pages Ch 2 V1.0
Dynamic Web Pages Ch 2 V1.0
 
Dynamic Web Pages 2009v2.1
Dynamic Web Pages 2009v2.1Dynamic Web Pages 2009v2.1
Dynamic Web Pages 2009v2.1
 
Sql All Tuts 2009
Sql All Tuts 2009Sql All Tuts 2009
Sql All Tuts 2009
 
Database Design E R 2009
Database Design E R 2009Database Design E R 2009
Database Design E R 2009
 
Database Design Fdd 2009
Database Design Fdd 2009Database Design Fdd 2009
Database Design Fdd 2009
 
Database Design E R 2009
Database Design E R 2009Database Design E R 2009
Database Design E R 2009
 
Overall Computer Systems 2nd Year 2009
Overall Computer Systems 2nd Year 2009Overall Computer Systems 2nd Year 2009
Overall Computer Systems 2nd Year 2009
 
Database Design 2009
Database Design 2009Database Design 2009
Database Design 2009
 
Database Design Tut 2 A
Database Design Tut 2 ADatabase Design Tut 2 A
Database Design Tut 2 A
 

Dernier

Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualityInflectra
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsStefano
 
Connecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKConnecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKUXDXConf
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxAbida Shariff
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCzechDreamin
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀DianaGray10
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxJennifer Lim
 
The architecture of Generative AI for enterprises.pdf
The architecture of Generative AI for enterprises.pdfThe architecture of Generative AI for enterprises.pdf
The architecture of Generative AI for enterprises.pdfalexjohnson7307
 
Motion for AI: Creating Empathy in Technology
Motion for AI: Creating Empathy in TechnologyMotion for AI: Creating Empathy in Technology
Motion for AI: Creating Empathy in TechnologyUXDXConf
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutesconfluent
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomCzechDreamin
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...CzechDreamin
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Julian Hyde
 
Agentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfAgentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfChristopherTHyatt
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaRTTS
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIES VE
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024Stephanie Beckett
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeCzechDreamin
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2DianaGray10
 

Dernier (20)

Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
Connecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKConnecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAK
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
 
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
Exploring UiPath Orchestrator API: updates and limits in 2024 🚀
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
The architecture of Generative AI for enterprises.pdf
The architecture of Generative AI for enterprises.pdfThe architecture of Generative AI for enterprises.pdf
The architecture of Generative AI for enterprises.pdf
 
Motion for AI: Creating Empathy in Technology
Motion for AI: Creating Empathy in TechnologyMotion for AI: Creating Empathy in Technology
Motion for AI: Creating Empathy in Technology
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
Agentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfAgentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdf
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 

All Database Design Tuts V1.3

  • 1. Database Design Tutorial 1 1. Using the following databases write the database schema and Network diagrams. a. Shop database PartDetails partName colour Cost suppierId SuplierDetails suppierId address phone b. Flower database DeliverlyInfo DeliveryId category size FlowerInfo Id Name LatinName HighZoneId LowZoneId DeliveryId Light Soil ZoneInfo ZoneId LowestTemp highestTemp c. PurchaseProd Customer cNo title sName initials street city postc credLim balance Invoice invoNo cNo invDate amount Payment invoNo paytNo pmtDate amount Version 1.1 1 of 9
  • 2. Database Design Tutorial 2 Tutorial 2: Functional Dependency Diagrams: Complete the following: 1. For each of the tables of data below, draw a functional dependency diagram. Table 1 Table 2 Table 3 2. For each of the following tables, draw a functional dependency diagram. Table 1 Table 2 a. Assume a tute group meets only once a week. b. How would the diagram be different if this were not the case? Version 1.1 2 of 9
  • 3. Table 3 3. For the following business rules, pick out the data elements and draw functional dependency diagrams. a. Orders (identified by order_id) are made for parts (identified by part_no). Any quantity of parts can be ordered in an order. b. The grades received by students (identified by student_id) in units in different semesters. c. The price of cars (identified by registration number) in car yards owned by a dealer. d. The outstanding loans which are due by a borrower (identified by borrower_id) on a particular due date of books (identified by accession number). e. The date, time and amount of withdrawals and deposits on accounts (identified by account_no). f. The total distance travelled in kilometers by cars (identified by registration number) used by drivers (identified by employee#) on a day (identified by date). Assume a car can be driven by more than one driver in a day. g. A person (identified by employee#) can work on more than one project (identified by project_id). A person starts on a project on a single start date. More than one person can start on the same project on the same date but a person can start only once on the same project and cannot start on more than one project on the same date. h. Deliveries (identified by delivery number) include many parts (identified by part number). There is quantity delivered of each part, and each part has one weight (measured in kilograms). Parts come in many colours. The quantity on hand is maintained for each colour of each part. i. Subjects (identified by subject name) use a number of texts (identified by title). Each text can have a number of authors (identified by author name). Each subject can be taught a number of semesters and there is one teacher (identified by teacher name) for each subject each semester. 4. Consider a simple personnel application where an employee is uniquely identified by an employee number. Each employee has a name and a salary. Suppose different employees can have the same name or salary. Draw a functional dependency diagram for the application. Suppose further that each employee worked in a department and that all employees in the same department received the same salary. Modify your FDD accordingly. Eliminate redundant FDs. Version 1.1 3 of 9
  • 4. Database Design Tutorial 3 1. Which of the following are likely to be reasonable entity types in a typical business system. For those that you do not think are reasonable entity types, indicate why they do not qualify. a. Customer b. Computer sales tax c. Height d. Product e. Tomato f. Religion g. Temperature h. Edit transaction i. Manufactured part j. Map k. ASCII character 2. Which of the following are likely to be relationships in an ERD and which are not? Why or why not? a. Purchases b. Customer c. Belongs to d. Weight e. Produces f. Sales tax computation 3. For each of the following, suggest a way to identifying an instance. Which ones are therefore likely to be strong or weak entities? a. Person b. street corner c. appointment d. film e. real estate purchase f. stock holding g. car h. personal computer i. super market purchase j. journey k. road sign l. book 4. Draw an ER Diagram to represent the following situation for an airline: “XYZ airline has three major resources aeroplanes, pilots, and crew members. Pilots and crew members have respective home bases, to which they return at the end of an assigned flight. A flight on a particular day must have an aeroplane, at least one pilot and one or more crew members attached to it. Each aeroplane has a maintenance base.” Version 1.1 4 of 9
  • 5. Database Design Tutorial 3 5. Draw an ER Diagram to describe the following situation for a publisher: “ABC Press works with several different authors who write the books it publishes. Some authors have written only one book, while others have written many; also, some books are co-authored by multiple authors. ABC also works with multiple printers; each book, though, is printed by only one printer. An editor as ABC Press works with several authors at a time, editing and producing their book projects; it is the editors job to turn over the final camera-ready copy to the printer when the manuscript has been copyedited and typeset.” 6. Study the following narrative and draw ER Diagrams with cardinality constraints. Ensure that every entity identifiable. a. Orders(identified by order_id) are made for parts (identified by part_no). any quantity of parts can be ordered in an order. b. Students (identified by student_id) are graded in units( with a unit-code) in different semesters. c. Each car (identified by registration number) is on sale at a particular car yard ( at an address) for a price. Each car yard is owned be a dealer. d. Each book (identified by barcode number) barrowed by a member (identified by borrower_id) is due on a particular date. e. The date and amounts of all withdrawals and deposits on accounts (identified by account_no) f. The distance travelled in kilometres by cars (identified by registration number) by particular drivers (identified by driver_id) on various dates. g. A person starts on a project on a given start date. More than one person can start on the same project on the same date but a person can start only once on the same project and cannot start on more than one project on the same date. A person can work on more than one project. h. A delivery (identified by delivery number) may supply many parts (identified by part number). Each part has one weight (measured in kilograms) and may come in different colours. For each part of a certain colour, the quantity delivered is picked from the quantity on hand. i. Subjects (identified by subject name) use a number of texts. Each text has a unique name and can have a number of authors. An author is identified by their name. Each subject can be taught a number of semesters and there is one teacher for each subject each semester. j. Suppose in case I) different teachers recommend different texts for the same subject, but not in different semester. Version 1.1 5 of 9
  • 6. More on FDD 2. Shoes are sold in a variety of styles and sizes. A style is identified by a style number. Each style has a description, but the same description may apply to several styles. Weekly-Sales represents the number of shoes of a particular size and style sold in the previous week. Monthly-style-value is the total sales value in the previous month for each style. Draw an FDD for the data elements Style-Number, Description, Size, Weekly-Sales, Monthly-Style-Value. How would your diagram change if you incorporated Week and Month, so historical data of Weekly-Sales and Monthly-Style-Value could be maintained? 3. Refer to the forms below. Draw FDDs & network diagrams for forms: a. CUSTOMER ORDER b. THE SOFTWARE SOFTIES Version 1.1 6 of 9
  • 7. Version 1.1 7 of 9
  • 8. c. FASHION DISTRIBUTORS d. BILBO & BAGGINS Version 1.1 8 of 9
  • 9. e. THE HOUSE OF MUSIC Version 1.1 9 of 9