| Tom Øyvind's profileTom's SpacePhotosBlogNetwork | Help |
|
August 07 Split a String using recursive SQLWhile sitting under my peartree, having a smoke, looking at the lawn and deciding that I had to mow it. Thinking I just had to catch up on my feed and watch the news before I started up the lawnmower, it suddenly occured to me that rather than using a numberstable (CTE) to split a string you could use a recursive SQL. Why I came to think of it? All the time I read blogs about Lisp, functional languages and how everything is so much cooler if you just start to think recursively ... :-) (more) ... August 02 The Auxiliary Calendar Table For SQL Server 2005A common auxiliary table is the calendar table. A calendar table is a table with a row for each and every date within a period. The table contains a column for the date and columns for additional data about the date, most useful in SQL Server would be ISO week as the datepart function is totally off ... (more) Computus - Easter Sunday in SQL Server 2005Working on an article about an auxiliary calendar table I needed to find a routine for calculating Easter Sunday ... (more) SQL Numbers table using a Common table expression (CTE)With SQL server 2005 Microsoft finally implemented recursive SQLs as described in the ISO-ANSI SQL3 standard (Implemented in DB2, Sybase and partly Oracle a "loooong" time ago). This new and exciting feature dubbed CTE (Common table expression) is supposed to be particular useful for traversing trees and hierarchies using SQL ... (more) |
|
|