Solved

casting numeric value to date format

Posted on 2012-04-03
1
548 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

If you have problems displaying reports in CRM after a new installation, review the following steps: Check that SQL Server Reporting Services is working On the server that has SQL Server Reporting Services (SQL SRS) installed, check that the S…
Messaging apps are amazing tools with the power to do a lot of good, but the truth is the process of collaborating with coworkers requires relationships established through meaningful communication - the kind of communication that only happens face-…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

778 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