When retrieving the latest 10 records from a table sorted by date, the combination of Active Record Class methods to use is: ________.

  • get()
  • limit()
  • order_by()
  • select()
To retrieve records with a limit and order them, the sequence is to use select() to choose the columns, order_by() to sort by date, limit() to specify the number of records, and finally get() to execute the query.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *