Assume a table SALES with sales of a product across all states in USA. Assume there is a column State in that table and that values are the USPS two character state abbreviation. Now select the statement that will give retrieve the sales from Connecticut (CT) and New York (NY).
SELECT *
FROM SALES
WHERE NOT STATE = 'CT'
OR STATE = 'NY'
SELECT *
FROM SALES
WHERE STATE = 'CT'
OR STATE = 'NY'
SELECT *
FROM SALES
WHERE STATE = 'CT'
AND STATE = 'NY'
SELECT *
FROM SALES
WHERE STATE = 'CT'
AND NOT STATE = 'NY'
(b) SELECT *
FROM SALES
WHERE STATE = 'CT'
OR STATE = 'NY'
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!