on ‎2020 Nov 11 5:35 AM
Request clarification before answering.
In short: Watchout for implicit data type conversion warnings!
Detail:
You compare the KADKY field of data type date with a string of value '2020-10-31'. The only option this can be done is by converting KADKY to a string (using the BODS internal date format) and then the value is e.g. '2020.01.01'. The substring '2020.' is always larger than '2020-' no matter what other chars follow.
You want
KADKY >= to_date('2020-10-31', 'YYYY-MM-DD')or better to stick to the default date format
KADKY >= to_date('2020.10.31', 'YYYY.MM.DD')Now it is clear that the left and right side is a date and a date comparison will happen instead of a string comparison. Also important for performance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.