Write a user-defined function that calculates a student gpa

Assignment Help Basic Computer Science
Reference no: EM131041670

This assignment requires you to take your extended design from Week 4 IP and add proper indexes, a function, and a stored procedure. Your changes will provide functionality used by the teachers for screens such as a grade book. Be sure any code is properly formatted and has appropriate comments.

Part 1: Function

Write a user-defined function (UDF) that calculates a student's GPA for a given time frame. Inputs are StudentId int, ClassStartDateStart datetime, and ClassStartDateEnd datetime. The output should be the student's GPA for all classes that were taken between ClassStartDateStart and ClassStartDateEnd. Also, supply the script to call this new function, passing it parameter values of your choice.

Part 2: Stored Procedure

Write the DDL script to make a stored procedure that returns data needed to display a grade book screen for a professor. The only input for the stored procedure is a ClassId. Outputs need to include student names and grades for all assignments as well as a calculated overall grade for the class for each student. Provide an example calling this new stored procedure, passing it parameter values of your choice. Include a screenshot of the output.

Part 3: Indexes

Provide a list of suggested indexes and the DDL script to create them. Include an explanation of the purpose of indexes and how you made your decision for the fields to include in your list of suggested indexes.

Copy and paste the work into your Key Assignment document and include screen shots of each step, describe what you did for each step and paste in the actual SQL text used to perform each step. Upload your document to the Submitted Tasks.

Reference no: EM131041670

Questions Cloud

Calculate the weights for source of funds : Under what conditions can a company's current capital structure be used to calculate the weights for each source of funds?
Discuss the importance of work-related attitudes : Discuss how understanding yourself is so important in being a good manager, and describe two methods to increase self-awareness. Discuss the importance of work-related attitudes. Describe what transformational leadership is and explain how managers c..
Understand the difference among coupon yield : Demonstrate that you understand the difference among coupon yield, current yield, and yield to maturity with the following illustration for Morgan Stanley debt, par value of $1000: current price of $1032, coupon rate of 4.2%, issue date of Septemb..
Personal property insured under a homeowners : James has his home and personal property insured under a Homeowners (special form)policy.The dwelling is insured for $120,000.The replacement cost of the home is $200,000.Indicate the extent to which each of the following losses would be covered unde..
Write a user-defined function that calculates a student gpa : Provide a list of suggested indexes and the DDL script to create them. Include an explanation of the purpose of indexes and how you made your decision for the fields to include in your list of suggested indexes.
What is the maximum amount that the investor : 1. An investment will produce an annual cash flow of $4000 for three years. The investor requires a 12% rate of return compounded annually. What is the maximum amount that the investor can pay and still earn the required rate of return?
Explain whether the ethical leaders at your current : Explain whether the ethical leaders at your current or at a previous employer act/acted as positive or negative role models in their visible ethical actions? Give an example in your analysis. How are/were ethics communicated in this employment cultur..
Briefly explain the concept measurement in accounting : "Measurement" is an important concept in accounting. Briefly explain the concept and explain the basis upon which accounting measurement has historically been undertaken. Discuss alternative measurement bases that have been proposed more recently
What is the best philosophical approach : What is the best philosophical approach (capabilities, ethical, economic, corporate citizenship, or utilitarianism) underpinning corporate social responsibility and on what basis? Give an example in arguing your viewpoint.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Purpose of defining a framework for it security policies

How could the Japanese Coast Guard write an effective data disposal policy?

  What are the basic components of an rfp

What are the basic components of an RFP?

  Explain the three major interrelated tasks for creating 3-d

Describe the difference between key frame animation and inverse kinematics

  Using professional principles and standards

Design and develop the below queries using professional principles and standards: A set of SQL Statements that returns all rows and all data for each table in your database. Two SQL Statements that return a subset of columns and a subset of rows ..

  How to motivate your employees

Describe also how to motivate your employees to accept the change and positively contribute to it and show its advantages and disadvantages. Characterise differences between the regions when appropriate.

  Packet-switched and circuit-switched

Packet-switched and circuit-switched are two standards utilized by wide area networks. In your Discussion Board posting of 4-6 paragraphs, address the following:

  Create a program that reads number of dooflingies

The shipping clerk at Rinky Dooflingy Corporation is faced with the problem: Dooflingies are very deilicate and must be shipped in special containers.

  Ordering a burrito at a fast food mexican restaurant

Draw an activity diagram for ordering a burrito at a fast food mexican restaurant (e.g. Chipotle or Qdoba)

  Process computer uses to convert data into information

Write down a 200 word paper which explains the distinctions of data and information and in short describe the process a computer uses to convert data into information.

  Business providing accounting and finance consultancy

Mario's Finance Solutions is a small business providing accounting and finance consultancy services in Melbourne. The business currently has 8 PCs and a network printer running on a Peer-to-Peer network.

  Planning the dblc-logical and physical design

The development of a database requires thorough methodology that ensures quality within the solution.

  Give a cfg for the set of all well formed strings

Give a CFG for the set of all well formed strings over {a,b,+,.,*, ?,?,(,) } that are well formed regular expressions over {a,b}

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