Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8914

SQL needs dashes removed from Date fields

$
0
0

We are creating a query of the OINV table to be copied to a tab-delineated table. One of the columns will be the DocDate field and it needs to written in YYYYMMDD intsead of YYYY-MM-DD format. The dashes must be removed.

 

Tried concatenating ( + ) using DATEPARTs for Year, Month and Day but no records are returned.

 

What should the SELECT statement look like?

 

Example:

 

If the DocDate in OINV is 2013-08-20, the column should read 20130820.

 

 

Thank you,

 

Ron


Viewing all articles
Browse latest Browse all 8914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>