SQL Flow Field Guide

Read a small result

Choose output columns and give each column a clear name.

What you are trying to do

A report needs two fields from a small set of synthetic stock items.

Work through it

  1. Read the values source and its column names.
  2. Trace the selected expressions to the output aliases.
  3. Confirm the result includes only the requested columns.

Check your work

The result has two named columns and one row for each source item.

Practice SQL

Open in SQL Flow
SELECT ItemCode, Quantity FROM (VALUES (N'PEN', 8), (N'PAD', 3), (N'CLIP', 24)) AS Stock(ItemCode, Quantity);

Commands in this lesson

Next lesson Filter rows with NULL