SQL SubqueriesSubqueries (also known as inner queries or nested queries) are a tool for performing operations in multiple steps. […] February 16, 2023 in SQL tagged join / subquery / subqueries by Mike
SQL GROUP BY HAVINGSummarizing tables with GROUP BY is very common and a must-have skill for the data analyst. This post […] February 16, 2023 in SQL tagged having / group / by by Mike
SQL Server COUNT DISTINCTYou can count the number of unique values in a column with COUNT DISTINCT. The Microsoft Press book […] February 13, 2023 in SQL Server tagged sql / distinct / count / unique / SQL Count by Mike
SQL Temp TablesLet’s discuss temporary tables in Microsoft’s T-SQL. Temporary tables have a hash (#) at the start of their […] February 10, 2023 in SQL tagged sql / temporary / table by Mike
SQL COALESCE() FunctionCOALESCE() returns the first non-null value in the list. If you have a list of arguments that you […] February 4, 2023 in SQL tagged sql / null / Coalesce / non-null / SQL NULL by Mike
SQL Best PracticesWhen you write SQL queries it is important to follow company policies and be consistent because others will […] January 27, 2023 in SQL tagged best / sql / case / practice by Mike
SQL IntroductionSQL stands for Structured Query Language. SQL is a standard language for storing, manipulating, and retrieving data in […] January 27, 2023 in SQL tagged sql / query / language / introduction / beginner / structured by Mike
BigQuery IntroductionBigQuery is a fully managed enterprise data warehouse that helps you manage and analyze your data with built-in […] January 25, 2023 in Database tagged data / sql / Google / query / big / bigquery by Mike
T-SQL Tables and Row CountYou are exploring a database in SQL Server using SSMS. You need a script that simply reports the […] January 10, 2023 in SQL Server tagged table / row / explore / exploration by Mike
Chinook DatabaseThe Chinook Database is a sample database available for several database products, including SQL Server, PostgreSQL, MySQL, Oracle, […] January 10, 2023 in Database tagged data / database / digital / media / music / sample / dataset by Mike
SQL Select IntoThe SELECT INTO statement copies data from one table into a new table. Here’s the syntax for copying […] January 8, 2023 in SQL Server tagged select / backup / table / copy / into by Mike
SQL Update From Another TableWe want to add a new column to our Orders table and put the product name into that […] January 8, 2023 in SQL Server tagged sql / clean / update / change by Mike