SELECT newest rows

    Date: 03/09/07 (MySQL Communtiy)    Keywords: no keywords

    I have a table containing test results. 

    studentid INT
    testscore FLOAT
    dateadded DATETIME

    There are multiple tests for each student. 

    How can I SELECT the most recent test result for each student in the table?  I think I would use GROUP BY studentid, but am a little foggy from there..

    thanks!

    Source: http://community.livejournal.com/mysql/110603.html

« Daylight Savings Time and... || Как я, умея... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home