Find the id and the grade-point average of every student

Assignment Help Basic Computer Science
Reference no: EM131057939

Suppose you are given a relation grade points(grade, points), which provides a conversion from letter grades in the takes relation to numeric scores; for example an "A" grade could be specified to correspond to 4 points, an "A-" to 3.7 points, a "B+" to 3.3 points, a "B" to 3 points, and so on. The grade points earned by a student for a course offering (section) is defined as the number of credits for the course multiplied by the numeric points for the grade that the student received.
Given the above relation, and our university schema, write each of the following queries in SQL. You can assume for simplicity that no takes tuple has the null value for grade.

a. Find the total grade-points earned by the student with ID 12345, across all courses taken by the student.

b. Find the grade-point average (GPA) for the above student, that is, the total grade-points divided by the total credits for the associated courses.

 c. Find the ID and the grade-point average of every student.

Reference no: EM131057939

Questions Cloud

How many outstanding shares will acquirer : Target Company is trading at $20 a share at the end of the year 2006 and has 1 million shares outstanding. Acquirer Corp. is trading at $50 a share and has 3 million shares outstanding. How many outstanding shares will Acquirer have if they are succe..
What is the required rate of return : Fee Founders has perpetual preferred stock outstanding that sells for $34.00 a share and pays a dividend of $3.00 at the end of each year. What is the required rate of return? Round your answer to two decimal places.
Share and is expected to pay annual dividends : The Border Crossing just paid an annual dividend of $4.20 per share and is expected to pay annual dividends of $4.40 and $4.50 per share the next two years, respectively. After that, the firm expects to maintain a constant dividend growth rate of 2 p..
Determine the number of solutions : Determine the number of solutions you will have for the system 4y+x=16 and y=4-x. Is it none, impossible to determine, indefinite or one.
Find the id and the grade-point average of every student : Find the grade-point average (GPA) for the above student, that is, the total grade-points divided by the total credits for the associated courses.
Use the payback decision rule to evaluate this project : Suppose your firm is considering investing in a project with the cash flows shown below, that the required rate of return on projects of this risk class is 7 percent, and that the maximum allowable payback and discounted payback statistics for the pr..
Price of a child ticket and a senior ticket : The first day she sold 4 senior citizen tickets and 2 children's tickets for a total of $80.00. The 2nd day she received $145.00 for 5 senior citizen tickets and 7 children's tickets. What is the price of a child's ticket and a senior ticket?
The cart wheel plans to pay an annual dividend : The Cart Wheel plans to pay an annual dividend of $1.20 per share next year, $1.00 per share a year for the following two years, and then cease paying dividends altogether. How much is one share of this stock worth to you today if you require a 17 pe..
Find the highest salary of any instructor : Find all instructors earning the highest salary (there may be more than one with the same salary).

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What standard network options match that speed

For the same assumptions as Exercise F.1, what is the minimum bandwidth of the slowest link to beat overnight delivery? What standard network options match that speed?

  Define fixed size instructions and varying size instructions

What are the advantages and disadvantage of fixed size instructions and varying size instructions?

  What is the command to list files in a directory

It will move the contents of temp1 from directory temp to temp1 of current directory and when finished it will erase the contents of temp1 of temp directory. What kind of files will be matched

  Algorithm to find the minimum vertex cover

How to use hill climbing algorithm to find the minimum vertex cover for an undirected graph? Any idea about the algorithm and implementation in C language? Thanks.

  Calculate the product of the two numbers

In general ask the user for 2 numbers, calculate the product of the two numbers (mul) and store product in memory. Then divide the 2 numbers entered and store the quotient and remainder in memory.

  The appearance and shape of letters

The appearance and shape of letters, numbers and special characters

  How many automobiles are to be described

How many autos do you want?: 2 Enter make: Honda Enter color: Blue Enter make: Chevy Enter color: Red You have a Blue Honda. You have a Red Chevy.

  What is the brains of the computer

What is the "brains" of the computer? What is the largest non-stationary component inside a hard drive? Bob has 87 GB of video of his 1 year old learning to walk. If he deletes 99% of it (saving 1%), about how much is left in MB

  What is the objective of the hipaa security rule

What isThe HIPAA Security Rule?What Is the Objective of theHIPAA Security Rule?How Is the HIPAA Security Rule Organized?

  Riordan manufacturing virtual organization

An increase in spending on items related to hardware, software, and outside IT support services by 4 percentA decrease the overall budget by 2 percent

  What are the features and define the values for parameters

What are the features you would consider essential if you were designing your perfect amplifier

  Which must be populated in the code-behind file

which must be populated in the code-behind file. The values of the new controls must be output when a postback is done.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd