There is a problem with your parameter declaration: you are trying to use the same param for shelfId
and dateTime
.
The declaration of parameters for the between
case shoudl probably be between '?2' and '?3
.
Please note the correct syntax (use ?1
instead of 1?
):
Input parameters are designated by the question mark (?) prefix followed by an integer. For example: ?1.