SlideShare a Scribd company logo
Part I This part is worth 6 points. Create the following tables in your Oracle account: CREATE
TABLE PlaneN (Pnum char(3) primary key, Feature varchar2(20), Ptype varchar2(15));
CREATE TABLE PilotN (Eid char(3) primary key, Ename varchar(10), Salary number(7,2),
Mid char(3), foreign key (Mid) references PilotN); CREATE TABLE FlightN (Fnum char(4)
primary key, Fdate date, Duration number(2), Pnum char(3), foreign key (Pnum) references
PlaneN); CREATE TABLE Implements (Fnum char(4), Eid char(3), primary key( Fnum, Eid),
foreign key (Fnum) references FlightN, foreign key (Eid) references PilotN); Prepare a file and
execute the statements from the file. Use describe command to demonstrate your tables are
created. Part II is worth 20 points Insert the following data into created tables. 1. [2] Use the
INSERT SQL statements to insert data into PlaneN table. Put all your INSERT statements in a
file and execute the statements from the file.
2. [18] Use SQLLOADER utility to insert data into three other tables. Insert the following data
into PilotN table: Insert the following data into FlightN table:
Insert the following data into Implements table: FNUM EID begin{tabular}{ll} hline f01 & e02
 f01 & e05  f02 & e02  f03 & e02  f03 & e03  f04 & e05  f05 & e05  f05 & e06  f06 &
e08  f06 & e09  f07 & e11  f07 & e12  f08 & e08  f08 & e10  f09 & e11  f10 & e12 
f11 & e02  f11 & e06  f12 & e03  f12 & e05  f13 & e06  f13 & e08  f14 & e11  f15 &
e12 end{tabular} Use SELECT command to show the content of your tables. Part III is worth 74
points. Develop SQL statements for the following queries and execute them on Oracle 11g
hosted by School of ITEC Teaching Server: 1. [10] List names of pilots who implemented flights
on the planes of 'Commuter' type before '01-SEP-22'. 2. [8] Find names of pilots who
implemented more than one flight and have salary less than 40,000 . 3. [6] Find numbers and
features of planes which were not used in any flight so far.
4. [8] For each plane display its plane number, feature, and the total number of hours it spent in
the air. If a plane was not used at all, leave the total number of hours blank (don't show anything
in this column) for the plane. 5. [12] Find the name of the pilot(s) who implemented the longest
flight. 6. [10] Find plane types on which pilots whose manager is Green implemented flights. 7.
[8] Find employee IDs and names of pilots who implemented flights on planes of both types
'Commuter' and 'Normal' 8. [12] Display all pilots (their IDs and names) and the words "Higher
than average" if the pilot implemented more than the average number of flights per pilot or the
words "Lower than average" if the pilot implemented less than the average number of flights per
pilot. For the column holding the words "Higher than average" or "Lower than average" make a
header Performance. Put all your queries in a file and execute the queries from the file. Submit:
1. Cover page indicating your last name, first name, student number, course code and section. 2.
Printouts of your recorded sessions on Oracle 11g hosted by SIT Teaching server. You are to
record the sessions using SQLPlus spool command. The printout should demonstrate execution
of CREATE TABLE statements from the file, data insertion using INSERT SQL statements, and
execution of the queries from the file (the results of the execution of your SELECT statements).
Do not include all your sessions, submit only the last sessions for each part of the assignment. 3.
To show the SQL statements in the spool files, put SET ECHO ON command in the first line of
each file with SQL statements. 4. Printouts of the file(s) created by Linux script command
demonstrating your work with Oracle SQL*Loader utility. 5. The instruction how to record a
session using script command is posted on our class website. 6. Printout of the file containing
INSERT statements. 7. Printout of the file containing SELECT statements. 8. Printout of the files
with data and control information for SQL*LOADER utility. You may put the data within a
control file or prepare two separate files for each table. 9. Make sure that your printouts are
legible: contain complete SQL statements and results of their execution, don't have extra
characters between statements and reserved words. 10.Submit the hard copy of assignment # 2
to assignment drop-box # 7 on the third floor of DB. 11. Do not use host SQL*Plus command
for Part U of assignment # 2.

More Related Content

Similar to Part I This part is worth 6 points. Create the following tables in yo.pdf

The ProblemUsing C programming language write a program that simul.pdf
The ProblemUsing C programming language write a program that simul.pdfThe ProblemUsing C programming language write a program that simul.pdf
The ProblemUsing C programming language write a program that simul.pdffederaleyecare
 
Term 2 CS Practical File 2021-22.pdf
Term 2 CS Practical File 2021-22.pdfTerm 2 CS Practical File 2021-22.pdf
Term 2 CS Practical File 2021-22.pdfKiranKumari204016
 
Airport traffic control simple database model
Airport traffic control simple database modelAirport traffic control simple database model
Airport traffic control simple database modelmaster student
 
Oracle sql scripting homework
Oracle sql scripting homeworkOracle sql scripting homework
Oracle sql scripting homeworkarnitaetsitty
 
Instructions 3-5 pages double space research paper about Eric Sc.docx
Instructions 3-5 pages double space research paper about Eric Sc.docxInstructions 3-5 pages double space research paper about Eric Sc.docx
Instructions 3-5 pages double space research paper about Eric Sc.docxnormanibarber20063
 
Sql Queries
Sql QueriesSql Queries
Sql Querieswebicon
 
System programmin practical file
System programmin practical fileSystem programmin practical file
System programmin practical fileAnkit Dixit
 
The sqlite3 commnad line tool
The sqlite3 commnad line toolThe sqlite3 commnad line tool
The sqlite3 commnad line toolpunu_82
 
Java Airline Reservation System – Travel Smarter, Not Harder.pdf
Java Airline Reservation System – Travel Smarter, Not Harder.pdfJava Airline Reservation System – Travel Smarter, Not Harder.pdf
Java Airline Reservation System – Travel Smarter, Not Harder.pdfSudhanshiBakre1
 
As400 session or device error
As400   session or device errorAs400   session or device error
As400 session or device erroraminem_mp
 
CIS 336 Education guide/Tutorialrank.com
CIS 336 Education guide/Tutorialrank.comCIS 336 Education guide/Tutorialrank.com
CIS 336 Education guide/Tutorialrank.comtyjhgfsdfgh
 
Top 10 Oracle SQL tuning tips
Top 10 Oracle SQL tuning tipsTop 10 Oracle SQL tuning tips
Top 10 Oracle SQL tuning tipsNirav Shah
 
System software
System softwareSystem software
System softwareMobiless
 

Similar to Part I This part is worth 6 points. Create the following tables in yo.pdf (20)

The ProblemUsing C programming language write a program that simul.pdf
The ProblemUsing C programming language write a program that simul.pdfThe ProblemUsing C programming language write a program that simul.pdf
The ProblemUsing C programming language write a program that simul.pdf
 
srgoc
srgocsrgoc
srgoc
 
Term 2 CS Practical File 2021-22.pdf
Term 2 CS Practical File 2021-22.pdfTerm 2 CS Practical File 2021-22.pdf
Term 2 CS Practical File 2021-22.pdf
 
Airport traffic control simple database model
Airport traffic control simple database modelAirport traffic control simple database model
Airport traffic control simple database model
 
Pl sql using_xml
Pl sql using_xmlPl sql using_xml
Pl sql using_xml
 
Oracle sql scripting homework
Oracle sql scripting homeworkOracle sql scripting homework
Oracle sql scripting homework
 
Srgoc dotnet
Srgoc dotnetSrgoc dotnet
Srgoc dotnet
 
Instructions 3-5 pages double space research paper about Eric Sc.docx
Instructions 3-5 pages double space research paper about Eric Sc.docxInstructions 3-5 pages double space research paper about Eric Sc.docx
Instructions 3-5 pages double space research paper about Eric Sc.docx
 
