Home | Power BI | Excel | Python | SQL | Generative AI | Visualising Data | Analysing Data
This contains notes to accompany the SQL courses.
Power BI, for example, connects to databases and does it all for you
PatientStay is a small table that we use in many of the exercises.
The Land Registry Tables sho sales of properties in London SW12.
The Chinook database represents an online music store.
SQL Window functions are extremely useful, for example:
SELECT
ReceivedMonth
, ReceivedDate
, Movement
, ROW_NUMBER() OVER (PARTITION BY ReceivedMonth ORDER BY ReceivedDate) AS RowIndex
, SUM(Movement) OVER (PARTITION BY ReceivedMonth ORDER BY ReceivedDate) AS RunningRollingMovement
FROM
Message;