Posts

Showing posts from September, 2022

The VALUES clause or building tables out of nothing

https://www.red-gate.com/simple-talk/databases/theory-and-design/values-clause-building-tables-out-nothing   SELECT      EXCEL_LEVEL1_ROLLUP,      GROUP_NUMBER FROM (     VALUES          ('Fuel Sales', 1),          ('Conv Store Sales', 1),         ('Gift Shop Sales', 1),         ('Other Sales', 1),         ('Vending/Gift Cost', 2)     ) AS v (EXCEL_LEVEL1_ROLLUP, GROUP_NUMBER);

Summarizing data using GROUP BY and HAVING clauses

https://www.red-gate.com/simple-talk/databases/sql-server/t-sql-programming-sql-server/summarizing-data-using-group-by-and-having-clauses  

Document Data Stores - Dimensionality Reduction, Hierarchical Modeling using Materialized Paths, Nested Sets and Proximity Queries

https://www.mssqltips.com/sqlservertip/7358/document-data-store-data-models-and-proximity-queries/   Check Materialized Paths

How to Expand a Range of Dates into Rows with the SQL Server Function GENERATE_SERIES

  https://www.mssqltips.com/sqlservertip/7372/sql-server-function-generateseries-expand-date-range-into-rows/

The "Numbers" or "Tally" Table: What it is and how it replaces a loop

  https://www.sqlservercentral.com/articles/the-numbers-or-tally-table-what-it-is-and-how-it-replaces-a-loop-1

How to Expand a Range of Dates into Rows with the SQL Server Function GENERATE_SERIES

https://www.mssqltips.com/sqlservertip/7372/sql-server-function-generateseries-expand-date-range-into-rows/  

Manage Your Business Rules in T-SQL Query

https://www.sqlservercentral.com/articles/manage-your-business-rules-in-t-sql-query