I have this date set uploaded from SAS to TD and the date format is like MEDI_START_DT format,'MM/DD/YYYY' And now I want to make a calculation baesed on this column MEDI_START_DT + PDAYSSUP -1 = MEDI_END_DT_PRE but MEDI_END_DT_PRE's format is not a date and I tried cast(MEDI_END_DT_PRE's as date) and it says invalid date. Do you guys have any idea on how to get a date format result after the calculation? Thanks!
Teradata Date calculation format issue
136 Views Asked by R.Z At
1
There are 1 best solutions below
Related Questions in DATE
- PLSQL Need REFCURSOR DATE + TIME
- Pandas date ranges and averaging the counts
- javascript date validation to check whether it exceeds exactly next year's date
- How to INSERT date in PHP & Mysqli
- Create a list of sequential monthly dates in PHP given initial date and quantity
- Date parse with Timezone - Android
- RAILS: date_select validation
- Having trouble writing a calendar, I couldn't find a detailed guide answering my questions anywhere
- Julian Date Conversion SQL
- SQL find out how many days into year date is
- Algorithm to find the Gregorian date of the Chinese New Year of a certain Gregorian year
- Angularjs, date input : enter a date manually with a specific format
- How to convert a Microsoft SQL date to a vba string?
- Why does new java.text.SimpleDateFormat("EEEE").format(new java.util.Date(2015, 6, 9)) return the wrong day of the week?
- SQL Column Numeric to DATE
Related Questions in FORMAT
- formatting path string in javascript
- Is there a data format lighter than json?
- Squid S2275 does not know about format string argument indexes
- Less beautifier - format code
- What's the Pythonic way to append to a bytearray a list?
- Java Method for Formatting Text?
- format in TCL in not working correctly
- time formatting in matlab
- Displaying mp4, avi and mov video formats inside the HTML5 app
- Truncate beginning of string with str.format
- Returning a formatted string does not working properly
- Java format integer limiting width by truncating to the right
- Select multiple columns and Set the format as Date
- Formatting equations?
- How can I subset a data frame by a specific year and two specific months?
Related Questions in TERADATA
- Declaring field to use Unicode UTF-16
- Variable set by user when running query, Teradata
- Cannot nest aggregate operations
- Can't set column name equal to variable which is determined by the user
- TERADATA - How to split a character column and keep the last token?
- All users can access DBC tables by default
- teradata get rid of hardcoded financial year date
- regex in teradata, how to pass two values in
- What is ROWS UNBOUNDED PRECEDING used for in Teradata?
- What is the equivalent of "%[^ ]%" to Teradata?
- SQL Teradata evaluation order of case when then else
- Trying to get connecting Dabase Name using java
- Teradata Convert DATE to midnight
- Sqoop Incremental Import and CURRENT_TIMESTAMP
- Subtract record from previous record within same column in teradata
Related Questions in DATE-FORMAT
- How to customize svn date format
- I want to change date-picker format as yyyy-mm-dd
- In android, Is it possible to format a date object to mm-dd-yy? If yes, then how?
- show only weekday from date
- Java Date Format in "args"
- Changing In DateTime Format
- Error 1064 ... near ':30) interval 1 week etc
- What is the Date Format for "Fri Jun 05 00:00:00 PDT 2015"
- Mysql query returning the -help menu instead of query results
- Date Format script Progress 4GL
- Java DateFormat issue on Mac vs Windows
- changing datetime to date for comparison in codeigniter
- MySQL DATE_FORMAT not correct at first week
- Qt5: date format MMM, in Spanish, remove point
- What is equivalent of strtotime in SQL?
Related Questions in CALCULATION
- Find the lowest combination of predefined numbers, which sum is higher than X
- Tableau calculated fields from 2 dimensions
- How to change value in prize list with .toFixed(2) and change point to comma?
- Removing 5 seconds from a variable in javascript
- Teradata Date calculation format issue
- TiBCO Spotfire - How to Calculate only the last 3 columns in a Data - see descr
- Add Calculation Field To Report
- Jquery divide table cell
- Conditional If Empty Statement
- Calculations with arrays with a for loop in java
- How to get a Substring from a string in C# where the string has sequential numbers?
- Ignore certain characters in an innerHTML so I can use parseInt
- Calculator height width
- Tibco Spotfire - Calculate average only if there are minimum 3 values in a column - see desc
- How to calculate scroll velocity?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
If you loaded the data from SAS and it was formatted as a DATE in SAS then it should work. You should check if your
PDAYSSUPvariable got defined asFLOATin Teradata. Try casting that variable: