Question
Overview study guide pleass help
(For questions 18-20) A database has the following two tables (called A and B): rgio diw and loving A1 A2 A3 A4 B1 B2 B3 RSD
0 0
Add a comment Improve this question Transcribed image text
Answer #1

18. Correct Answer: C. 4,3.

Explanation: Fields (Attributes) mean number of columns in a table. Table A has 4 columns (i.e. A1, A2, A3, A4). Table B has 3 columns (i.e. B1, B2, B3). Thus, option C is the correct answer (i.e. 4,3).

19. Correct Answer: C. 1----20.

Explanation: Lets break the SQL statement and analyse.

(Select A1, A3) --> This is used to fetch columns A1 and A3 from the table.

(From A) --> The Table from which the records are to be fetched. In this case, it is Table A.

(Where A2 = 10) --> Condition part of the statement. This tells us to fetch the data from Table where A2 value is 10.

Hence, (Select A1, A3 From A Where A2 = 10) is used to fetch columns A1=1 and A3=20 from Table A where A2 value is 10. Therefore, the correct answer option is C (i.e. 1----20).

20. Correct Answer: A. Select * From B Where B2 = 150.

Explanation: Lets break the SQL statement and analyse.

(Select *) --> This is used to fetch all the columns from the table.

(From B) --> The Table from which the records are to be fetched. In this case, it is Table B.

(Where B2 = 150) --> Condition part of the statement. This tells us to fetch the data from Table where B2 value is 150.

Hence, (Select * From B Where B2 = 150) is used to fetch all the records from Table B where B2 value is 150. Therefore, the correct answer option is A.

Add a comment
Know the answer?
Add Answer to:
Overview study guide pleass help (For questions 18-20) A database has the following two tables (called...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Consider the following tables R1 and R2: R1.A1 R1.B1 ------------ 1      1 NULL   2 3      NULL R2.A2 R2.B2...

    Consider the following tables R1 and R2: R1.A1 R1.B1 ------------ 1      1 NULL   2 3      NULL R2.A2 R2.B2 ------------ 1      1 NULL   2 3      NULL The tuple (3, NULL, 3, NULL) appears in the answer of which of the following SQL Statements? Check all that apply A. select * from R1,R2; B. select * from R1,R2 where R1.A1=R2.A2; C. select * from R1,R2 where R1.A1=R2.A2 and R1.B1=R2.B2; Suppose relation R(A,B,C) has the following tuples A B C ----- 2 3 4 5 3 4...

  • Suppose the initial conditions of the economy are characterized by the following equations. In this problem,...

    Suppose the initial conditions of the economy are characterized by the following equations. In this problem, we assume that prices are fixed at 1 (the price index is 100 and when we deflate, we use 1.00) so that nominal wealth equals real wealth. 1) C = a0 + a1 (Y - T) + a2 (WSM) + a3 (WRE) + a4 (CC) + a5 (r) 1') C = a0 + a1 (Y - 200) + a2 (10,000) + a3 (15,000) +...

  • Could you please read 7483 data sheet and then answer number e 7383 Data Sheet 5483A...

    Could you please read 7483 data sheet and then answer number e 7383 Data Sheet 5483A 4-Bit Binary Full Adder with Fast Carry General Description The '83A high speed 4-bit binary full adders with internal carry lookahead accept two 4-bit binary words (Ao-A3, Bo- B3) and a Carry input (Co). They generate the binary Sum outputs (So-S3) and the Carry output (C4) from the most significant bit. They operate with either HIGH or active LOW operands (positive or negative logic)....

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT