Programming Stuff
Tips on Programming Networking and Hacking
Enter your search terms
Submit search form
Saturday, July 18, 2009
MySQL: Using MAX( ) to select highest sem record
This query selects the highest sem record for studentid 14:
String sQL = "SELECT * FROM ssession WHERE studentid=" + studentid
+" AND sem IN (SELECT MAX(sem) FROM ssession WHERE studentid="
+ studentid + ")";
Newer Post
Older Post
Home