Revolving around a vehicle sales database

Assignment Help Basic Computer Science
Reference no: EM131848533

My homework is based on sql tables i created revolving around a vehicle sales database. It requires i build a SELECT query to display the institution and loan type of the financing plan that was used for the most sales. I have found other solutions online (which i have pasted below), and while it makes sense in my head, It keeps displaying all the institutions and loan types. I cannot get the Rank to work correctly to only show the top results. I need help with the correct format of Rank or some help on what i am doing wrong. Thanks

select institution, loan_type

from financing_plans

where plan_id=(select financing_plans.plan_id

from(select sales_financings.plan_id,

 Count(*) as plan_count,

 Rank () over (order by count (*) desc)

 as Rank

 from sales

 inner join SALES_FINANCINGS 

 on sales.sale_id = sales_financings.sale_id

 group by sales_financings.plan_id)

 where rank=1);

Reference no: EM131848533

Questions Cloud

Insert a organization chart smartart diagram : Enter Ken Dishner as the text for the top shape. When you are finished, Click outside the diagram.
Determine the most efficient estimation technique : Determine the most efficient estimation technique for an IT project; include an example or scenario to support your response.
Would you purchase an item from an online auction : Would you purchase an item from an online auction? Why or why not. Please explain.
Compute the present value of this financial asset : Sandra has just signed a 6-year lease for her new business. compute the present value of this financial asset.
Revolving around a vehicle sales database : My homework is based on sql tables i created revolving around a vehicle sales database. It requires i build a SELECT query to display the institution
Weighted average cost of capital for new project : What are the cost of equity capital and weighted average cost of capital for the new project?
The difference between a pen register and a trap and trace : What is required in order for a law enforcement agency to gain approval for use of one of these measures?
Develop an incident and injury report : Develop an incident and injury report form according to organisational standards and must ensure that they meet tone, language and content requirements
Define a class called infraction : In Java Define a class called Infraction (i.e., an infraction is a violation) that defines the following attributes:

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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