Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am looking to create another column that displays the numerical value of how many non-caucasian patients visit the clinic but I cannot seem to

I am looking to create another column that displays the numerical value of how many non-caucasian patients visit the clinic but I cannot seem to get them to sum together. My code is giving me the feedback I want, I just can't figure out how to sum rows of patients together. My code (SQL) just lists the patients one by one. Any help is appreciated. image text in transcribed

1. How many non-Caucasian patients have ever visited our healthcare system? (Hint: Look at cohort table) - -Please enter the code for question one here select race fromi hcan361_ha. dbo.cohort where race in ("black or african american", "asian", "hispanic", "native havailan or other pacfic islander", "other race', "american indian or slsaska native') .- I am considering 'unknown', "declined', and 'null' as white becaue there is a chance they are white. select count (*) over () as total_patients --select sum(race) - FROM - hcan361_hw.dbo. cohort - I am attempting to create a colunn that wil1 tell me the sum and not have to look at (4488 rows affected). (4252 rows affected) (1 row affected) Total execution time: 00:00:00.153

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

Making Databases Work The Pragmatic Wisdom Of Michael Stonebraker

Authors: Michael L. Brodie

1st Edition

1947487167, 978-1947487161

More Books

Students also viewed these Databases questions

Question

LOQ 1-8 How would you know which research design to use?

Answered: 1 week ago