Solved

casting numeric value to date format

Posted on 2012-04-03
1
553 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ACT for Sage 2013 6 935
SAP Proposal for precast company 4 298
Exchange 2010 database will not mount 4 228
Export from Postgres as fixed width file 3 173
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…
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-…
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…

737 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