Hey Bryce,
There isn't enough information to really tell you what is wrong with your queries. We don't know what your table schema looks like. Here are a few things to check
- Depending on the database server, put semi-colons after your inserts.
- We don't know what warranty table looks like, so either explicitly specify the columns you are inserting, or check to make sure the number of values you are inserting match the number of columns in the warranty table.
- Meaning, you are only inserting 3 values into the warranty table based on your sql statements. If your warranty table has 10 columns you are going to get an error based on implicitly inserting 3 columns into a 10 column table.
- So to fix this, you'd either have to insert 10 values or explicitly specify the columns being inserted into. For example
- INSERT INTO warrant (warranty_id, warranty_description, age) VALUES ('p13', '9-year warranty', 25);
- Within whatever database server you are using, you are not using the correct database/schema.
- Ex: in SQL Server, if you don't specify the database via USE statement (or the drop down in the top left), your default database may be master which won't allow you to insert the values you are looking to insert.
I'd start with checking those few items, if you are still having issues feel free to provide more details as to what the error may be.