Using MS SQLExpress, trying to use a single query to get the first and last entry in the table. Could easily do it with two queries, but would like to use one
My two query statements
Select top 1 t_stamp from Data order by t_stamp asc
and
Select top 1 t_stamp from Data order by t_stamp desc
work just fine on their own
But I get a syntax error when I try to union them
Tried using parenthesis around the select statements, but then get an error on the select statement itself.