subject

Emp( eid:integer, ename: string, age: integer, salary: real) Works( eid:integer, did: integer, pet_time: integer)
Dept(did:integer, dname: string, budget: real, managerid:integer)
1. Give an example of a foreign key constraint that involves the Dept relation.
2. Write the SQLstatements required to create the preceding relations, includingappropriate versions of all primary and foreign key integrityconstraints.
3. Define the Deptrelation in SQL so that every department is guaranteed to have amanager.
4. Write an SQLstatement to add John Doe as an employee with eid = 101, age = 32and salary = 15,000.
5. Write an SQLstatement to give every employee a 10 percent raise.
6. Write an SQLstatement to delete the Toy department.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:00
In which part of a professional email should you try to be brief, but highly descriptive?
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
Write a program that inserts the digits of an integer into an array in originalorderfollowed by reverse order. first, promptthe user to enter a positive integer(> 0). determine the number of digits of the integer. create a dynamically allocated integer arrayof a size twice the number of digits.now insert the digits in original order which will occupy half of the array. then, insert the digits in reverse order.finally, output thedigits in thearray.use at least two functions to organize your program.
Answers: 3
question
Computers and Technology, 23.06.2019 11:50
While preforming before operation pmcs, you notice the front right tire appears slightly under-inflated. what is the proper action?
Answers: 3
question
Computers and Technology, 23.06.2019 21:20
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
You know the right answer?
Emp( eid:integer, ename: string, age: integer, salary: real) Works( eid:integer, did: integer, pet_...
Questions
question
Mathematics, 16.06.2020 13:57
question
Health, 16.06.2020 13:57
question
Computers and Technology, 16.06.2020 13:57
Questions on the website: 13722363