Question: using sql: Create two tables named assignment _ r and assignment _ s that are defines as follows: a . Relation assignment _ r has

using sql:
Create two tables named assignment_r and assignment_s that are defines as follows:
a. Relation assignment_r has attributes (A, B, C, D), the domains of (char(1), int, varchar(5), float) respectively.
i. Attribute B is the primary key for this relation
ii. Relation assignment_r has the following tuples as values
(a,10,hello,10.5)
(b,1,hi,12)
(x,2,g479,1102.3)
(c,101,geog1,11)
(s,10,geog,12)[This should cause an error] Explain why this error
occurs
(y,123,g,12.5)
b. Relation assignment_s has attributes (B, D, E), the domains of (int, float, char(1)) respectively.
i. Attribute B is the primary key for this relation
ii. Relation assignment_s has the following tuples as values
(100,10.5,s)
(1,12,z)
(2,1.3,g)
(103,1.1,y)
(10,12,s)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!