Sql Queries
Sql QueriesSql Queries
Sql Queries
 
Introduction to SQL
Introduction to SQLIntroduction to SQL
Introduction to SQL
 
System programmin practical file
System programmin practical fileSystem programmin practical file
System programmin practical file
 
The sqlite3 commnad line tool
The sqlite3 commnad line toolThe sqlite3 commnad line tool
The sqlite3 commnad line tool
 
Usertracing
UsertracingUsertracing
Usertracing
 
Java Airline Reservation System – Travel Smarter, Not Harder.pdf
Java Airline Reservation System – Travel Smarter, Not Harder.pdfJava Airline Reservation System – Travel Smarter, Not Harder.pdf
Java Airline Reservation System – Travel Smarter, Not Harder.pdf
 
As400 session or device error
As400   session or device errorAs400   session or device error
As400 session or device error
 
CIS 336 Education guide/Tutorialrank.com
CIS 336 Education guide/Tutorialrank.comCIS 336 Education guide/Tutorialrank.com
CIS 336 Education guide/Tutorialrank.com
 
Oracle
OracleOracle
Oracle
 
Cp unit 3
Cp unit 3Cp unit 3
Cp unit 3
 
Top 10 Oracle SQL tuning tips
Top 10 Oracle SQL tuning tipsTop 10 Oracle SQL tuning tips
Top 10 Oracle SQL tuning tips
 
System software
System softwareSystem software
System software
 

More from ambritmobiles

Presented below are three receivable transactions. Journalize these u.pdf
 Presented below are three receivable transactions. Journalize these u.pdf Presented below are three receivable transactions. Journalize these u.pdf
Presented below are three receivable transactions. Journalize these u.pdfambritmobiles
 
Premium Fender uses a standard cost system and provide the tolowing h.pdf
 Premium Fender uses a standard cost system and provide the tolowing h.pdf Premium Fender uses a standard cost system and provide the tolowing h.pdf
Premium Fender uses a standard cost system and provide the tolowing h.pdfambritmobiles
 
Preparation 1. Find i(t) and Vc(t) ( calculate by hand ), R=6, C=0.12.pdf
 Preparation 1. Find i(t) and Vc(t) ( calculate by hand ), R=6, C=0.12.pdf Preparation 1. Find i(t) and Vc(t) ( calculate by hand ), R=6, C=0.12.pdf
Preparation 1. Find i(t) and Vc(t) ( calculate by hand ), R=6, C=0.12.pdfambritmobiles
 
Preguntas informativas de evaluaci�n de salud de ATI Harold Steven.pdf
 Preguntas informativas de evaluaci�n de salud de ATI Harold Steven.pdf Preguntas informativas de evaluaci�n de salud de ATI Harold Steven.pdf
Preguntas informativas de evaluaci�n de salud de ATI Harold Steven.pdfambritmobiles
 
Presanted beloware the firanoal statamonts of Whispering Winds Compan.pdf
 Presanted beloware the firanoal statamonts of Whispering Winds Compan.pdf Presanted beloware the firanoal statamonts of Whispering Winds Compan.pdf
Presanted beloware the firanoal statamonts of Whispering Winds Compan.pdfambritmobiles
 
Practice This cartilage is tough and functions to cushion and add st.pdf
 Practice This cartilage is tough and functions to cushion and add st.pdf Practice This cartilage is tough and functions to cushion and add st.pdf
Practice This cartilage is tough and functions to cushion and add st.pdfambritmobiles
 
Pre-Lab questions (to be turned in before a b begins) 1. Distinguish.pdf
 Pre-Lab questions (to be turned in before a b begins) 1. Distinguish.pdf Pre-Lab questions (to be turned in before a b begins) 1. Distinguish.pdf
Pre-Lab questions (to be turned in before a b begins) 1. Distinguish.pdfambritmobiles
 
Presented below are four segments that have been identified by Novak .pdf
 Presented below are four segments that have been identified by Novak .pdf Presented below are four segments that have been identified by Novak .pdf
Presented below are four segments that have been identified by Novak .pdfambritmobiles
 
PRE-LAB EXERCISES 161 Key Termm corend in fretab fermin ifi io.tim It.pdf
 PRE-LAB EXERCISES 161 Key Termm corend in fretab fermin ifi io.tim It.pdf PRE-LAB EXERCISES 161 Key Termm corend in fretab fermin ifi io.tim It.pdf
PRE-LAB EXERCISES 161 Key Termm corend in fretab fermin ifi io.tim It.pdfambritmobiles
 
Prepare the journal entries for Brandon Corp. for the following dat.pdf
 Prepare the journal entries for Brandon Corp. for the following dat.pdf Prepare the journal entries for Brandon Corp. for the following dat.pdf
Prepare the journal entries for Brandon Corp. for the following dat.pdfambritmobiles
 
Pregunta 1 1 pto Las firmas con las que una empresa se asocia p.pdf
 Pregunta 1 1 pto Las firmas con las que una empresa se asocia p.pdf Pregunta 1 1 pto Las firmas con las que una empresa se asocia p.pdf
Pregunta 1 1 pto Las firmas con las que una empresa se asocia p.pdfambritmobiles
 
Pregunta de lectura 2 (10 puntos) Lee el siguiente texto y con.pdf
 Pregunta de lectura 2 (10 puntos) Lee el siguiente texto y con.pdf Pregunta de lectura 2 (10 puntos) Lee el siguiente texto y con.pdf
Pregunta de lectura 2 (10 puntos) Lee el siguiente texto y con.pdfambritmobiles
 
PREGUNTA 1 Seleccione cinco de los siguientes casos y determin.pdf
 PREGUNTA 1 Seleccione cinco de los siguientes casos y determin.pdf PREGUNTA 1 Seleccione cinco de los siguientes casos y determin.pdf
PREGUNTA 1 Seleccione cinco de los siguientes casos y determin.pdfambritmobiles
 
Prepare the adjusting entry for each item assuming a December 31, 202.pdf
 Prepare the adjusting entry for each item assuming a December 31, 202.pdf Prepare the adjusting entry for each item assuming a December 31, 202.pdf
Prepare the adjusting entry for each item assuming a December 31, 202.pdfambritmobiles
 
Practice Map A 1. Label each contour line with the proper elevation u.pdf
 Practice Map A 1. Label each contour line with the proper elevation u.pdf Practice Map A 1. Label each contour line with the proper elevation u.pdf
Practice Map A 1. Label each contour line with the proper elevation u.pdfambritmobiles
 
Part BTying plutonic igneous textures to their ternary phase diagr.pdf
 Part BTying plutonic igneous textures to their ternary phase diagr.pdf Part BTying plutonic igneous textures to their ternary phase diagr.pdf
Part BTying plutonic igneous textures to their ternary phase diagr.pdfambritmobiles
 
Part A. Use data charity.RData, collected by Franses and Paap (2001),.pdf
 Part A. Use data charity.RData, collected by Franses and Paap (2001),.pdf Part A. Use data charity.RData, collected by Franses and Paap (2001),.pdf
Part A. Use data charity.RData, collected by Franses and Paap (2001),.pdfambritmobiles
 
PART A Tautologies, Contradictions, and Contingent Statements Use tr.pdf
 PART A Tautologies, Contradictions, and Contingent Statements Use tr.pdf PART A Tautologies, Contradictions, and Contingent Statements Use tr.pdf
PART A Tautologies, Contradictions, and Contingent Statements Use tr.pdfambritmobiles
 
Part 1. Pedigrees For the pedigrees below, look at each pedigree, cir.pdf
 Part 1. Pedigrees For the pedigrees below, look at each pedigree, cir.pdf Part 1. Pedigrees For the pedigrees below, look at each pedigree, cir.pdf
