Solved

casting numeric value to date format

Posted on 2012-04-03
1
547 Views
Last Modified: 2013-11-11
I'm working on formatting the dates from a numeric value and I needed asistance.

Original value: 20120403
new value: 2012/04/03 (date Time)

How can I achieve this in my select statement
0
Comment
Question by:jorbroni
1 Comment
 
LVL 27

Accepted Solution

by:
tliotta earned 500 total points
ID: 37808881
I don't know specifics of Teradata, but converting numeric values to dates will depend a little on the flavor of SQL that runs the SELECT statement. Can you elaborate on the version of SQL that is involved?

It might be necessary to convert numeric to character, and then to a DATE data type. Or it might be more direct. It will depend on the functions available through your SQL engine.

Tom
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Oracle Apps Profiles option: A user profile is a set of shifting options that alter the way one runs an application. A value is set for each option under the user's profile when the Oracle application user logs on to any responsibility or changes…
Note: You must have administrative privileges in order to create/edit Sharing Rules. Salesforce.com (http://www.salesforce.com) (SFDC) is a cloud-based customer relationship management (CRM) system. It is a database most commonly used by sales an…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now