Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Your Task This database has only been implemented partially. Write the SQL statement to Create the Authors table. The following information is important: AuthorID should

Your Task

This database has only been implemented partially.

Write the SQL statement to Create the Authors table. The following information is important:

AuthorID should be an autoincrement field of type INTEGER and must be set to be the primary key for this table.

Name should be of type TEXT and we should not allow null values.

Surname should be of type TEXT and we should not allow null values.

Note: It is deemed very important to capitalise table and field names exactly as shown in the design.

For example:

Test

Result

SELECT type, name, tbl_name, rootpage FROM sqlite_master WHERE type='table' AND name = 'Authors';

type name tbl_name rootpage

---------- ---------- ---------- ----------

table Authors Authors 4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

Are the rules readily available?

Answered: 1 week ago

Question

Are these written ground rules?

Answered: 1 week ago