Basic Queries  «Prev  Next»

SQL INSERT - Exercise

Objective: Insert one book row.

Exercise scoring

Three-point self-assessment. Submission displays a model answer and rubric; no automatic SQL grader awards points.

Scenario and prerequisites

Use this small VirtualBookShelf teaching schema: BookTable(ItemNo, Title, Author). Assume all three columns are character columns, ItemNo is the primary key, and A900-0001 is not already present. Any other table columns allow NULL or have defaults.

These legacy teaching table names are defined here for this exercise; the modern lesson uses other sample tables. No ASP download or database connection is required.

Instructions

Write one INSERT statement adding ItemNo A900-0001, Title Advanced SQL and Author Robbins. Include an explicit column list.

Enter SQL directly, without an ASP querystring assignment. This website displays your answer for comparison; it never executes it.