User-Defined Variables

Learn how to create user-defined variables and understand the contents you can store in them.

In previous encounters with SQL, we have encountered repetitive values in a sequence of SQL statements. To illustrate this problem, let us consider a scenario where we are handed a set of car models. In terms of SQL, we are working with the following data model:

Get hands-on with 1400+ tech skills courses.