subject

For each part of this problem you will need to construct a single SQL query which will check whether a certain condition holds on a specific instance of a relation, in the following way: your query should return an empty result if and only if the condition holds on the instance. (If the condition doesn't hold, your query should return something non-empty). Note our language here: the conditions that we specify cannot be proved to hold in general without knowing the externally-defined functional dependencies; so what we mean is, check whether they could hold in general for the relation, given a specific set of tuples. You may assume that there will be no NULL values in the tables, and you may assume that the relations are sets rather than multisets, but otherwise your query should work for general instances. (1) {A} is a superkey for a relation T (A, B, C, D). (2) The combinations of two attributes in the relation T (A, B, C, D) are each keys. (3) A tuple-generating dependency (TGD) between two relations A and B, having some shared attributes X1, ... , Xn, holds if, for every tuple ta in A, there is some tuple tb in B such that ta[X;] = tb[X;] for i = = 1,... n. In other words, for every distinct tuple in A, there must exist a corresponding tuple in B, which has the same values of shared attributes. Consider three tables Sailors(sid, sname, rating, age), Reserves(sid, bid, sname, bname, date) and Boats(bid, bname, color); Check for a TGD between Sailors and Reserves. (4) A multivalued dependency (MVD) is defined as follows: let R be a schema i. e. a set of attributes, and consider two sets of attributes X CR and Y CR. We say that a multivalued dependency (MVD), written: X + Y , holds on R if whenever there are two tuples tı, ta such that t1[X] = t2[X], there also exists a third tuple t3 such that: t3[X] = tı[X] = tz[X] t3 [Y] = tı[Y] t3[R\Y] = tz[R\Y] Note that R\Y is all the attributes in R that are not in Y, and that tz need not be distinct from tı or t2. Note especially that an MVD holds on an entire relation, meaning that any two tuples (in any order) in the relation should satisfy the above conditions if the MVD holds. To simply the problem, we assume R= {A, B, C, D, E), X = {A, B, C), Y = {C, D, E}. Hints: You need self-joins, nested SQL queries and Not Exist or Exists.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 23:30
Step 1: choose your topics review the project milestone reflections you submitted for modules 1 through 4. choose the one major idea or concept from each module that you feel most applies to your life. in addition, choose an important concept from module 5 that applies to your life. step 2: write your guidebook for each module: write a catchy headline that clearly and concisely sums up your chosen idea or concept write a brief explanation that includes a description of the concept, why it is important, and how it can be applied to your life to make a positive impact choose an exciting, powerful, or engaging image that illustrates your concept remember, you are writing one for each module, so you will have a total of five headlines, five descriptions, and five images. step 3: design your guidebook choose a format to present your digital guidebook. there are many 21st century tools available for creating and submitting your work in the online environment. for more information on tools your school uses, contact your instructor or visit the web 2.0 tools area.
Answers: 3
question
Computers and Technology, 22.06.2019 16:20
It policy compliance and emerging technologies respond to the following: propose at least three control measures that organizations need to put in place to ensure that they remain complaint with emerging technologies and in a continually changing it environment. examine the correlation of effective configuration management and change control procedures to remain compliant with emerging technologies and it security changes.
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
Under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
Which option completes the explanation for conflict of interest in an organization
Answers: 1
You know the right answer?
For each part of this problem you will need to construct a single SQL query which will check whether...
Questions
Questions on the website: 13722362