skip to content
promptdojo
_
[ save your spot ]
[ follow on x ]
Mission: SQL feature query lab — step 2 of 7
ch 36 · sql for ml datasets
2/7
promptdojo
_
›
phase 06 · ml systems
›
ch 36 · sql for ml datasets
lesson 4 of 4 · mission: sql feature query lab
step 2 of 7 in this lesson
Your feature query needs the cutoff month passed in. Which way, and why?
1
A
?
placeholder with a parameter tuple — the driver handles quoting, and the cutoff can't be injected or mangled
2
An f-string: f"WHERE month < '{cutoff}'" — it's shorter
3
Hardcode '2026-03' — parameters add complexity
4
A TEMP TABLE holding the cutoff, joined in
check
Show hint
ch 36 · sql for ml datasets
2/7
promptdojo
_
›
phase 06 · ml systems
›
ch 36 · sql for ml datasets
lesson 4 of 4 · mission: sql feature query lab
step 2 of 7 in this lesson
Your feature query needs the cutoff month passed in. Which way, and why?
1
A
?
placeholder with a parameter tuple — the driver handles quoting, and the cutoff can't be injected or mangled
2
An f-string: f"WHERE month < '{cutoff}'" — it's shorter
3
Hardcode '2026-03' — parameters add complexity
4
A TEMP TABLE holding the cutoff, joined in
check
Show hint
park a thought