# NOT RUN {
# Query the total Amount for each combination of ScenarioID, Iteration, Timestep and StateLabelXID,
# including only Timesteps 0,1 and 2, and Iterations 3 and 4.
mySQL <- sqlStatement(
groupBy = c("ScenarioID", "Iteration", "Timestep", "StateLabelXID"),
aggregate = c("Amount"), where = list(Timestep = c(0, 1, 2), Iteration = c(3, 4))
)
mySQL
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab