Table partitioning on TIMESTAMP(3) in Teradata 13 - response (12) by AshishPatil
Hi, We are on TD 13.10. We implemented PPI on timestamp column with below syntax, CREATE SET TABLE ..... . . . UNIQUE PRIMARY INDEX ( DATASOURCE_NUM_ID ,INTEGRATION_ID ,X_ORDER_TYPE ,X_INVC_DT )...
View ArticleStatistics information retrieved in dbc for Teradata 12 - response (3) by...
Gents, Good day, we recently upgraded to a 8 or 9 node 6690 appliance and TD14, when I run the 64 bit query, I get an error on the NumValues and NumRows (expotional calculations). With a numeric...
View Articlestrtok_split_to_table support only Integer and does not support other data...
I have 2 questions regard to this function 1. Did this function able to support any Numeric and Character data type as it said in the SQL Function ... document? From the test, seem like the outkey...
View ArticleTranslate loop into Teradata Stored Procedure - response (1) by msk.khurram
Hi, Hope this will work for you! REPLACE PROCEDURE Test() BEGIN DECLARE logdate DATE; DECLARE hrinput1 INTEGER; DECLARE hrinput2 INTEGER; SET logdate = '2013-03-01'; SET hrinput1 = '0'; SET hrinput2 =...
View ArticleTransposing the data - QUERY - response (2) by indrajit_td
-- STAGE TABLE CREATE TABLE stage_tbl (ID INTEGER, change_id INTEGER, update_time TIMESTAMP(6), columnname VARCHAR(30), change_log_from VARCHAR(10), change_log_to VARCHAR(10) ) PRIMARY INDEX...
View ArticleView validity check - response (1) by ulrich
its not possible to get this info out of dbc it can change any time and maybe in 5 min the view is valid again. try the following bteq script .logon system/user,passwd; .set width 500; create volatile...
View ArticlePartition Elimination - forum topic by mikesteeves
For many years now we have seen the optimizer NOT chose partition elimination for a query when that query qualifies on a date column that is the partitioning column, UNLESS we are qualifying on a hard...
View ArticleTransposing the data - QUERY - response (3) by ulrich
Are you looking for something like select ID, change_id, update_time, substr(max(case when columnname = 'change_col_1' then cast(update_time as char(30)) ||change_log_to else null end) over (partition...
View ArticleTransposing the data - QUERY - response (4) by indrajit_td
Thank you.This is generated as the value in change_to column is erf for change_col_1 for date '2013-07-01 07:00.00.000000' - change_col_2 got changed on 2013-08-01 08:00.00.000000 from lks to txh so...
View ArticleDATABASE BACKUP - response (9) by abhishek.jadhav
Catalog will provide tape positioning info for the tables which were archived with the catalog option enabled. Also if a table was backed up using the catalog option,then only it will make its way to...
View ArticleReplace with carriage return/ line feed - forum topic by Nolan Madson
I'm trying to replace a string (" | ") with a carriage return/ line feed. The SQL I'm using is: UPDATE AML_META_COLUMN_MASTER SET TRANSFORM_RULE = REGEXP_REPLACE(TRANSFORM_RULE,' | ','0D0A'XC) WHERE...
View ArticleCHR function fails - forum topic by Nolan Madson
I'm trying to use the CHR function. Using the syntax: SELECT CHR(66); I get an error message "SELECT Failed 3706: Syntax error: expected something between '(' and the integer '66'. I assume there...
View ArticleView validity check - response (2) by Harpreet Singh
Thanks Ulrich. It got me all invalid views.
View ArticleTransposing the data - QUERY - response (5) by ulrich
you could do the same with min and the change_log_from column build two derived tables (one with the max one with the min) and join the results together and coalesce the max, min values.
View ArticleReplace with carriage return/ line feed - response (1) by msk.khurram
Hi Nolan, Try this it will solve your problem SELECT REGEXP_REPLACE('A|b','\|','0D0A'XC); In fact to replace a special character like | you have to precede it with a backslash \ character. Cheers :)...
View ArticleCHR function fails - response (2) by msk.khurram
Hi, This quesry is running fine at my end both at Bteq and SQL Assistant, and I have checked it at bother versions (13.10 & 14). Can you please paste the actual query you are trying to run in...
View Articleshow table dbc source - response (2) by rcef350
thanks for the reply. where does show table get the info if not from DBC?
View ArticleWill the STATS be useful on below kind of data? - forum topic by rajdct8q
I am new to teradata. Will the STATS be useful on below kind of data? 00000000001234561 00000000001234562 00000000001234563 00000000001234564...
View ArticleWill the STATS be useful on below kind of data? - response (1) by...
Hi , Stats would always be helpful to Optimizer as it gives the data Demographics i.e Unique values,nullabity,non nullabity in order to create the best plae time . Sampled stats are recommended when...
View Article