Ternary operator in Oracle PL/SQL
Abstract: we need the max of two dates
Use this:
decode((date1 - date2) - abs(date1 - date2), 0, date2, date1)
AI AWS AWSReInvent2025 CloudNative Cybersecurity DefCon32 developer devops Devoxx DevoxxBE2012 DevoxxFR DevoxxFR2012 DevoxxFR2013 DevoxxFR2014 DotAI2024 GenerativeAI Google Java JavaScript JetBrains Jonathan Lalou Kotlin Kubernetes MachineLearning Maven Maven 2 Microservices NDCConferences ndcoslo NDCOslo2024 Node NodeCongress NodeJS OpenSource Oracle PHP Python recommendation Scala Security softwaredeveloper SoftwareDevelopment Spring SpringBoot Weblogic
Abstract: we need the max of two dates
Use this:
decode((date1 - date2) - abs(date1 - date2), 0, date2, date1)
Powered by WordPress and WordPress Theme | Host-euro.