Write a query that returns the following columns: Person's full name. Person's role at the school: principal,
Fantastic news! We've Found the answer you've been seeking!
Question:
Write a query that returns the following columns:
- Person's full name.
- Person's role at the school: principal, teacher, or student.
- Person's salary (or N/A for students).
- Person's school name.
Transcribed Image Text:
SYSTEM.SCHOOLS P SCHOOL_ID SCHOOL_NAME ADDRESS CITY REGION POSTAL CODE COUNTRY NUMBER VARCHAR2 (35 BYTE) VARCHAR2 (60 BYTE) VARCHAR2 (15 BYTE) VARCHAR2 (15 BYTE) VARCHAR2 (10 BYTE) VARCHAR2 (15 BYTE) F PRINCIPAL_ID NUMBER SCHOOLS_PK (SCHOOL_ID) SCHOOL PRINCIPAL_FK (PRINCIPAL_ID) SYSTEM.PRINCIPALS IP * PRINCIPAL_ID F PERSON_ID SALARY NUMBER NUMBER NUMBER PRINCIPALS_PK (PRINCIPAL_ID) SYS_C0021074 (PERSON_ID) P F SYSTEM.PEOPLE PERSON_ID SCHOOL_ID * FIRST_NAME LAST_NAME BIRTH DATE ADDRESS CITY REGION POSTAL CODE COUNTRY PEOPLE_PK (PERSON_ID) SYS_C0021064 (SCHOOL_ID) CLASSROOM_ID NUMBER NUMBER VARCHAR2 (10 BYTE) VARCHAR2 (20 BYTE) DATE VARCHAR2 (60 BYTE) VARCHAR2 (15 BYTE) VARCHAR2 (15 BYTE) VARCHAR2 (10 BYTE) VARCHAR2 (15 BYTE) SYSTEM.STUDENTS P STUDENT_ID IF NUMBER PERSON_ID NUMBER GRADE_LEVEL NUMBER STUDENTS_PK (STUDENT_ID) SYS_C0021071 (PERSON_ID) SYSTEM.CLASSROOM_STUDENTS P CLASSROOM_STUDENT_ID F F STUDENT_ID GRADE NUMBER NUMBER NUMBER NUMBER CLASSROOM_STUDENTS_PK (CLASSROOM_STUDENT_ID) SYS_C0021082 (STUDENT_ID) SYS_C0021081 (CLASSROOM_ID) SYSTEM.TEACHERS P * TEACHER_ID NUMBER F F PERSON_ID NUMBER SUBJECT_ID NUMBER SALARY NUMBER TEACHERS_PK (TEACHER_ID) SYS_C0021067 (PERSON_ID) SYS_C0021068 (SUBJECT_ID) P F F SYSTEM.SUBJECTS P SUBJECT_ID NUMBER SUBJECT VARCHAR2 (60 BYTE) SUBJECTS_PK (SUBJECT_ID) tt SYSTEM.CLASSROOMS CLASSROOM_ID TEACHER_ID SUBJECT_ID SEMESTER YEAR NUMBER NUMBER NUMBER VARCHAR2 (6 BYTE) NUMBER (4) CLASSROOMS_PK (CLASSROOM_ID) SYS_C0021077 (TEACHER_ID) SYS_C0021078 (SUBJECT_ID) SYSTEM.SCHOOLS P SCHOOL_ID SCHOOL_NAME ADDRESS CITY REGION POSTAL CODE COUNTRY NUMBER VARCHAR2 (35 BYTE) VARCHAR2 (60 BYTE) VARCHAR2 (15 BYTE) VARCHAR2 (15 BYTE) VARCHAR2 (10 BYTE) VARCHAR2 (15 BYTE) F PRINCIPAL_ID NUMBER SCHOOLS_PK (SCHOOL_ID) SCHOOL PRINCIPAL_FK (PRINCIPAL_ID) SYSTEM.PRINCIPALS IP * PRINCIPAL_ID F PERSON_ID SALARY NUMBER NUMBER NUMBER PRINCIPALS_PK (PRINCIPAL_ID) SYS_C0021074 (PERSON_ID) P F SYSTEM.PEOPLE PERSON_ID SCHOOL_ID * FIRST_NAME LAST_NAME BIRTH DATE ADDRESS CITY REGION POSTAL CODE COUNTRY PEOPLE_PK (PERSON_ID) SYS_C0021064 (SCHOOL_ID) CLASSROOM_ID NUMBER NUMBER VARCHAR2 (10 BYTE) VARCHAR2 (20 BYTE) DATE VARCHAR2 (60 BYTE) VARCHAR2 (15 BYTE) VARCHAR2 (15 BYTE) VARCHAR2 (10 BYTE) VARCHAR2 (15 BYTE) SYSTEM.STUDENTS P STUDENT_ID IF NUMBER PERSON_ID NUMBER GRADE_LEVEL NUMBER STUDENTS_PK (STUDENT_ID) SYS_C0021071 (PERSON_ID) SYSTEM.CLASSROOM_STUDENTS P CLASSROOM_STUDENT_ID F F STUDENT_ID GRADE NUMBER NUMBER NUMBER NUMBER CLASSROOM_STUDENTS_PK (CLASSROOM_STUDENT_ID) SYS_C0021082 (STUDENT_ID) SYS_C0021081 (CLASSROOM_ID) SYSTEM.TEACHERS P * TEACHER_ID NUMBER F F PERSON_ID NUMBER SUBJECT_ID NUMBER SALARY NUMBER TEACHERS_PK (TEACHER_ID) SYS_C0021067 (PERSON_ID) SYS_C0021068 (SUBJECT_ID) P F F SYSTEM.SUBJECTS P SUBJECT_ID NUMBER SUBJECT VARCHAR2 (60 BYTE) SUBJECTS_PK (SUBJECT_ID) tt SYSTEM.CLASSROOMS CLASSROOM_ID TEACHER_ID SUBJECT_ID SEMESTER YEAR NUMBER NUMBER NUMBER VARCHAR2 (6 BYTE) NUMBER (4) CLASSROOMS_PK (CLASSROOM_ID) SYS_C0021077 (TEACHER_ID) SYS_C0021078 (SUBJECT_ID)
Expert Answer:
Answer rating: 100% (QA)
Answer The query is as follow SELECT CONCATPfirstname Plastname AS Persons f... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these databases questions
-
Richard needs to borrow $34,103 and has narrowed his search for a loan to two banks. The first bank offers 67-month simple interest loans at an annual rate of 4.9%. The second bank offers 62-month...
-
Abby found a roll of fabric. The fabric is 36 inches wide and 23 feet 3 inches long. He needs to cut four 1-yard-wide sections from this roll. The length of those sections are 5 2/3 ft., 4 7/8 ft., 5...
-
On July 12 of this year, Lucas transferred $250,000 of FFP stock to a new trust. He gave the trustee directions to pay income to Dina for the next 20 years and then remit the remainder to Dina's son...
-
Density is not routinely measured in the atmosphere. Why is this not a problem for atmospheric scientists?
-
Find Vo in the circuit shown using Thevenins Theorem 4mA 2 IKO lmA Vo IKO >
-
Tim Wong operates a FedEx Kinko's store. He has just received the monthly bank statement at May 31, 2017, from Royal Bank of Canada, and the statement shows an ending balance of $595. Listed on the...
-
A technician is performing an impact analysis with a portable data collector. No matter how hard he strikes the object with the proper impact tool, the data are not identifying any clearly defined...
-
Worldwide United Corporation (WUC), a U.S. taxpayer, manufactures and sells products through a network of foreign branches and wholly-owned foreign subsidiaries. Relevant information for these...
-
Buddy transfers property, with a basis of $10,000 and a fair market value of $5,000 to a corporation in exchange for shares of 1244 stock. If this stock is later sold for $3,000, what is the amount...
-
B52 Skate Training prepares adjustments annually and showed the following on its June 30, 2023, year-end: Additional information available at year-end: a. The Prepaid Arena Rental of $182,000 was...
-
Using the following information: Cost of asset, $260,000 Accumulated depreciation, beginning of year, $80,000 Current year depreciation, $50,000 A. Make the December 31 adjusting journal entry for...
-
Consider the Black -Scholes model (SS)[0,71 and let 0 < To 0 is a fixed strike. What is the limit for large N? (ii) Use the distribution from (i) and the Black -Scholes formula to compute the price...
-
Let a probability space (N, F, ), a natural number n E N, and a function Xo: (N, F) (R, BRn) be given. The Dirac measure on BR concentrated at x Rn is defined by x (B): = [1, if x B, 0, if x BC,...
-
In the EV charging market, Chargepoint sells subscription software enabling bigger customers to manage charging vehicles themselves. This is an example of profit pyramid model O advertising model O...
-
Does immoral and unethical conduct and behaviour which are recognized by the society as unacceptable of which conduct and behaviour have not been regulated by law will then be regulated through...
-
If Ana devotes all her time to making fudge, she can make 3 pounds of fudge an hour, and if she devotes all her time to making toffee, she can make 2 pounds of toffee an hour. If Leo devotes all his...
-
MUMFORD Company is budgeting for the calendar year 2023. It is forecasted that the company will sell a total of 30,000 bookshelves during 2023 evenly for each quarter. These bookshelves will be sold...
-
Draw and label the E and Z isomers for each of the following compounds: 1. CH3CH2CH==CHCH3 2. 3. 4. CH,CH2C CHCH2CH Cl CH3CH2CH2CH2 CH CH2CCCH2CI CHCH3 CH3 HOCH CH CCC CH O-CH C(CH
-
Deborah purchases a new $30,000 car in 2012 to use exclusively in her business. If Deborah does not elect to expense or take bonus depreciation in 2012 and holds the car until it is fully...
-
Brian and Kim have a 12-year-old child, Stan. For 2012, Brian and Kim have taxable income of $52,000, and Stan has nonqualifying dividend income of $4,500 and investment expenses of $250. No election...
-
Scott Butterfield is self-employed as a CPA. He uses the cash method of accounting, and his Social Security number is 644-47-7833. His principal business code is 541211. Scott's CPA practice is...
-
A crystal sample of bacteriorhodpsin, a light-sensitive protein found in halobacteria that responds to light energy, has crystal planes separated by 0.20 nm. If a beam of 11 keV x rays illuminates a...
-
A nickel crystals work function is measured to be 5.22 eV at 25C. As the temperature increases by 300C, the work function drops by 50 meV. By how much does this shift the threshold wavelength for...
-
Investigators have created structures consisting of linear chains of ionized atoms on a smooth surface. Electrons are restricted to travel along the chain. The energy levels of the electrons match...
WORKBOOK For Basic Statistics For The Behavioral Sciences 1st Edition - ISBN: 0205086950 - Free Book
Study smarter with the SolutionInn App