SQL Group by using LINQ

Target audience: SQL programmers Used tools: SQL,XPath What’s the purpose: read parameters for SQL query from XML variable The problem is the same, like in post “Read parameters for SQL store procedure from XML variable” but this time the resolving must be made with LINQ. In the beginning, let’s the list for checking is continuous… Continue reading SQL Group by using LINQ

Published
Categorized as LINQ

SQL Group by a range of value using T-SQL

Target audience: SQL programmers Used tools: T-SQL What’s the purpose: group records from SQL data table using aggregate functions with derived tables Now, let’s try to make the ‘job’ with t-sql only. The key point here is to use aggregate functions with so called derived tables.In this article http://logicalread.solarwinds.com/when-to-apply-sql-server-derived-table we can find a definition and… Continue reading SQL Group by a range of value using T-SQL

Published
Categorized as SQL