Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
Update BMQL getting Error while passing Date parameter in where clause — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Update BMQL getting Error while passing Date parameter in where clause

Received Response
13
Views
1
Comments
edited Aug 25, 2020 11:07AM in Configure Price Quote 1 comment

Summary

Update BMQL getting Error while passing Date parameter in where clause

Content

Dear All,

We Are trying to update the record which has the current date in between start date and end date.

---------------------------------------------------

currentDate=datetostr(getdate(), "MM/dd/yyyy");

results = bmql("update Party_Part_Price set $set1 where part_number = $partnum and customer_id = $distributorNumber and quote_number is not null and  (to_date(start_date,'mm/dd/yyyy')<=to_date($currentDate,'mm/dd/yyyy') and to_date(end_date,'mm/dd/yyyy')>=to_date($currentDate,'mm/dd/yyyy')");// where start_date and end_date are the table fields

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!