

The date example above could be modified as follows: LEAST(date1, date2) Helpful Tip #2: One of our viewers suggested using the LEAST function (instead of the DECODE function) as follows: Sales Bonuses DECODE(SIGN(actual-target), -1, 'NO Bonus for you', 0,'Just made it', 1, 'Congrats, you are a winner')

The SIGN/DECODE combination is also helpful for numeric comparisons e.g.

The date example above could be modified as follows: DECODE(SIGN(date1-date2), 1, date2, date1) Helpful Tip #1: One of our viewers suggested combining the SIGN function with the DECODE function as follows: The formula below would equal 0, if date1 is greater than date2: (date1 - date2) - ABS(date1 - date2) Otherwise, the DECODE function should return date1.Īnswer: To accomplish this, use the DECODE function as follows: DECODE((date1 - date2) - ABS(date1 - date2), 0, date2, date1) When it comes to the heavy lifting of database development and database administration, Toad® by Quest® wins hands down.Question: One of our viewers wanted to know how to use the DECODE function to compare two dates (ie: date1 and date2), where if date1 > date2, the DECODE function should return date2.

We know we’re going to hear that from some people as we sunset Quest® Toad® for Oracle Freeware this year. Toad for Oracle Base gives you the muscle to be so much more productive than you can be with a freeware product like SQL Developer.Īnd now, it’s available by subscription, with a low, low, low introductory rate of $195.Īfter all, who doesn’t like free?īut when it comes to the heavy lifting of database development and database administration, there’s not much comparison between the two products. Low introductory price – get your first year for only $195.The promotion runs through December 31, 2020. Lower up-front cost than perpetual licensing.First access to upcoming subscription-only features like persistent settings and more.Increased security by maintaining current version.Auto updates, so you’re always on the latest and greatest version.Simplified accounting and easy approval from procurement buying 1 seat at a time. This offer is geared with the small business owner and Toad for Oracle Freeware user in mind and is a single-seat license with the introductory price available now to year end. That’s more than a 60% savings off the regular price.Ĥ ways Toad for Oracle is so much stronger than SQL Developer #Oracle sql developer vs toad license# It’s been our privilege to build and maintain Toad for Oracle for decades.
