Skip to content
Snippets Groups Projects
Commit 3d716a12 authored by clblatte's avatar clblatte
Browse files

Merge branch 'patch-2' into 'master'

Update structure_SIMO_rslDB_SA_function.R

See merge request clblatte/simo_output!5
parents 646706d9 431e4c81
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ create_table_UNIT <- 'Create Table UNIT AS SELECT u.*,
0 as income_biomass,
0 as Biomass,
0 as THIN,
u.BM_total*0.5 + u.Carbon_soil+u.CARBON_STORAGE_Ojanen+u.PEAT*300000 as CARBON_STORAGE_UPDATE,
u.BM_total*0.5 + u.Carbon_soil+ifnull(u.CARBON_STORAGE_Ojanen,0)+u.PEAT*300000 as CARBON_STORAGE_UPDATE,
FROM comp_unit u, data_link l
left outer join branch_desc b on l.branch = b.branch and l.id = b.id
cross join max_v m on l.id = m.id
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment