Quantcast
Browsing all 14773 articles
Browse latest View live

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 Article


Statistics 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 Article


strtok_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 Article

Translate 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 Article

Transposing 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 Article


View 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 Article

Partition 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 Article

Transposing 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 Article


Transposing 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 Article


DATABASE 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 Article

Replace 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 Article

CHR 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 Article

CHR function fails - response (1) by Harpreet Singh

Are you using TD14?

View Article


View validity check - response (2) by Harpreet Singh

Thanks Ulrich. It got me all invalid views.

View Article

Transposing 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 Article


Replace 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 Article

CHR 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 Article


show table dbc source - response (2) by rcef350

thanks for the reply.  where does show table get the info if not from DBC?

View Article

Will 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 Article

Will 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
Browsing all 14773 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>