Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to fetch records and display photo on the web page from table name USER of USER.MDB whose point is greatest from all record points?

My table's columns are

name
address
photo
point
Posted

1 solution

Have a look at this: A generic Image-From-DB class for ASP.NET[^] - it doesn't do the "greatest points" bit, but that is just a case of:
SQL
SELECT * FROM MyTable WHERE point=(SELECT MAX(point) FROM MyTable)
 
Share this answer
 
Comments
Janardan Pandey 24-Jan-12 3:43am    
SQL is ok but i am not cleared by coad.Because i want to fetch and display image during page load event.
OriginalGriff 24-Jan-12 3:45am    
Yes. Read the link - you will need to change it a bit, but it will work.
Janardan Pandey 24-Jan-12 3:57am    
But this link is not clearly telling about this needfull work.Eloborate it.
OriginalGriff 24-Jan-12 4:15am    
Are you taking the piss?
You are supposed to be a programmer - it is pretty much just a case of replacing a SELECT command...and there is only one of them in the whole link!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900