Skip to content

Conversation

@d3marco
Copy link
Owner

@d3marco d3marco commented Dec 12, 2018

No description provided.

{

1: create table toys (id int, name varchar(100), price float, quantity int);
2: insert into toys values (1, 'dragon', 20, 20.00);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in your create statement you price comes before quantity, but they are reversed in your insert statement.

11: insert into toys values (10, 'batman', 100, 70.00);

12: alter table toys add column department_id int

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was hoping to see an update statement where you would set the department for the items you already added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants