Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Using SQL Aggregate Functions (How to use MAX, AVE, SUM, etc.)
Re: Using SQL Aggregate Functions [message #1306 is a reply to message #1305] Fri, 04 April 2008 05:21 Go to previous message
AJM is currently offline  AJM
Messages: 2361
Registered: April 2006
Location: Surrey, UK
Senior Member
But surely this is what the following code does:
$last_id = $this->getCount("SELECT max(student_id) FROM $this->tablename");


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: creating list items
Next Topic: How do you deploy your app?
Goto Forum:
  


Current Time: Fri Aug 16 15:29:28 EDT 2024

Total time taken to generate the page: 0.01077 seconds