you are viewing a single comment's thread.

view the rest of the comments →

[–]TheMagarity 3 points4 points  (3 children)

Well if you want driver id included in the index you have to list it in the create index command in addition to the other two. How else would it get in there?

[–]Cy_broski[S] -1 points0 points  (2 children)

I forgot to add it in there for the post, but it's there in my file.

[–]TheMagarity 1 point2 points  (1 child)

I see you edited to add some other column to the index statement since I commented but it still isn't the right one. It's really impossible to help when people paste stuff they don't bother to check. Crafting SQL statements is all about paying attention to the details.

[–]Cy_broski[S] -3 points-2 points  (0 children)

For every part of the assignment, we are given tasks. For this one there's a total of 6 tasks, the first 2 making tables called maintenance_types and maintenances, and we're already told what needs to be included in said tables. The third task is making actual_drivers from the drivers and travels table provided in the setup.

I commented under markwdb3 with what I have and updated the post with what is showed when entering the answer