Question

Write the query that lists the PID, FirstName, LastName, MajorCode, and MajorName of every student. Write...

  1. Write the query that lists the PID, FirstName, LastName, MajorCode, and MajorName of every student.
  1. Write the query that lists the PID, FirstName, LastName, MajorCode, and MajorName of every student majoring in a discipline with the word 'undecided' in the MajorName field. DO NOT LOOK UP THE Majors with undecided in their name and then filter on the MajorCodes!!! We must write queries as if we cannot see the data in them. All we know is the metadata and any information included in the problem statement.

  1. List the first and last names and the states of every student and advisor pair in which both are from the same state. This means the faculty member must be assigned as the student's advisor and they are both from the same state. It does NOT mean finding every faculty & student who share the same state but are not in an advising pair. Sort on the student's lastname and then firstname within lastname.

  1. Write the query that will produce the office number and building where the student with PID of PID01472 can find his or her advisor. Just display the office number and office building.

  1. Write the query to display the Student.MajorCode, the MajorName, and a count of the number of students in the major. Do not worry about majors with no students. (Hint: aggregate function & group by)

the file its pulling from has: Student, Major, Faculty, and College as databases to use.

Homework Answers

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
write a program that automates the process of generating the final student report for DC faculty...
write a program that automates the process of generating the final student report for DC faculty considering the following restrictions. Consider declaring three arrays for processing the student data: studID studName studGrade The student ID is a random number generated by the 5-digit system in the range of (10000 - 99999). Create a function to assign the student ID generated in an array of numbers. Consider the following to generate the random number: Add the libraries: #include <stdlib.h> #include <ctime>...
home / study / engineering / computer science / computer science questions and answers / consider...
home / study / engineering / computer science / computer science questions and answers / consider the following set of requirements for a university database that is used to keep track ... Question: Consider the following set of requirements for a UNIVERSITY database that is used to keep track o... Consider the following set of requirements for a UNIVERSITY database that is used to keep track of students' transcripts. (a) The university keeps track of each student's name, student number,...
Perform SQL queries in the given data structure. write an SQL query that gives the number...
Perform SQL queries in the given data structure. write an SQL query that gives the number of courses taken for every student in the student table. For each instructor, show the instructor name and the number of sections that have been taught by that instructor. You do not need to include instructors who have never taught a section. List in order of decreasing the number of sections taught. Give the number of semester/year combinations in which sections have been offered....
Case Study: Freeman-Brown Private School (FBPS), based in Illinois, was founded in 1944 by the Brown...
Case Study: Freeman-Brown Private School (FBPS), based in Illinois, was founded in 1944 by the Brown and Freeman families. Over the years, the school acquired a reputation as a leading academic institution with an advanced curriculum. Parents described the school as having a highly performing academic environment that provided a rigorous curriculum while fostering a safe, family-oriented atmosphere in a place where community was valued. Not surprisingly, the student population grew and the school opened multiple campuses in the metropolitan...
Review the Robatelli's Pizzeria Case Study. Develop another internal controls system, but this time, in the...
Review the Robatelli's Pizzeria Case Study. Develop another internal controls system, but this time, in the purchases and fixed assets business areas. Prepare a 12- to 16-slide presentation describing the purchases and fixed assets business areas. Be sure to incorporate speaker notes as well as appropriate visuals, graphics, fonts, etc. Include any associated risk in these areas. Describe specific internal controls that include authorization of transactions, segregation of duties, adequate records and documentation, security of assets, and independent checks and...
Gender Bias in the Executive Suite Worldwide The Grant Thornton International Business Report (IBR) has described...
Gender Bias in the Executive Suite Worldwide The Grant Thornton International Business Report (IBR) has described itself as "a quarterly survey of business leaders from across the globe … surveying 11,500 businesses in 40 economies across the globe on an annual basis." 1 According to the 2011 IBR, the Asia Pacific region had a higher percentage (27 percent) of female chief executive officers (CEOs) than Europe and North America. Japan is the only Asia Pacific region exception. The report further...
Please read the article and answear about questions. Determining the Value of the Business After you...
Please read the article and answear about questions. Determining the Value of the Business After you have completed a thorough and exacting investigation, you need to analyze all the infor- mation you have gathered. This is the time to consult with your business, financial, and legal advis- ers to arrive at an estimate of the value of the business. Outside advisers are impartial and are more likely to see the bad things about the business than are you. You should...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT