Compare 3 Consecutive rows in a table - topic by eosphorus
Hi I have an interesting problem. I Have an Employee Table AS Follows read more
View ArticleHow to use TPT for loading all the fields of a file in a single column in a...
Urgent help required please.
View ArticleHow to write (CURRENT DATE - 1 YEAR) in teradata? - response (3) by Mathuram
Hi Carlosal I wil accept you, in somecases using INTERVAL provides only error, so using ADD_MONTHS is best at all times. Thanks
View ArticleUSI in multiload - response (8) by cheeli
Hi All, Just a small clarification. Why the subtable of the USI is directed to another AMP, instead it could be had in the same AMP as that of NUSI, which could increase performance (although the...
View ArticleCompare 3 Consecutive rows in a table - response (3) by dnoeth
This is a direct translation of your narrative, it will return 'Y' starting with the 3rd consecutive row: CASE WHEN salary = MIN(salary) OVER (PARTITION BY employee_id ORDER BY pay_period ROWS BETWEEN...
View ArticleSQL Query Tunning - response (3) by dnoeth
Hi Mahesh, could you show the exact DDL (but at least the index definition), EXPLAIN and statistics? And some more info about usage, is the value passed to B.Login a parameter? Dieter
View ArticleUSI in multiload - response (9) by dnoeth
Hi Cheeli, you're right, the access from USI row to base row would be faster when it's within the same AMP. But this is only the step #2, as a first step you would need to do a broadcast to all AMPs in...
View ArticleCollect Stats - How Performance gets improved? - response (16) by ratnamch
i have a table one columuns ? ename aravindh bargav chendu dsnunjay eswar ferooj ganesh hari iliaj jersy kalyan but i want to starting ename leter (a to f) details how to retrive the data? 1.hoe to...
View ArticleSQL Query Tunning - response (4) by Jessy Mahesh Kothapalli
Dear Dieter, Please find the below mentioned details , Kindly let me know if you required any info for same --SHOW W_PARTY_PER_D UNIQUE PRIMARY INDEX ( ROW_WID ) UNIQUE INDEX W_PARTY_PER_D_U1 (...
View ArticleSQL Query Tunning - response (5) by dnoeth
Hi Mahesh, I did proper tuning like collect stats and seconday index creation as per required columns Some remarks: - None of the existing indexes will be useful for this query. - Looks like a data...
View Articlehow to write Year(Date(Days({fn CURDATE()})-32)) in Teradata - topic by...
Hi, Can anyone help me in converting this : read more
View Articlehow to write Year(Date(Days({fn CURDATE()})-32)) in Teradata - response (1)...
Probably: extract(year from current_date - 32) Dieter
View Articlehow to write Year(Date(Days({fn CURDATE()})-32)) in Teradata - response (2)...
If you want to extract year from the date - 32 days then this is the query SELECT EXTRACT(YEAR FROM (CURRENT_DATE - INTERVAL '32' DAY))
View ArticleCompare 3 Consecutive rows in a table - response (4) by eosphorus
Dieter, Thanks a lot. This was exactly what I was looking for!
View ArticleHow does "interval 'n' month" work? - topic by whitestorm2k
Hi All, The result of running "sel add_months(date '2011-03-31',-1);" will be : "2011-02-28". But the result fo running "sel date '2011-03-31' - interval '1' month;" will be "2665: Invalid date"....
View ArticleSQL Query Tunning - response (6) by Jessy Mahesh Kothapalli
Dear Dieter, Thank you so much , Simply superb, Now it is running with in 2seconds. Any how we are using Tpump utility for daily ETL loads for these tables ( W_PARTY_PER_D A,WC_USER_D B, W_PARTY_ORG_D)...
View ArticleHow does "interval 'n' month" work? - response (1) by CarlosAL
Intervals are intervals: they are 'irrespective' with dates. In TD (and in other RDBMS's, like Oracle) if you add (or substract) intervals to dates (as in your example) the result will be pure...
View ArticleHow to use TPT for loading all the fields of a file in a single column in a...
Probably if you skip the textDelimeter, it will pick the row as one column and insert the data into your desired column. Don't have tpt installed so can't test.
View ArticleError: "3927: Response Parcel requested a max byte count less than 256" -...
HI, I have just started using Teradata. I am trying to create a simple Stored Procedure in Teradata 12 server machine in SQL Assiatance using 'dbadmin' user, but i am getting the below error message:...
View ArticleHow to create a database in Teradata - response (4) by seahawkmehta
Hi I am just biginner to teradata. I want to ask u that while creating a new database in teradata why we put "from" clauses in it.
View Article