Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query suggestion #19

Open
chekos opened this issue May 4, 2020 · 0 comments
Open

Query suggestion #19

chekos opened this issue May 4, 2020 · 0 comments
Labels
suggestion A canned query suggestion (to be included by default in future deployment)

Comments

@chekos
Copy link
Owner

chekos commented May 4, 2020

Findings regarding RIPA Stop Data Bullet 4

In description add table with

Code Race/Ethnicity
1 Asian
2 Black/African American
3 Hispanic/Latino
4 Middle Eastern/South Asian
5 Native American
6 Pacific Islander
7 White
8 Multiracial

query

-- Individuals perceived to be Hispanic (39.8%), White (33.2%), or Black (15.2%) comprised the majority of stopped individuals. 
-- 1 Asian, 2 Black/African American, 3 Hispanic/Latino, 4 Middle Eastern/South Asian, 5 Native American, 6 Pacific Islander, 7 White, 8 Multiracial
SELECT
  RAE_FULL,
  COUNT(*) as N,
  PRINTF("%.4f", COUNT(*) * 1.0 / (SELECT COUNT(*) FROM race_ethnicity)) as share
FROM
  race_ethnicity as rae
GROUP BY 
  RAE_FULL
@chekos chekos added the suggestion A canned query suggestion (to be included by default in future deployment) label May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion A canned query suggestion (to be included by default in future deployment)
Projects
None yet
Development

No branches or pull requests

1 participant