Part 1. Pedigrees For the pedigrees below, look at each pedigree, cir.pdfambritmobiles
 
Part 1 of 3 Points 0.25 of 1 celebrities Do the data appear to be f.pdf
 Part 1 of 3 Points 0.25 of 1 celebrities Do the data appear to be f.pdf Part 1 of 3 Points 0.25 of 1 celebrities Do the data appear to be f.pdf
Part 1 of 3 Points 0.25 of 1 celebrities Do the data appear to be f.pdfambritmobiles
 

More from ambritmobiles (20)

Presented below are three receivable transactions. Journalize these u.pdf
 Presented below are three receivable transactions. Journalize these u.pdf Presented below are three receivable transactions. Journalize these u.pdf
Presented below are three receivable transactions. Journalize these u.pdf
 
Premium Fender uses a standard cost system and provide the tolowing h.pdf
 Premium Fender uses a standard cost system and provide the tolowing h.pdf Premium Fender uses a standard cost system and provide the tolowing h.pdf
Premium Fender uses a standard cost system and provide the tolowing h.pdf
 
Preparation 1. Find i(t) and Vc(t) ( calculate by hand ), R=6, C=0.12.pdf
 Preparation 1. Find i(t) and Vc(t) ( calculate by hand ), R=6, C=0.12.pdf Preparation 1. Find i(t) and Vc(t) ( calculate by hand ), R=6, C=0.12.pdf
Preparation 1. Find i(t) and Vc(t) ( calculate by hand ), R=6, C=0.12.pdf
 
Preguntas informativas de evaluaci�n de salud de ATI Harold Steven.pdf
 Preguntas informativas de evaluaci�n de salud de ATI Harold Steven.pdf Preguntas informativas de evaluaci�n de salud de ATI Harold Steven.pdf
Preguntas informativas de evaluaci�n de salud de ATI Harold Steven.pdf
 
Presanted beloware the firanoal statamonts of Whispering Winds Compan.pdf
 Presanted beloware the firanoal statamonts of Whispering Winds Compan.pdf Presanted beloware the firanoal statamonts of Whispering Winds Compan.pdf
Presanted beloware the firanoal statamonts of Whispering Winds Compan.pdf
 
Practice This cartilage is tough and functions to cushion and add st.pdf
 Practice This cartilage is tough and functions to cushion and add st.pdf Practice This cartilage is tough and functions to cushion and add st.pdf
Practice This cartilage is tough and functions to cushion and add st.pdf
 
Pre-Lab questions (to be turned in before a b begins) 1. Distinguish.pdf
 Pre-Lab questions (to be turned in before a b begins) 1. Distinguish.pdf Pre-Lab questions (to be turned in before a b begins) 1. Distinguish.pdf
Pre-Lab questions (to be turned in before a b begins) 1. Distinguish.pdf
 
Presented below are four segments that have been identified by Novak .pdf
 Presented below are four segments that have been identified by Novak .pdf Presented below are four segments that have been identified by Novak .pdf
Presented below are four segments that have been identified by Novak .pdf
 
PRE-LAB EXERCISES 161 Key Termm corend in fretab fermin ifi io.tim It.pdf
 PRE-LAB EXERCISES 161 Key Termm corend in fretab fermin ifi io.tim It.pdf PRE-LAB EXERCISES 161 Key Termm corend in fretab fermin ifi io.tim It.pdf
PRE-LAB EXERCISES 161 Key Termm corend in fretab fermin ifi io.tim It.pdf
 
Prepare the journal entries for Brandon Corp. for the following dat.pdf
 Prepare the journal entries for Brandon Corp. for the following dat.pdf Prepare the journal entries for Brandon Corp. for the following dat.pdf
Prepare the journal entries for Brandon Corp. for the following dat.pdf
 
Pregunta 1 1 pto Las firmas con las que una empresa se asocia p.pdf
 Pregunta 1 1 pto Las firmas con las que una empresa se asocia p.pdf Pregunta 1 1 pto Las firmas con las que una empresa se asocia p.pdf
