Skip to content

Commit 3e7e5cb

Browse files
committed
fix table reference to pivoted_bg
1 parent 10613e7 commit 3e7e5cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mimic-iii/concepts/pivot/pivoted_bg.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ with stg_spo2 as
203203
select bg.*
204204
, row_number() OVER (partition by bg.hadm_id, bg.charttime order by s1.charttime DESC) as lastrowspo2
205205
, s1.spo2
206-
from `physionet-data.mimiciii_derived` bg
206+
from `physionet-data.mimiciii_derived.pivoted_bg` bg
207207
left join stg_spo2 s1
208208
-- same hospitalization
209209
on bg.hadm_id = s1.hadm_id

0 commit comments

Comments
 (0)