You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT
race_ethnicity,
PRINTF('%.2f', person_consented_to_search*1.0/ searched_person) as share_consented,
PRINTF('%.2f', bfs_consent_given*1.0/ searched_person) as bfs_share_consented,
searched_person
FROM
(SELECTrae_codes.RACE_ETHNICITYas race_ethnicity,
SUM(ADS_ASKED_SEARCH_PER) as asked_person_for_consent,
SUM(ADS_SEARCH_PERS_CONSEN) as person_consented_to_search,
SUM(ADS_SEARCH_PERSON) as searched_person,
SUM(bfs.BFS_CONSENT_GIVEN) as bfs_consent_given,
COUNT(main.REASON_FOR_STOP) as rfs_consentual_encounter_consentual_search
FROM
action_taken AS at
INNER JOIN race_ethnicity AS rae ONrae.UNIQUE_ID=at.UNIQUE_IDINNER JOIN basis_for_search AS bfs ONbfs.UNIQUE_ID=rae.UNIQUE_IDINNER JOIN race_ethnicity_codes AS rae_codes ONrae.RAE_FULL=rae_codes.CODELEFT JOIN (
SELECT
UNIQUE_ID,
REASON_FOR_STOP
FROM
aa_main_table
WHERE
REASON_FOR_STOP =6
) AS main ONmain.UNIQUE_ID=rae.UNIQUE_IDGROUP BYrae.RAE_FULL)
The text was updated successfully, but these errors were encountered:
chekos
added
the
suggestion
A canned query suggestion (to be included by default in future deployment)
label
May 5, 2020
title
query
The text was updated successfully, but these errors were encountered: