Convert Coldfusion script in Oracle view with CASE and iteration
问题 I created a coldfusion script allowing to get an object "unit" from an array. My DB has a view about units. For a same unit key "ORG_ID", it can exist several rows (with a difference on a field "origin"). the field "origin" can be "current", "history" or "different". +---------+---------+------------+------------+----------| | ORG_ID | TITLE | VALID_FROM | VALID_TO | ORIGIN | +---------+---------+------------+------------+----------| | 1234 | A.1 | 01/03/2016 | 31/12/9999 | other | | 1234 | A