Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Construct database queries using Structured Query Language (SQL). Construct database using phpmyadmin using MySQL. I will post questions in 3 sequential because they are related

Construct database queries using Structured Query Language (SQL).

Construct database using phpmyadmin using MySQL. I will post questions in 3 sequential because they are related and must be functional altogether.

Part 1

image text in transcribed

1. Write SQL statement to create a database named myShopDB. 2. Write SQL statement to create two tables named ITEM and PURCHASE. The description of the tables is as below: ITEM id INT NOT NULL, AUTO INCREMENT, PRIMARY KEY name VARCHAR (35) PURCHASE id INT NOT NULL, AUTO INCREMENT, PRIMARY KEY FOREIGN KEY itemID quantity INT INT 3. Write SQL statements to insert THREE (3) new items

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

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions