ttohme
November 27th, 2003, 10:46 AM
Hi guys,
I have 2 simple questions I'm sure.
How can I display all columns in a table of a specific record with a condition to show only the record with the maximum value:
ex:
RecordNumber RecordName RecordDate Value
1 Test Jan, 2000 20
3 Test2 Jan, 2001 19
1 Test3 Jan, 2002 21
so the query should return :
1 Test3 Jan,2002 21
What I want is to show the record with RecordNumber=1 and the one that has the highest value.
My Next question, using the same table as above, is there a query that returns the next available recordNumber, which is 2, instead of me iterating through the records trying to find the empty slot.
Thanks in advance for all your help.
I have 2 simple questions I'm sure.
How can I display all columns in a table of a specific record with a condition to show only the record with the maximum value:
ex:
RecordNumber RecordName RecordDate Value
1 Test Jan, 2000 20
3 Test2 Jan, 2001 19
1 Test3 Jan, 2002 21
so the query should return :
1 Test3 Jan,2002 21
What I want is to show the record with RecordNumber=1 and the one that has the highest value.
My Next question, using the same table as above, is there a query that returns the next available recordNumber, which is 2, instead of me iterating through the records trying to find the empty slot.
Thanks in advance for all your help.