Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Answer each of the following questions briefly. The questions are based on the following relational schema: Emp(eid: integer, ename: string, age: integer, salary: real) Works(eid:

image text in transcribed
Answer each of the following questions briefly. The questions are based on the following relational schema: Emp(eid: integer, ename: string, age: integer, salary: real) Works(eid: integer, did: integer, pettime: integer) Dept(did: integer, dname: string, budget: real, managerid: inte 1. Write the SQL statements required to create the preceding relations, including appropriate versions of all primary and foreign key integrity constraints. 2. Write an SQL statement to add John William as an employee with eid = 104, age = 30 and salary 18,000. 3. Write an SQL statement to give every employee salary a 5% raise. 4. Write an SQL statement to select all the different values from the age column in the Emp table. 5. Write an SQL statement to select all records where the budget column has the value greater than 10,000 in the Dept table

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 Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

Use loop equations to find Vo(t),t>0 in the network shown in fig.

Answered: 1 week ago

Question

9. Describe the characteristics of power.

Answered: 1 week ago