🙏 We need your help! SQLtest.online has no ads and lives only on donations. Even a small amount helps. Donate now →
SQL code copied to buffer
Task 57:

Table for Product Reviews

SQL Server 2022
The online shop adds customer reviews. Create the table ProductReview with these columns in this order:
- ReviewID: an integer, the primary key, numbered by the server (IDENTITY);
- ProductID: an integer, required;
- ReviewerName: Unicode text up to 50 characters, required;
- ReviewDate: a date without time, required;
- Rating: a small number from 1 to 5 (tinyint), required;
- Comments: Unicode text up to 1000 characters, optional.
Expected result Columns: 5 · Rows: 6
column_name data_type nullable is_identity primary_key

Sample rows open after wrong checks: 0 of 2

Write your query below and click "Check it!". Tables are described in the right pane.

Tutorial

By checking a query, you agree that it is stored without your account details and may be included in anonymized datasets, including for AI training. Learn more

The query result will appear here. Ctrl+Enter - Run query