oracle
8.1.6
insert into ec_problems_log
(problem_id, problem_date, gift_certificate_id, problem_details)
values
(ec_problem_id_sequence.nextval, sysdate, :gift_certificate_id, :prob_details)
select i.item_id, i.product_id, u.offer_code
from ec_items i, (select *
from ec_user_session_offer_codes usoc
where usoc.user_session_id = :user_session_id) u
where i.product_id=u.product_id(+)
and i.order_id=:order_id
select nvl(base_shipping_cost,0)
from ec_admin_settings
select nvl(add_exp_base_shipping_cost,0)
from ec_admin_settings
select ec_tax(0,:order_shipping_cost,:order_id)
from dual
select ec_gift_certificate_balance(:user_id)
from dual