Other News

Community

Find Last Entry from History

(Galina Petrenko) The following technique shows how to find the last record ( last entry ) from the history table. When the history table has a timestamp column, you can use an N-Row query with a descending sort on that column and get just one row. Use similar techniques when the timestamp column is

Community

T-SQL’s Datetime Data Type

(Michael Otey) SQL Server’s datetime data type generates a lot of questions and confusion in the SQL Server community. Unlike some other major database platforms, SQL Server doesn’t provide discrete date and time data types. Instead, SQL Server’s datetime data type does the work of both. Here are an