1. Use the table above to answer the following questions;

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter13: Views
Section: Chapter Questions
Problem 3MC
icon
Related questions
Question
DOB
LName
Clay
Johnson
Clay
ID
FName
Rick
Mike
Rhoda
20/04/1996
05/05/2005
11/08/1999
1. Use the table above to answer the following questions;
a) Write a SQL statement to create a database called "My friends" and a table called "friends"
(make ID, your primary key) and populate it with the above records.
b) Write a query statement to add 'residence', 'p one_number', and 'address' to the friends'
table.
c) After adding the fields, the fields will be set to null by default, write a query statement to set
those null entries to actual data using any data of your choice.
dy Write a SQL statement to insert three additionl records into your friends table.
e) Write a query to display a categorized version bf your friends table using LName as your
categorical dataset.
D Write a query statement to display records with "n" in their LName.
23
Transcribed Image Text:DOB LName Clay Johnson Clay ID FName Rick Mike Rhoda 20/04/1996 05/05/2005 11/08/1999 1. Use the table above to answer the following questions; a) Write a SQL statement to create a database called "My friends" and a table called "friends" (make ID, your primary key) and populate it with the above records. b) Write a query statement to add 'residence', 'p one_number', and 'address' to the friends' table. c) After adding the fields, the fields will be set to null by default, write a query statement to set those null entries to actual data using any data of your choice. dy Write a SQL statement to insert three additionl records into your friends table. e) Write a query to display a categorized version bf your friends table using LName as your categorical dataset. D Write a query statement to display records with "n" in their LName. 23
a. Using the chen notation approach, sketch and show the type of relationship between the
Cistomers and their purchase, products and their prices, Vendors and the products they have
sold. You also came across a tabular that have tecords of daily sales and monthly sales made.
entities for the database design. Note cach entity should have at least 3 attributes.
Read carefully the case study below and answer the question that follows.
KECH Is a new business in town that deals in sales of computers and their accessories.
Upn your interaction with them, you noticel them to having a file that keep records of
Sold. Youlso came across a tabular that have tecords of daily sales and monthly sales made,
a. Using the chen notation approach, sketch and show the type of relationship between the
etiies for the datboce desion. Note cach entity should have at least3 attributes.
Transcribed Image Text:a. Using the chen notation approach, sketch and show the type of relationship between the Cistomers and their purchase, products and their prices, Vendors and the products they have sold. You also came across a tabular that have tecords of daily sales and monthly sales made. entities for the database design. Note cach entity should have at least 3 attributes. Read carefully the case study below and answer the question that follows. KECH Is a new business in town that deals in sales of computers and their accessories. Upn your interaction with them, you noticel them to having a file that keep records of Sold. Youlso came across a tabular that have tecords of daily sales and monthly sales made, a. Using the chen notation approach, sketch and show the type of relationship between the etiies for the datboce desion. Note cach entity should have at least3 attributes.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning