Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am trying to find the average BMI by race from patients over 20. I keep getting 0 rows affected. I have done another problem

I am trying to find the average BMI by race from patients over 20. I keep getting "0 rows affected." I have done another problem where did the same thing except it was patients over 40. I copied the existing code from that example that runs and thought it would be easy. The table name is correct. I would appreciate it you could solve as close to what my code looks like so I can understand why it's not working on this problem but worked for the other question I answered. This is in SQL. Thanks!

Table I'm referencing:

image text in transcribedMy Code:

image text in transcribedExample Code that Worked:

image text in transcribed

way to help address this question. There are other ways though) + SELECT race , avg (average bmi) as average_bmil from \#bmi table where bmi category is not nu11 group by race order by average_bmi desc (0 rows affected) Total execution time: 00:00:00.006 null" is one way to help address this question. There are other ways though) ( 2 rows affected) Total execution time: 00:00:00.116

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_2

Step: 3

blur-text-image_3

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

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions