Question

What is one example where you would use grouping to summarize data In this example, if...

  1. What is one example where you would use grouping to summarize data
  2. In this example, if you have any filtering criteria would you use the "Where" clause or the "Having" clause and why?

Homework Answers

Answer #1

We are using having class to filter grouping data.

The HAVING clause is then applied to the rows in the result set. Only the groups that meet the HAVING conditions appear in the query output. You can apply a HAVING clause only to columns that also appear in the GROUP BY clause or in an aggregate function.

Example ;

SELECT titles.pub_id, AVG(titles.price)  
FROM titles INNER JOIN publishers
ON titles.pub_id = publishers.pub_id  
GROUP BY titles.pub_id  
HAVING publishers.state = 'CA';

If you have any doubts ask me

Know the answer?
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
Similar Questions
a) What would be an advantage of grouping this data? (1 mark) A veterinarian recorded the...
a) What would be an advantage of grouping this data? (1 mark) A veterinarian recorded the masses ( in grams) of kittens at birth (rounded to the nearest whole number) . The results are sorted (ascending order, left to right) in the list here. 175, 225,228,235,241,252,258,261,263,266,277,281,295,299,301,312,334 . b) What is the range for this data? *
Summarize how one would use the travel cost method to estimate the recreational benefits of a...
Summarize how one would use the travel cost method to estimate the recreational benefits of a National Park. Use a hypothetical example.
What is one example where a hypothesis test would be an appropriate way to make a...
What is one example where a hypothesis test would be an appropriate way to make a decision in your professional or interest area? Why would this method be better than another (for example confidence intervals, point estimates or probability). What would an appropriate null and alternate hypothesis be?
Name an example of a real-world data set, not yet mentioned in the course, where you...
Name an example of a real-world data set, not yet mentioned in the course, where you would typically expect to see a normal distribution. Be sure to describe what the labels would be for the horizontal and vertical axis of the display. Then explain why you would expect a normal distribution. What range of data values would you expect to represent 1 standard deviation from the mean?
Research and summarize the corporate social responsibility policies of a business where you are a customer....
Research and summarize the corporate social responsibility policies of a business where you are a customer. Would you adopt similar policies and why? Is there anything you would modify?
Give an example of a problem where it would be appropriate to use a statistical hypothesis...
Give an example of a problem where it would be appropriate to use a statistical hypothesis test for the population mean. Explain what you can determine with such test and how confident you are in your conclusion. Note : Question is related to lean six sigma
Please give one example where (and/or why) would or could a prediction interval be used in...
Please give one example where (and/or why) would or could a prediction interval be used in practice or in your own professional or interest area? What would be the benefit of using a prediction interval over other possible statistical methods?
Audit Risk What would be an example of inherent risk in a company where you have...
Audit Risk What would be an example of inherent risk in a company where you have worked? In your own words, give an explanation of detection risk. What then is audit risk? (do not copy the explanation from the book)
What is a repeated measures design? Describe an example in which you would use any type...
What is a repeated measures design? Describe an example in which you would use any type of t-test with a repeated measures design.
What is one instance where you think linear regression would be useful to you in your...
What is one instance where you think linear regression would be useful to you in your workplace or chosen major? Please describe including why and how it would be used
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT