Learn SQL by Building a Student Database: Part 2 - Build a Student Database: Part 2

Tell us what’s happening:
Describe your issue in detail here.

I’ve written SQL query for task below:

“Major ID, total number of students in a column named ‘number_of_students’, and average GPA rounded to two decimal places in a column name ‘average_gpa’, for each major ID in the students table having a student count greater than 1:”

result of the query was right, but i just can’t run the bash file.
I’m in the right directory: ~/project
Using the right bash command for running: ./bashfile.sh
Shebang isn’t missing: #!/bin/bash

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/104.0.5112.81 Safari/537.36

Challenge: Learn SQL by Building a Student Database: Part 2 - Build a Student Database: Part 2

Link to the challenge:

Are you using ./student_info.sh to run the script or ./bashfile.sh?
What is the error you are getting when you try to run the script?

./student_info.sh
I meant to say, that i use right format for runnig bash

It works now. Thank you for help <3

1 Like