bk171 Posted January 15, 2019 Share Posted January 15, 2019 Im new to Advantage SQL. Our CRM system uses it. Not a fan of it but have to live with it. Im trying to pull a date out of a datetime field and im struggling. this is what im using and im getting errors. Normally in TSQL id use cast/convert or something to accomplish this. select CAST(created as date) from matrstep poQuery: Error 7200: AQE Error: State = S0000; NativeError = 2159; [SAP][Advantage SQL Engine]Invalid argument to scalar function: CAST - unrecognized data type: date. -- Location of error in the SQL statement is: 8 Link to comment Share on other sites More sharing options...
Funce Posted January 15, 2019 Share Posted January 15, 2019 (edited) This page has a list of data-types valid to advantage SQL http://devzone.advantagedatabase.com/dz/webhelp/advantage9.0/supported_statements/miscellaneous_functions.htm Probably looking for SQL_DATE Edited January 15, 2019 by Funce Link to comment Share on other sites More sharing options...
bk171 Posted January 15, 2019 Author Share Posted January 15, 2019 Bingo. That worked. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now