Lessons › SQL › Deep Dive: Text, Date & Number Functions
SQL lesson
CURRENT_DATE for today's date
CURRENT_DATE returns today's date automatically, so every row gets the same stamp without you typing it in manually.
Try this lesson free →Example
Stamping rows with today's date
SELECT *, CURRENT_DATE AS today FROM customers| customer_id | name | city | today |
|---|---|---|---|
| C001 | Alex Park | Toronto | 2026-05-14 |
| C002 | Jordan Lee | Vancouver | 2026-05-14 |
| C003 | Sam Rivera | Calgary | 2026-05-14 |
Step by step
- AS gives a column a friendlier name in the result.
SELECT *, CURRENT_DATE AS today - FROM tells SQL which table to pull the data from.
SELECT *, CURRENT_DATE AS today FROM customers;
Practice
1. Write a query on the orders table that adds a column called today set to today's date on every row.
SELECT *, CURRENT_DATE AS today FROM orders2. Write a query on the shipments table that adds a column called today set to today's date on every row.
SELECT *, CURRENT_DATE AS today FROM shipments3. Write a query on the promotions table that adds a column called today set to today's date on every row.
SELECT *, CURRENT_DATE AS today FROM promotions4. Write a query on the store_sales table that adds a column called today set to today's date on every row.
SELECT *, CURRENT_DATE AS today FROM store_sales5. Write a query on the returns table that adds a column called today set to today's date on every row.
SELECT *, CURRENT_DATE AS today FROM returnsLearn it by doing. This lesson is a short hands-on level on Bampaa: see it work, then build and write it yourself, with instant feedback.
Try this lesson free →