This is an oracle sql/pl assignment. it is a homework assignment look at file
Due: 15 Points
Thursday, November 17th, 11:00 PM Getting Started
This assignment will use three tables of people's first and last names. The first and
last names have different field names in each table. They are called FName and
LName in the A11X table, FN and LN in the A11Y table and Name1 and Name2 in
the A11Z table. Each table has a simple primary key (named X, Y and Z). The A11X
table also has field named XBoss that serves as a pointer to each person's
immediate supervisor or boss. There are no explicit binary relationships between the three tables. The primary key
of one table has nothing to do with the primary keys of the other two tables. John
Jones might be in all three tables, but his X, Y and Z primary keys will be completely
Execute the following three commands to create the tables. Click for an easier version of the commands to copy/paste into Oracle
Next, download/extract the Excel spreadsheet named Assignment11.xlsx that
contains data for three tables. The spreadsheet is available in compressed (zip)
Download Zip File
The spreadsheet has three sheets. The first sheet will be used to import 500 records
into A11X, the second sheet will be used to import 500 records into A11Y and the
third sheet will be used to import 500 records into A11Z. Be careful. You must
import the correct sheet for each table. (If you don't know how to import data from
different sheets, then read the instructions for the Office/Employee/Dependent
tables from the lectures.)
You should verify that you correctly imported 500 records into each table.
SELECT 'A11X' As "TABLE", Count(X) As RECORDS
SELECT 'A11Y', Count(Y)
FROM A11Y UNION
SELECT 'A11Z', Count(Z)
Each table contains the names of 500 people. But, as the following diagram shows,
there is some overlap. For instance, the names of 27 people appear in all three
tables. And, the names of 67 people appear in A11X and A11Y, but not in A11Z. 392
names appear in A11X, but not in either of the other tables. Of the combined 1500
records in the three tables, there are only 1181 different names. Note About Case Sensitivity
All of the data in the three tables is properly capitalized (e.g., John Jones). The views
you write for this assignment will not need to deal with the case sensitivity issues of
Oracle. Note About Tables
Be sure to use the correct tables for each task. The first three tasks will use the
A11X table. Task 4 will use the A11Y and A11Z tables. Task 5 will use all three
tables. Task 1 (3 points)
Create a view named A11T1 that will display the concatenated first and last names
(e.g., Mary Smith) of the people in A11X who have at least 3 direct subordinates.
The column heading should be BossName and the rows should be sorted by last
name, then first name. Note: A direct subordinate of a boss is someone who directly reports to the boss
(i.e., someone whose XBoss foreign key equals the boss' primary key.) Task 2 (3 points)
Create a view named A11T2 that will display the number of people in A11X who
have at least one subordinate. The column heading should be Bosses. Only one row
will be displayed, so the ORDER BY clause is unnecessary. Task 3 (3 points)
Create a view named A11T3 that will display the number of people in A11X who
have no subordinates. The column heading should be Not_Bosses. Again, only one
row will be displayed, so the ORDER BY clause is unnecessary. Task 4 (3 points)
Tables A11Y and A11Z each have 500 records. 211 of the people's names appear in
both tables (i.e., 27+184 in the Venn diagram).
Create a view named A11T4 that will display the concatenated first and last names
of the 789 people who appear in one or both of the tables. The column heading
should be Person and the rows should be sorted by last name, then first name.
Note: Timothy Austin, Michelle Blanco and 209 other people are in both tables. They
should be displayed one time, not two times, in the A11T4 view. Task 5 (3 points)
Tables A11X, A11Y and A11Z each have 500 records. The names of 27 people
appear in all three tables.
Create a view named A11T5 that will display the concatenated first and last names
of the 27 people who appear in all three tables. The column heading should be
Person and the rows should be sorted by last name, then first name. Task 6 Bonus (2 extra points)
Tables A11X, A11Y and A11Z each have 500 records. The names of 265 people
appear in two of the tables, but not in all three (i.e., 67+14+184 in the Venn
Create a view named A11T6 that will display the concatenated first and last names
of the 265 people who appear in exactly two of the three tables. The column
heading should be Person and the rows should be sorted by last name, then first
name. Note About Multi-Step Solutions You may decide to break complex tasks into multiple steps. If you do, then you are
free to use either the multi-view approach or the subquery approach to implement
your multi-step solutions. If you use the multi-view approach, then be sure to use
unique view names for each of the steps. The final step must use the name
specified in the task. (For example, if you break Task 1 into 5 steps, then you might
name the first four views A11T1A, A11T1B, A11T1C and A11T1D. Your last view
must be named A11T1. If you name it A11T1E, then it will not be graded.) Note About Grading
If a task says to create a view named XYZ, then don't name it ABC. Views with the
wrong name will not be graded.
If a task says to use a column heading of XYZ, then don't use ABC.
If a task says to display columns A, B and C, then display them in that left to right AB-C order. B-C-A is incorrect.
If a task says to display columns A, B and C, then don't display any additional
columns. A-B-C-D is incorrect.
If a task says to display concatenated names, then include exactly one space
between the first and last names (i.e., John Doe, not JohnDoe or Doe John). Deliverable
Nothing will be physically turned in for this assignment. Your work will be graded
directly from your McCombs Oracle database.
Grading will begin at 11:00 PM on Thursday. If any changes are made after that
point, then the entire assignment will be counted as late.
Do not modify or drop the A11X, A11Y and A11Z tables or the A11T# views until you
have received your grade for the assignment.
This question was answered on: Sep 18, 2020
Buy this answer for only: $15
This attachment is locked
We have a ready expert answer for this paper which you can use for in-depth understanding, research editing or paraphrasing. You can buy it or order for a fresh, original and plagiarism-free copy from our tutoring website www.aceyourhomework.com (Deadline assured. Flexible pricing. TurnItIn Report provided)
Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .
About this QuestionSTATUS
Sep 18, 2020EXPERT
GET INSTANT HELP/h4>
We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.
You can also use these solutions:
- As a reference for in-depth understanding of the subject.
- As a source of ideas / reasoning for your own research (if properly referenced)
- For editing and paraphrasing (check your institution's definition of plagiarism and recommended paraphrase).
NEW ASSIGNMENT HELP?
Order New Solution. Quick Turnaround
Click on the button below in order to Order for a New, Original and High-Quality Essay Solutions. New orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.
WE GUARANTEE, THAT YOUR PAPER WILL BE WRITTEN FROM SCRATCH AND WITHIN YOUR SET DEADLINE.