NULL is a special marker used in SQL to indicate that a data value does not exist in the database.
Setup the data on db-fiddle MySQL V9.0 to practice. Make sure to select latest MySQL version to ensure Common Table Expressions (i.e CTE) is supported.
…