Solved Homework: Question: Pane (40 points) Based on the data given (shown below) for the Academic Database, complete the fo…

Pane (40 points) Based on the data given (shown below) for the Academic Database, complete the following: Create the SQL statements for displaying the results for each of the following scenarios in the Academic Database. Save these statements in a script called M12 LastNameFirstName Joins (where LastName is your last name and FirstName is your first name). Run/execute these commands in Oracle Application Express. Display the different courses offered by the departments in the school. Display the courses offered in the Fall session. have enrolled for those courses Display the course details, the department that offers, the courses and students who Display the course details, the department that offers the courses and students who have enrolled for those courses for department 30. Will the given statement execute successfully? If not, what has to be changed? Make the appropriate changes and include in the script. SELECT COURSE NAME, MARKS, EXAM ID FROM COURSE d SOIN EXAM RESULTS a USING (aCOURSE-DI; Write a query to display the details of the marks obtained by students who have opted for the course with Course ID in the range of 190 to 195 Retrieve the rows from the Exam Results table even if there are no matching records in the Course table. What output would be generated when the given statement is executed? Include your . . . SELECT FROM EXAM CROSS JOIN EXAM TYPE .in each script created above, include the following comments: 336 Words I English (US) F1
media%2Fc08%2Fc08bff64-1b94-48b6-94bb-86
media%2F753%2F753ea0e3-884d-47d6-8b1c-d4
media%2Fe07%2Fe074236f-e386-4c93-95f2-11
media%2F8b1%2F8b10c569-0952-49b7-b811-f6
media%2Fadc%2Fadc5055c-b1fb-4fb2-b313-f5
media%2F707%2F7076ffe2-ddf7-4ef0-9da0-70
media%2F23b%2F23b386aa-0875-46a0-be74-02

Pane (40 points) Based on the data given (shown below) for the Academic Database, complete the following: Create the SQL statements for displaying the results for each of the following scenarios in the Academic Database. Save these statements in a script called M12 LastNameFirstName Joins (where LastName is your last name and FirstName is your first name). Run/execute these commands in Oracle Application Express. Display the different courses offered by the departments in the school. Display the courses offered in the Fall session. have enrolled for those courses Display the course details, the department that offers, the courses and students who Display the course details, the department that offers the courses and students who have enrolled for those courses for department 30. Will the given statement execute successfully? If not, what has to be changed? Make the appropriate changes and include in the script. SELECT COURSE NAME, MARKS, EXAM ID FROM COURSE d SOIN EXAM RESULTS a USING (aCOURSE-DI; Write a query to display the details of the marks obtained by students who have opted for the course with Course ID in the range of 190 to 195 Retrieve the rows from the Exam Results table even if there are no matching records in the Course table. What output would be generated when the given statement is executed? Include your . . . SELECT FROM EXAM CROSS JOIN EXAM TYPE .in each script created above, include the following comments: 336 Words I English (US) F1

Expert Answer

answers

I have used the table names as you they are named in the photos. Also, after every table name i have given it an alias name so that it is easy to use them in queries. For instance in query 2, ALIAS name of course_details is c and ALIAS name of academic_session_details is a.

Here are your queries:-

1) SELECT course_name FROM course_details;

2) SELECT c.course_name FROM course_details c JOIN academic_session_details a ON a.session_id = c.session_id AND a.session_name LIKE ‘Fall Session’;

#display course details, department and student details who have enrolled in that course

3) SELECT c.course_id, c.course_name, c.session_id, c.department_id, d.department_name, d.head_of_department, sd.first_name, sd.student_reg_year FROM (((course_details c
JOIN department_details d ON c.department_id = d.department_id)
JOIN student_course_details sc ON c.course_id = sc.course_id )
JOIN student_details sd ON sd.student_id = sc.student_id);

4) SELECT c.course_id, c.course_name, c.session_id, c.department_id, d.department_name, d.head_of_department, sd.first_name, sd.student_reg_year FROM (((course_details c
JOIN department_details d ON c.department_id = d.department_id)
JOIN student_course_details sc ON c.course_id = sc.course_id )
JOIN student_details sd ON sd.student_id = sc.student_id) WHERE c.department_id = 30;

# SELECT COURSE_NAME, MARKS, EXAM_ID FROM COURSE d JOIN EXAM_RESULTS a USING (a.COURSE_ID);

5) SELECT C.COURSE_NAME, M.MARK, M.EXAM_ID FROM COURSE C
JOIN EXAM_RESULTS_DETAILS M ON C.Course_id = M.course_id;

#marks of students who have course id between 190 to 195

6) SELECT STUDENT_ID, MARK FROM EXAM_RESULTS_DETAILS WHERE Course_id between 190 AND 195;

#rows from exam results table even if no matching records in course between

7) SELECT e.student_id, e.exam_id, e.course_id, e.mark from EXAM_RESULTS_DETAILS e
WHERE e.course_id NOT IN (SELECT course_id FROM course_details);

#select * from EXAM cross join Exam_type

8) It will create a cartesian product of both the tables. Every row of Table 1 will be associated with every row of table 2. There is no WHERE CLAUSE in cross join

Buy Essay
Calculate your paper price
Pages (550 words)
Approximate price: -

Help Me Write My Essay - Reasons:

Best Online Essay Writing Service

We strive to give our customers the best online essay writing experience. We Make sure essays are submitted on time and all the instructions are followed.

Our Writers are Experienced and Professional

Our essay writing service is founded on professional writers who are on stand by to help you any time.

Free Revision Fo all Essays

Sometimes you may require our writers to add on a point to make your essay as customised as possible, we will give you unlimited times to do this. And we will do it for free.

Timely Essay(s)

We understand the frustrations that comes with late essays and our writers are extra careful to not violate this term. Our support team is always engauging our writers to help you have your essay ahead of time.

Customised Essays &100% Confidential

Our Online writing Service has zero torelance for plagiarised papers. We have plagiarism checking tool that generate plagiarism reports just to make sure you are satisfied.

24/7 Customer Support

Our agents are ready to help you around the clock. Please feel free to reach out and enquire about anything.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

HOW OUR ONLINE ESSAY WRITING SERVICE WORKS

Let us write that nagging essay.

STEP 1

Submit Your Essay/Homework Instructions

By clicking on the "PLACE ORDER" button, tell us your requires. Be precise for an accurate customised essay. You may also upload any reading materials where applicable.

STEP 2

Pick A & Writer

Our ordering form will provide you with a list of writers and their feedbacks. At step 2, its time select a writer. Our online agents are on stand by to help you just in case.

STEP 3

Editing (OUR PART)

At this stage, our editor will go through your essay and make sure your writer did meet all the instructions.

STEP 4

Receive your Paper

After Editing, your paper will be sent to you via email.

× How can I help you?