Ok...this has me a little confused. The MySQL Manual (on group by) has the following to say;
-> FROM student
-> GROUP BY student_name;
Is this saying that both MIN() and MAX() have to be defined?
All I want/need to do is get the MAX() number held in the 'Weight' field
It would really help now, and in future stuff if I could understand how this worked...as it looks like it could be as useful as the WHERE clause
Cheers in advance.
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote:
mysql> SELECT student_name, MIN(test_score), MAX(test_score) -> FROM student
-> GROUP BY student_name;
Is this saying that both MIN() and MAX() have to be defined?
All I want/need to do is get the MAX() number held in the 'Weight' field
Cheers in advance.
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

