Re: Find Minimum and Maximum
If you want to do this using SQL code, so you only retrieve those specific values from the database, then use something like:
SQL Code:
SELECT MIN([Date]) FROM Table1
There are other native functions too, like MAX and COUNT, that will be useful to you. If you want to get the min or max for a subset then you simply add a WHERE clause, e.g.If you already have a populated DataTable then you can use its Compute method to do similar things.
For future reference, if you're specifically asking for information on SQL code then that would belong in the Database Development forum.