SlideShare uma empresa Scribd logo
1 de 2
Baixar para ler offline
Lista de exercícios 2
Construir o Modelo Entidade- Relacionamento e em seguida o lógico (gráfico e textual)
para as questões a seguir:
1) Elaborar um diagrama E-R para uma seguradora de automóveis
Entidades: Cliente, Apólice, Carro e Acidentes.
Requisitos:
a) Um cliente pode ter várias apólices (no mínimo uma);
b) Cada apólice somente dá cobertura a um carro;
c) Um carro pode ter zero ou n registros de acidentes a ele.
Atributos:
a) Cliente: Número, Nome e Endereço;
b) Apólice: Número e Valor;
c) Carro: Registro e Marca;
d) Acidente: Data, Hora e Local;
2) Elaborar um diagrama para uma Indústria.
Entidades: Peças, Depósitos, Fornecedor, Projeto, Funcionário e Departamento.
Requisitos:
a) Cada Funcionário pode estar alocado a somente um Departamento;
b) Cada Funcionário pode pertencer a mais de um Projeto;
c) Um projeto pode utilizar-se de vários Fornecedores e de várias Peças;
d) Uma Peça pode ser fornecida por vários Fornecedores e atender a vários Projetos;
e) Um Fornecedor pode atender a vários Projetos e fornecer várias Peças;
f) Um Depósito pode conter várias Peças;
g) Deseja-se ter um controle do material utilizado por cada Projeto, identificando inclusive
o seu Fornecedor. Gravar as informações de data de Início e Horas Trabalhadas no Projeto.
Atributos:
a) Peças: Número, Peso e Cor;
b) Depósito: Número e Endereço;
c) Fornecedor: Número e Endereço;
d) Projeto: Número e Orçamento;
e) Funcionário: Número, Salário e Telefone;
f) Departamento: Número e Setor.
3) Projetar um Banco de Dados satisfazendo as seguintes restrições e requisitos:
a) Para um Vendedor, armazenar seu código, nome, endereço e comissão;
b) Para um Cliente, armazenar o seu código, nome, endereço, faturamento acumulado e
limite de crédito. Além disso, armazenar o código e o nome do vendedor que o atende. Um
vendedor pode atender muitos clientes, porém um cliente deve ser atendido por exatamente
um vendedor;
c) Para uma peça, armazenar seu código, descrição, preço quantidade em estoque e o
número do armazém onde a peça está estocada. Uma peça somente pode estar estocada num
único armazém. Para um armazém, armazenar seu código e endereço;
d) Para um pedido, armazenar seu número, data, código, nome e endereço do cliente, que
fez o pedido e o código do vendedor para cálculo da comissão. Além disso, para cada item do
pedido armazenar o código da peça, quantidade e preço cotado. Há somente um cliente por
pedido e um vendedor;
e) O preço cotado no pedido pode ser mesmo que o preço corrente no arquivo de peças,
mas não necessariamente.

Mais conteúdo relacionado

Destaque

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Destaque (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Lista MER - RELACIONAL.pdf

  • 1. Lista de exercícios 2 Construir o Modelo Entidade- Relacionamento e em seguida o lógico (gráfico e textual) para as questões a seguir: 1) Elaborar um diagrama E-R para uma seguradora de automóveis Entidades: Cliente, Apólice, Carro e Acidentes. Requisitos: a) Um cliente pode ter várias apólices (no mínimo uma); b) Cada apólice somente dá cobertura a um carro; c) Um carro pode ter zero ou n registros de acidentes a ele. Atributos: a) Cliente: Número, Nome e Endereço; b) Apólice: Número e Valor; c) Carro: Registro e Marca; d) Acidente: Data, Hora e Local; 2) Elaborar um diagrama para uma Indústria. Entidades: Peças, Depósitos, Fornecedor, Projeto, Funcionário e Departamento. Requisitos: a) Cada Funcionário pode estar alocado a somente um Departamento; b) Cada Funcionário pode pertencer a mais de um Projeto; c) Um projeto pode utilizar-se de vários Fornecedores e de várias Peças; d) Uma Peça pode ser fornecida por vários Fornecedores e atender a vários Projetos; e) Um Fornecedor pode atender a vários Projetos e fornecer várias Peças; f) Um Depósito pode conter várias Peças; g) Deseja-se ter um controle do material utilizado por cada Projeto, identificando inclusive o seu Fornecedor. Gravar as informações de data de Início e Horas Trabalhadas no Projeto. Atributos: a) Peças: Número, Peso e Cor; b) Depósito: Número e Endereço; c) Fornecedor: Número e Endereço; d) Projeto: Número e Orçamento; e) Funcionário: Número, Salário e Telefone; f) Departamento: Número e Setor.
  • 2. 3) Projetar um Banco de Dados satisfazendo as seguintes restrições e requisitos: a) Para um Vendedor, armazenar seu código, nome, endereço e comissão; b) Para um Cliente, armazenar o seu código, nome, endereço, faturamento acumulado e limite de crédito. Além disso, armazenar o código e o nome do vendedor que o atende. Um vendedor pode atender muitos clientes, porém um cliente deve ser atendido por exatamente um vendedor; c) Para uma peça, armazenar seu código, descrição, preço quantidade em estoque e o número do armazém onde a peça está estocada. Uma peça somente pode estar estocada num único armazém. Para um armazém, armazenar seu código e endereço; d) Para um pedido, armazenar seu número, data, código, nome e endereço do cliente, que fez o pedido e o código do vendedor para cálculo da comissão. Além disso, para cada item do pedido armazenar o código da peça, quantidade e preço cotado. Há somente um cliente por pedido e um vendedor; e) O preço cotado no pedido pode ser mesmo que o preço corrente no arquivo de peças, mas não necessariamente.