Learn SQL by Building a Student Database: Part 1

Tell us what’s happening:

I’ve just finished the part where you create in your script the following line:
COURSE_ID=$($PSQL “SELECT course_id FROM courses WHERE course=‘$COURSE’”)

Now i have to complete the # if not found # insert course # get new course_id part, but when i try to do it, i can’t cuz the code that i write, works, but it still says “Your script should have the suggested command added correctly”

Your code so far

image

Your browser information:

El agente de usuario es: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 OPR/111.0.0.0

Challenge Information:

Aprender SQL construyendo una base de datos de estudiantes: Parte 1 - Construir una base de datos de estudiantes: Parte 1