SlideShare uma empresa Scribd logo
1 de 9
Baixar para ler offline
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

Mais conteúdo relacionado

Semelhante a 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
 

Semelhante a 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++
 

Mais 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
 

Mais 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
 

Último

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 

Último (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

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