Содержание
- 2. Q1 (10 points) Design an E/R diagram describing the following domain: · A Person has attributes
- 3. Q1: Solution
- 4. Q1: Solution
- 5. Q1. Common mistakes: Owns relationship A Skier owns zero or more PairOfSkis. The ownership relation has
- 6. Q1. Common mistakes: Owns relationship A Skier owns zero or more PairOfSkis. The ownership relation has
- 7. Q1. Common mistakes: Owns relationship A Skier owns zero or more PairOfSkis. The ownership relation has
- 8. Q1. Common mistakes: Rents relationship A Person can rent a PairOfSkis or a Snowboard. A person
- 9. Q1. Common mistakes: Rents relationship A Person can rent a PairOfSkis or a Snowboard. A person
- 10. Q1. Common mistakes: Rents relationship A Person can rent a PairOfSkis or a Snowboard. A person
- 11. Q1. Common mistakes: Rents relationship A Person can rent a PairOfSkis or a Snowboard. A person
- 12. Q1. Common mistakes: Rents relationship A Person can rent a PairOfSkis or a Snowboard. A person
- 13. Q1. Common mistakes: Rents relationship A Person can rent a PairOfSkis or a Snowboard. A person
- 14. Q2 (6 points) Write the SQL CREATE TABLE statement for the owns relation between Skier and
- 15. Q2: Solution CREATE TABLE owns ( sid INT PairOfSkis, pid INT Skier, purchase_price INT, PRIMARY KEY
- 16. Q2. Common mistakes: PK choice CREATE TABLE owns ( sid INT PairOfSkis, pid INT Skier, purchase_price
- 17. Q2. Common mistakes: PK choice CREATE TABLE owns ( sid INT PairOfSkis, pid INT Skier, purchase_price
- 18. Q2. Common mistakes: PK choice CREATE TABLE owns ( sid INT PairOfSkis, pid INT Skier, purchase_price
- 19. Q2. Common mistakes: PK choice CREATE TABLE owns ( sid INT PairOfSkis, pid INT Skier, purchase_price
- 20. Q2. Common mistakes: Excessive attributes CREATE TABLE owns ( sid INT PairOfSkis, pid INT Skier, purchase_price
- 21. Q2. Second option - combining Owns and PairOfSkis CREATE TABLE pairOfSkisOwns ( sid INT PairOfSkis, model
- 22. Q3: Consider the two tables: Table Driver (licenseNum, firstName, lastName, age) – part of a simple
- 23. Q3: Consider the two tables: Table Driver (licenseNum, firstName, lastName, age) – part of a simple
- 24. Q3: Consider the two tables: Table Driver (licenseNum, firstName, lastName, age) – part of a simple
- 25. Q3: Consider the two tables: Table Driver (licenseNum, firstName, lastName, age) – part of a simple
- 26. Q3: Consider the two tables: Table Driver (licenseNum, firstName, lastName, age) – part of a simple
- 27. Q3: Consider the two tables: Table Driver (licenseNum, firstName, lastName, age) – part of a simple
- 28. Q3: Consider the two tables: Table Driver (licenseNum, firstName, lastName, age) – part of a simple
- 29. Q3: Consider the two tables: Table Driver (licenseNum, firstName, lastName, age) – part of a simple
- 30. Q3: Consider the two tables: Table Driver (licenseNum, firstName, lastName, age) – part of a simple
- 31. Q3: Consider the two tables: Table Driver (licenseNum, firstName, lastName, age) – part of a simple
- 32. Q4: Consider the following schema: Suppliers(sid: integer, sname: string, address: string) Parts(pid: integer, pname: string, color:
- 33. Q4: Consider the following schema: Suppliers(sid: integer, sname: string, address: string) Parts(pid: integer, pname: string, color:
- 34. Q4: Consider the following schema: Suppliers(sid: integer, sname: string, address: string) Parts(pid: integer, pname: string, color:
- 35. Q4: Consider the following schema: Suppliers(sid: integer, sname: string, address: string) Parts(pid: integer, pname: string, color:
- 36. Q4: Consider the following schema: Suppliers(sid: integer, sname: string, address: string) Parts(pid: integer, pname: string, color:
- 37. Q5 5.1 Which of the following relational algebra operations do not require the participating tables to
- 38. Q5 5.4 The operation which is not considered a basic operation of relational algebra is (A)
- 39. Q5 5.7 A trigger is? (A) A statement that is executed automatically by the system as
- 41. Скачать презентацию