All Tags » t-sql (RSS)

Browse Site by Tags

Showing related tags and posts accross the entire site.
  • sql group by datetime by date part and ignore time

    select convert ( char ( 10 ), [LogDate] , 101 ), count (*) from [ Logs] group by convert ( char ( 10 ), [LogDate] , 101 ) order by convert ( char ( 10 ), [LogDate] , 101 ) desc
    Posted to SQL (Forum) by Pat on 05-21-2009
  • delete every other row with t-sql mod %

    t-sql statement to delete every other row of a table. I used for a testing app to test it when it does 50% updates and 50% inserts DELETE FROM [tbl_Asteryx_Profiles] where ProfileID % 2 > 0 used with... UPDATE [tbl_Profiles] SET StringValue = @StringValue, BinaryValue = @BinaryValue, LastUpdated ...
    Posted to SQL (Forum) by Pat on 05-24-2008
Page 1 of 1 (2 items)
Forums to discuss Microsoft ASP.Net Development and SQL
Powered by Community Server (Non-Commercial Edition), by Telligent Systems