D
Diego F.
Hi, I'm trying to select the last 3 items from a database to show them. I'm
writing a method that returns the rows in a dataSet. The method is:
public DataSet Last3()
I added a new data field to my database, so I can order the rows and the
first 3 are the newest.
SELECT * FROM Table ORDER BY Date DESC
I fill a DataSet with all the rows, but I don't know how to select just the
first 3 and return them in the dataset.
Regards,
Diego F.
writing a method that returns the rows in a dataSet. The method is:
public DataSet Last3()
I added a new data field to my database, so I can order the rows and the
first 3 are the newest.
SELECT * FROM Table ORDER BY Date DESC
I fill a DataSet with all the rows, but I don't know how to select just the
first 3 and return them in the dataset.
Regards,
Diego F.