Pregunta 1 1 pto Las firmas con las que una empresa se asocia p.pdf
 
Pregunta de lectura 2 (10 puntos) Lee el siguiente texto y con.pdf
 Pregunta de lectura 2 (10 puntos) Lee el siguiente texto y con.pdf Pregunta de lectura 2 (10 puntos) Lee el siguiente texto y con.pdf
Pregunta de lectura 2 (10 puntos) Lee el siguiente texto y con.pdf
 
PREGUNTA 1 Seleccione cinco de los siguientes casos y determin.pdf
 PREGUNTA 1 Seleccione cinco de los siguientes casos y determin.pdf PREGUNTA 1 Seleccione cinco de los siguientes casos y determin.pdf
PREGUNTA 1 Seleccione cinco de los siguientes casos y determin.pdf
 
Prepare the adjusting entry for each item assuming a December 31, 202.pdf
 Prepare the adjusting entry for each item assuming a December 31, 202.pdf Prepare the adjusting entry for each item assuming a December 31, 202.pdf
Prepare the adjusting entry for each item assuming a December 31, 202.pdf
 
Practice Map A 1. Label each contour line with the proper elevation u.pdf
 Practice Map A 1. Label each contour line with the proper elevation u.pdf Practice Map A 1. Label each contour line with the proper elevation u.pdf
Practice Map A 1. Label each contour line with the proper elevation u.pdf
 
Part BTying plutonic igneous textures to their ternary phase diagr.pdf
 Part BTying plutonic igneous textures to their ternary phase diagr.pdf Part BTying plutonic igneous textures to their ternary phase diagr.pdf
Part BTying plutonic igneous textures to their ternary phase diagr.pdf
 
Part A. Use data charity.RData, collected by Franses and Paap (2001),.pdf
 Part A. Use data charity.RData, collected by Franses and Paap (2001),.pdf Part A. Use data charity.RData, collected by Franses and Paap (2001),.pdf
Part A. Use data charity.RData, collected by Franses and Paap (2001),.pdf
 
PART A Tautologies, Contradictions, and Contingent Statements Use tr.pdf
 PART A Tautologies, Contradictions, and Contingent Statements Use tr.pdf PART A Tautologies, Contradictions, and Contingent Statements Use tr.pdf
PART A Tautologies, Contradictions, and Contingent Statements Use tr.pdf
 
Part 1. Pedigrees For the pedigrees below, look at each pedigree, cir.pdf
 Part 1. Pedigrees For the pedigrees below, look at each pedigree, cir.pdf Part 1. Pedigrees For the pedigrees below, look at each pedigree, cir.pdf
Part 1. Pedigrees For the pedigrees below, look at each pedigree, cir.pdf
 
Part 1 of 3 Points 0.25 of 1 celebrities Do the data appear to be f.pdf
 Part 1 of 3 Points 0.25 of 1 celebrities Do the data appear to be f.pdf Part 1 of 3 Points 0.25 of 1 celebrities Do the data appear to be f.pdf
Part 1 of 3 Points 0.25 of 1 celebrities Do the data appear to be f.pdf
 

Recently uploaded

The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resourcesaileywriter
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxbennyroshan06
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfjoachimlavalley1
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPCeline George
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTechSoup
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxShibin Azad
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonSteve Thomason
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxJenilouCasareno
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...Nguyen Thanh Tu Collection
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsCol Mukteshwar Prasad
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online PresentationGDSCYCCE
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptxmansk2
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersPedroFerreira53928
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxCapitolTechU
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxjmorse8
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345beazzy04
 

Recently uploaded (20)

The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
NCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdfNCERT Solutions Power Sharing Class 10 Notes pdf
NCERT Solutions Power Sharing Class 10 Notes pdf
 
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptx
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 

Part I This part is worth 6 points. Create the following tables in yo.pdf

  • 1. Part I This part is worth 6 points. Create the following tables in your Oracle account: CREATE TABLE PlaneN (Pnum char(3) primary key, Feature varchar2(20), Ptype varchar2(15)); CREATE TABLE PilotN (Eid char(3) primary key, Ename varchar(10), Salary number(7,2), Mid char(3), foreign key (Mid) references PilotN); CREATE TABLE FlightN (Fnum char(4) primary key, Fdate date, Duration number(2), Pnum char(3), foreign key (Pnum) references PlaneN); CREATE TABLE Implements (Fnum char(4), Eid char(3), primary key( Fnum, Eid), foreign key (Fnum) references FlightN, foreign key (Eid) references PilotN); Prepare a file and execute the statements from the file. Use describe command to demonstrate your tables are created. Part II is worth 20 points Insert the following data into created tables. 1. [2] Use the INSERT SQL statements to insert data into PlaneN table. Put all your INSERT statements in a file and execute the statements from the file. 2. [18] Use SQLLOADER utility to insert data into three other tables. Insert the following data into PilotN table: Insert the following data into FlightN table: Insert the following data into Implements table: FNUM EID begin{tabular}{ll} hline f01 & e02 f01 & e05 f02 & e02 f03 & e02 f03 & e03 f04 & e05 f05 & e05 f05 & e06 f06 & e08 f06 & e09 f07 & e11 f07 & e12 f08 & e08 f08 & e10 f09 & e11 f10 & e12 f11 & e02 f11 & e06 f12 & e03 f12 & e05 f13 & e06 f13 & e08 f14 & e11 f15 & e12 end{tabular} Use SELECT command to show the content of your tables. Part III is worth 74 points. Develop SQL statements for the following queries and execute them on Oracle 11g hosted by School of ITEC Teaching Server: 1. [10] List names of pilots who implemented flights on the planes of 'Commuter' type before '01-SEP-22'. 2. [8] Find names of pilots who implemented more than one flight and have salary less than 40,000 . 3. [6] Find numbers and features of planes which were not used in any flight so far. 4. [8] For each plane display its plane number, feature, and the total number of hours it spent in the air. If a plane was not used at all, leave the total number of hours blank (don't show anything in this column) for the plane. 5. [12] Find the name of the pilot(s) who implemented the longest flight. 6. [10] Find plane types on which pilots whose manager is Green implemented flights. 7. [8] Find employee IDs and names of pilots who implemented flights on planes of both types 'Commuter' and 'Normal' 8. [12] Display all pilots (their IDs and names) and the words "Higher than average" if the pilot implemented more than the average number of flights per pilot or the words "Lower than average" if the pilot implemented less than the average number of flights per pilot. For the column holding the words "Higher than average" or "Lower than average" make a header Performance. Put all your queries in a file and execute the queries from the file. Submit:
  • 2. 1. Cover page indicating your last name, first name, student number, course code and section. 2. Printouts of your recorded sessions on Oracle 11g hosted by SIT Teaching server. You are to record the sessions using SQLPlus spool command. The printout should demonstrate execution of CREATE TABLE statements from the file, data insertion using INSERT SQL statements, and execution of the queries from the file (the results of the execution of your SELECT statements). Do not include all your sessions, submit only the last sessions for each part of the assignment. 3. To show the SQL statements in the spool files, put SET ECHO ON command in the first line of each file with SQL statements. 4. Printouts of the file(s) created by Linux script command demonstrating your work with Oracle SQL*Loader utility. 5. The instruction how to record a session using script command is posted on our class website. 6. Printout of the file containing INSERT statements. 7. Printout of the file containing SELECT statements. 8. Printout of the files with data and control information for SQL*LOADER utility. You may put the data within a control file or prepare two separate files for each table. 9. Make sure that your printouts are legible: contain complete SQL statements and results of their execution, don't have extra characters between statements and reserved words. 10.Submit the hard copy of assignment # 2 to assignment drop-box # 7 on the third floor of DB. 11. Do not use host SQL*Plus command for Part U of assignment # 2.