It only needs the name of a major. The ID will be added automatically. Add the first major from the courses.csv file into the majors table. It’s a VARCHAR, so make sure to put the value in single quotes.
The major is Database Administration
Use the INSERT INTO and VALUES keywords
Here’s an example: INSERT INTO <table_name>(<column_name>) VALUES(<value>);
Type INSERT INTO majors(major) VALUES('Database Administration');
When i typed that, i got an error -unexpected token near (’
Can someone help me and explain what i am doing wrong?
Are you typing the SQL commands into the postgres prompt, or the bash prompt? It sounds like you might be trying to type these commands into a bash prompt.
If still not sure, send a screenshot of the command you types and where you typed it, and the error.