Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question Two The following Employee table records the hours an employee spends working for a department each week in SQLite: CREATE TABLE Employee ( PPSN

Question Two
The following Employee table records the hours an employee spends working for a
department each week in SQLite:
CREATE TABLE Employee (
PPSN INTEGER not null PRIMARY KEY,
name TEXT(20) not null,
age INTEGER not null,
salary INTEGER not null,
;
a) Write a valid SQL statement to add an employee into the Employee table.
(9 Marks)
b) Identify three issues with the assigned data types declared in relation to the
sample case provided below.
H12345, John Kelly, 23,30000}
(6 Marks)
c) Identify the correct data types for storing of the variables in the table.
H12345, John Kelly, 23,30000}
(3 Marks)
d) Provide the SQLite code to delete the table.
(4 Marks)
e) Identify one issue with the original assigned data types declared in the table
Employee in relation to the proposed wish of the company to prepare an average
wages calculation.
(3 Marks)
(Total 25 marks)
image text in transcribed

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

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions

Question

8. Explain the contact hypothesis.

Answered: 1 week ago

Question

2. Define the grand narrative.

Answered: 1 week ago