Avatar of Lapchien
LapchienFlag for United Kingdom of Great Britain and Northern Ireland

asked on 

Show Query Output in Single Row

I have a table that records each time the price of a job is created or subsequently amended, eg:

Id      JobId       Rate
1       100123     90.00
2       100123     85.00
3       100123     75.00
4       100124     80.00
5       100124     85.00
6       100125     90.00

I want to report on is the highest and lowest rates per job, so:

Required output:

JobId        HighestRate         LowestRate
100123     90.00                   75.00

Any help would be appreciated!

Thanks

lapchien

100124     85.00                   80.00
100125     90.00                   90.00
Microsoft SQL Server 2008

Avatar of undefined
Last Comment
sachinpatil10d
ASKER CERTIFIED SOLUTION
Avatar of sachinpatil10d
sachinpatil10d
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Microsoft SQL Server 2008
Microsoft SQL Server 2008

Microsoft SQL Server 2008 is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning. Major improvements include the Always On technologies and support for unstructured data types.

50K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo