Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL/PHP Database Applications

Authors: Jay Greenspan, Brad Bulger

1st Edition

978-0764535376

More Books

Students also viewed these Databases questions

Question

What is the effect of word war second?

Answered: 1 week ago