Quantcast
Channel: Teradata Forums - Database
Browsing all 14773 articles
Browse latest View live

PPI - response (30) by dwtech

Just reading about the fact regarding the upi and nupi index in the ppi table  There are two cases possible:  1. Partition index and primary index are same.  2. Partition index is not the part of PI....

View Article


Questions regarding Aggregate Join Index - forum topic by addsmiles

Dear All, We are on TD 13 and want to create an AJI, however the number of columns we need to include exceeds the 64 column limit.  Can the gurus help me with some suggestions on the ways around this?...

View Article


Changing Phone Number Format - forum topic by ciw916

Hello,  I have some code that I wrote that joins 2 separate tables:  SELECT A.*, B.MTN_1  FROM TABLE_1 AS A  JOIN TABLE_2 AS B ON A.ACCT_NUM=B.ACCT_NUM  WHERE A.MTN=B.MTN_1  The only problem is, MTN_1...

View Article

Sliding Window Syntax - forum topic by johnajorgensen@yahoo.com

I am not positive this is a sliding window problem, but it is my best guess. I would like to show the current rows values and the next row, on the same output record, and then advance to the next recor...

View Article

New staff puzzle about row process、set process、cursor process - forum topic...

hi,  i'm a new staff of teradata now i'm preparing for the first exam in the book <<introduction>> ,chapter "evolution of data processing" i can't understand the concept of "row process、set...

View Article


Sliding Window Syntax - response (1) by dnoeth

Hi John, LEAD and LAG are just shortcuts for a basic OLAP function: select id, yr, value, min(yr) over (partition by id order by yr rows between 1 following and 1 following) as next_yr, -- Oracle's LAG...

View Article

Value ordered NUSI - response (1) by rajeev saravanan

Hi, NUSI is always an all amp operation but not a full table scan. So it will first ask the subtables on all the amps and querying this subtable based on a non eqality condition as it is in the case...

View Article

Changing Phone Number Format - response (1) by mohan.mscss

Try with the below,  sel * from mkformat_1 A join mkformat_2 B on (cast(A.mtn as bigint) (format '999-999-9999')) (varchar(20)) = B.mtnRegards, Mohan

View Article


Sliding Window Syntax - response (2) by johnajorgensen@yahoo.com

Thanks a lot, Dieter.  Exactly what I was looking for.  And now that I have a context, some of the manual in Chpt 11 actually makes sense to me :-)  Appreciate your help. John

View Article


Changing Phone Number Format - response (2) by KS42982

You can also try something like as it the phone number and lenght is going to be the same all the time - SELECT CAST((SUBSTR('999-999-9999',1,3) || SUBSTR('999-999-9999',5,3) ||...

View Article

Questions regarding Aggregate Join Index - response (1) by KS42982

We had a similar kind of issue couple of years ago. What we did was something like vertical partitioning of the table. Meaning, created another table with the same keys and remaining columns that we...

View Article

INFORMATICA USES SECONDARY INDEXES? - response (3) by hagedorn

How about an UPDATE TPT process workflow? Will it utilize SI if they are created over the columns in the where clause?

View Article

Questions regarding Aggregate Join Index - response (2) by VandeBergB

You can build two JI's to "vertically partition" as KS suggested.  Your explain plan should show a join between the JI's without even accessing the underlying tables, if you've got it built up correctly.

View Article


Load clm with 12 hour time format - forum topic by balu_td

Hi I need to load a file using mload where  the load clm has a data like this 03/29/2013 12:00:00 PM. select cast(cast('03/29/2013 12:00:00 PM' as timestamp(0) format 'MM/DD/YYYYBHH:MI:SSBT') as...

View Article

Load clm with 12 hour time format - response (1) by KS42982

What if you remove the cast of varchar ? Like, SELECT CAST('03/29/2013 12:00:00 PM' AS TIMESTAMP(0) FORMAT 'MM/DD/YYYYBHH:MI:SSBT')

View Article


Reset rank when date interval exceeds limit - forum topic by Dolm

I've been bashing my brain against this and can't find a way to rank rows that works, though I'm sure this should be pretty simple.  What I'm needing to do is reset rank when the interval between the...

View Article

Reset rank when date interval exceeds limit - response (1) by Dolm

I may have found a a solution with the following, this appears to rank the way I wantd. Could someone sanity-check this for me?   RANK() OVER( PARTITION BY ID ORDER BY "DATE" RESET WHEN (cast("date" as...

View Article


Value ordered NUSI - response (2) by Moutusi

  Hi Rajeev, Thanks for reply. NUSI sub-tables are AMP local and not hash distributed. Now if the values of the NUSI column in a particular range is located indifferent AMPs, in that case how value...

View Article

Value ordered NUSI - response (3) by rajeev saravanan

Hi Moutashi, As i said first all NUSI operations are all amp be it value ordered or non the advantage lies in reading the data out of subtable. Terdata works in parallel so it doesnt matter if data are...

View Article

selecting values from a table where max value is null - forum topic by mithunk

I have to select rows from the table where col1=max(col1). Here if the max(col1) is null, i dont get results because NULL cannot be compared as far as i know. Temporarily i have used...

View Article
Browsing all 14773 articles
Browse latest View live


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