Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 927
  • Last Modified:

Convert from Sybase to Oracle

Hi,
 How do I convert these from Syabse to Oracle

convert(varchar(11),Low,108)

convert(varchar(11),High,108)

...... AND convert(varchar(11),T.OrderDate,103) = convert(varchar(11), CurrentDate ,103)
0
madmare
Asked:
madmare
  • 2
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
convert(varchar(11),Low,108)
reads
to_char(Low, 'HH24:MI:SS')

convert(varchar(11),Low,103)
reads
to_char(Low, 'DD/MM/YYYY')


0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
...... AND convert(varchar(11),T.OrderDate,103) = convert(varchar(11), CurrentDate ,103)
should read

trunc(orderdate) = trunc(currentdate)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now