| | |
max value
Please support our MS SQL advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2005
Posts: 483
Reputation:
Solved Threads: 19
not 100% sure what you are going for, but hopefully one of these will either do it for you or get you going in the right direction
1. this will give you each person and their max
2. this will give you each person and all instances of their max
3. this will give you all instance of anyone who got the max points
if you need more help let me know
1. this will give you each person and their max
MS SQL Syntax (Toggle Plain Text)
SELECT name,surname,max(points)AS mp FROM kisiler GROUP BY name,surname
2. this will give you each person and all instances of their max
MS SQL Syntax (Toggle Plain Text)
SELECT k.* FROM kisiler k INNER JOIN (SELECT name,surname,max(points)AS mp FROM kisiler GROUP BY name,surname) c ON c.name = k.name AND c.surname = k.surname AND k.points = c.mp
3. this will give you all instance of anyone who got the max points
MS SQL Syntax (Toggle Plain Text)
SELECT * FROM kisiler WHERE points = (SELECT max(points) FROM kisiler)
if you need more help let me know
![]() |
Similar Threads
- 3ds Max help (Geeks' Lounge)
- Need some help with min/max in arrays (C++)
- How can i find out the Max and Min value from a Vector? (C++)
- Max Payne 2 and Direct X 9 (Monitors, Displays and Video Cards)
- array max min (C++)
- can't run max payne 2 (Windows NT / 2000 / XP)
Other Threads in the MS SQL Forum
- Previous Thread: SQL 2000 "standard" reporting services
- Next Thread: SQL 2005 upgrade questions
| Thread Tools | Search this Thread |





