Question: Just need help with answers for 3-3 using 3-2 data. Create two tables, Tl (ename, jobno) and T2(jobno, jobdesc). Let jobno be data-type, NUMBER(3), and

 Just need help with answers for 3-3 using 3-2 data. Create

Just need help with answers for 3-3 using 3-2 data.

Create two tables, Tl (ename, jobno) and T2(jobno, jobdesc). Let jobno be data-type, NUMBER(3), and use appropriate data-types for the other attributes. Put three rows in TI and two rows in T2, Give TI jobno values 100, 200, 300 for the three rows: 100 200,,.,300s, where... represents any value you choose. Give T2.jobno the values 100, 200 c100,200,... a. How many rows are there in the equi-join (on jobno) of Tl and T2? b. If the values of T2jobno we re-200, >,(with different jobdesc values), how 3-2. many rows would you expect and why? Why would the rows have to have different descriptions? c. If the values of T2 jobno were 400, 500 as in ,<...>,<... names and the values of t2.jobno were>,100. > with different descriptions, how many rows would you expect to get? If you have two tables, what is the number of rows you may expect from a equi-join operation (with what conditions)? A Cartesian product? The number of rows in an equi-join of two tables, whose sizes are M and N rows, is from todepending on these conditions: e. f. 8-3. Use tables T1 and T2 in this exercise too. Create another table called T3 (jobdesc, minpay). Let minpay be type NUMBER(6,2). Populate the table with at least one occurrence of each jobdesc from table T2 plus one more jobdesc that is not in T2. Write and display the result of a triple equi-join of T1, T2, and T3, Use an appropriate comment on each of the lines of the WHERIE clause where there are equi-join conditions. Note that you will need two equi-join conditions a. How many rows did you get in the equi-join? b. Use the COUNT) function and display the number of rows (rows) in the equi-join How many rows would you get in this triple Cartesian product? (use COUNT) In an equi-join of N tables, you always have clause d. equi-join conditions in the WHERE

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 Databases Questions!