sql – Helen Anderson https://helenanderson.co.nz Data Analyst | Technical Writer Mon, 25 May 2020 09:04:50 +0000 en-NZ hourly 1 /?v=5.6 https://helenanderson.co.nz/wp-content/uploads/2020/04/cropped-android-chrome-512x512-1-32x32.png sql – Helen Anderson https://helenanderson.co.nz 32 32 Conditional logic with the CASE expression https://helenanderson.co.nz/sql-server-case/?utm_source=rss&utm_medium=rss&utm_campaign=sql-server-case Mon, 19 Aug 2019 05:11:04 +0000 https://helenanderson.co.nz/?p=3048 CASE is SQL's answer to other programming languages IF-ELSE statement. If you need to test a condition and return a value CASE is the expression you need.

The post Conditional logic with the CASE expression appeared first on Helen Anderson.

]]>
Why you need SQL Window Functions (part 2) https://helenanderson.co.nz/sql-window-functions-part-2/?utm_source=rss&utm_medium=rss&utm_campaign=sql-window-functions-part-2 Sun, 21 Jul 2019 07:52:18 +0000 https://helenanderson.co.nz/?p=3065 SQL Server Window Functions are incredibly powerful and allow us to access a total from another row and bucket data to show top performers.

The post Why you need SQL Window Functions (part 2) appeared first on Helen Anderson.

]]>
Why you need SQL Window Functions (part 1) https://helenanderson.co.nz/sql-window-functions-part-1/?utm_source=rss&utm_medium=rss&utm_campaign=sql-window-functions-part-1 Mon, 15 Jul 2019 07:31:56 +0000 https://helenanderson.co.nz/?p=3059 SQL window functions are incredibly powerful and allow us to see the rows in a table with a new column showing a running total, rank or moving average.

The post Why you need SQL Window Functions (part 1) appeared first on Helen Anderson.

]]>
SQL Aggregate Functions and Mariah Carey https://helenanderson.co.nz/sql-aggregate-functions/?utm_source=rss&utm_medium=rss&utm_campaign=sql-aggregate-functions Mon, 17 Jun 2019 03:48:02 +0000 https://helenanderson.co.nz/?p=3027 Aggregate functions bring your data to life.
They allow you to take a standard table and use a function or two to build metrics and answer questions about the data.

The post SQL Aggregate Functions and Mariah Carey appeared first on Helen Anderson.

]]>
Search with system tables https://helenanderson.co.nz/search-sys-tables/?utm_source=rss&utm_medium=rss&utm_campaign=search-sys-tables Sun, 28 Apr 2019 14:11:46 +0000 https://helenanderson.co.nz/?p=1173 Your database doesn’t just contain your data. It also contains data about your data.

The post Search with system tables appeared first on Helen Anderson.

]]>
Have you VACUUMed your tables lately? https://helenanderson.co.nz/vacuum-database/?utm_source=rss&utm_medium=rss&utm_campaign=vacuum-database Sun, 24 Mar 2019 08:33:09 +0000 /?p=3115 A high-level overview of why your DBA needs to VACUUM your tables

The post Have you VACUUMed your tables lately? appeared first on Helen Anderson.

]]>