Learn Bash and SQL by Building a Bike Rental Shop - Build a Bike Rental Shop

Tell us what’s happening:

im trying to run bike.sh in the final command and ots not working

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36

Challenge Information:

Learn Bash and SQL by Building a Bike Rental Shop - Build a Bike Rental Shop

show what you are writing in the terminal please, and what does the database say?

it’s not only running the script that you need to do, see the second sentence, you need also to set all bikes in a specific way

1 Like

please help this is my last step the code is right but coderoad is not accepting my answer

please show your database

you need to return all the bikes

1 Like

Tell us what’s happening:

ny last step in bike shop .sh is noot working i hVE TRIED TO RUN IT Mny tines byt itsnit working

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36

Challenge Information:

Learn Bash and SQL by Building a Bike Rental Shop - Build a Bike Rental Shop

you will need to give more details of what is going on

it says thank you for stopping but it wont pass

i even returned it pleae help

the bikes do not have a date_returned value, does that mean that they are rented out? you need to return all bikes

How do I do it in psql script or in the bikes.sh script

you can use the interactive script

or you need to edit the database directly

SELECT * FROM rentals ORDER by rental_id; i tried putting this code and running bikes.sh but it still doesnt work

SELECT * FROM rentals WHERE date_returned IS NULL;

that would not change asnything, you are only choosing which datas to look at