xml - Converting from Oracle to SQL Server -


using xml, code piece in question looks like:

<field  name="case" when max(b.expected_date) %lt% current_date %q%0000-00-00%q% else to_char(max(b.expected_date), %q%yyyy-mm-dd%q%) end" title="qoo expected" type="date" /> 

i have tried changing to_char convert , current_date getdate. nothing working far. here changes:

<field  name="case" when max(b.potduedate) %lt% getdate %q%0000-00-00%q% else convert (max(b.potduedate), %q%yyyy-mm-dd%q%) end" title="qoo expected" type="date" /> 

the error receive is:

incorrect syntax near 'b.potduedate'., sql state 37000

getdate function in oracle, may need add () work.

getdate() 

Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -