Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1) VOTE Name Vote1 Vote2 Bill 20 15 Mary 10 25 Jill 15 0 Bob 30 null SELECT * FROM VOTE WHERE Vote1>10 AND VOTE2
1) VOTE
Name | Vote1 | Vote2 |
Bill | 20 | 15 |
Mary | 10 | 25 |
Jill | 15 | 0 |
Bob | 30 | null |
SELECT * FROM VOTE WHERE Vote1>10 AND VOTE2 >10 The execution of this query produces the following number of rows:
2 |
4 |
3 |
1 |
2)
VOTE
Name | Vote1 | Vote2 |
Bill | 20 | 15 |
Mary | 10 | 25 |
Jill | 15 | 0 |
Bob | 30 | null |
SELECT * FROM VOTE WHERE Vote2 >=10 UNION SELECT * FROM VOTE WHERE Vote2 <10 The execution of this query produces the following number of rows:
1 |
4 |
3 |
2 |
3)
When using the SUM function with two columns, a row containing a null value for either column would produce a null value for that row.
True |
False |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started