Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How to do these two questions inSQL List each Advisor on the major table, and for each Advisor, list the first and last name of

How to do these two questions inSQL
  1. List each Advisor on the major table, and for each Advisor, list the first and last name of the students they advise. Only include students whose entry year is 2006 or 2007. Sort alphabetically by advisor, then the student last name and then the student first name.
  2. Prepare a query to list the total credit hours for each department. Only include list those departments that have a total of 8 or more credit hours.
image text in transcribed
image text in transcribed
\begin{tabular}{l} Class \\ \hline CiassiD \\ CourselD \\ Semester \\ Ciasssection \\ instructor \\ tocation \\ Time \\ MaxEnroliment \\ \hline \end{tabular} USResident State MajoriD 00 \begin{tabular}{|l|l|l|l|l|} \hline & \multicolumn{1}{|c|}{ MajorID } & MajorDept & \multicolumn{1}{c|}{ Advisor } & Click to Add \\ \hline & ACC & Accountancy & Celia Havisham & \\ \hline ECO & Economics & John Cripe \\ \hline FIN & Finance & Lisa Goetz \\ \hline ISA & Info. Sys. \& Anal Kimberly Sullivan & \\ \hline MGT & Management & Chris Roeth \\ \hline MKT & Marketing & Tyler Wassel \\ \hline \end{tabular}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Summarize what research has taught us about sexual orientation.

Answered: 1 week ago

Question

Write a letter asking them to refund your $1,500 down payment.

Answered: 1 week ago