Quantcast
Browsing all 14773 articles
Browse latest View live

Teradata database restart? - response (6) by ToddAWalter

Yes. Performance degradation only between the two restarts of course.

View Article


What's the quickest way to find out all the values under an attributes -...

Dieter thanks alot. Found your another Post where you have explained it all!  Great!

View Article


To check ALL condition in Teradata - forum topic by pavan.polish

Hi All, I have a below requirement:- Table1:- GROUP_ID - MEMBER_ID A - A A - B A - C M - M M - N M - O X - X X - Y X - Z Table2:- MEMBER_ID - MEMBER_FLAG A - Y B - Y C - Y M - Y N - ? O - Y X - N Y - N...

View Article

Forming Groups which are circular in nature - response (2) by pavan.polish

Hi Dieter, Based on some business conditions the starting point can be decided. In this case, assuming starting point as A to check further. Sagar.

View Article

USI VS NUSI - forum topic by dsnaveen

Hi Guys, Can please someone let  me know in which scenario we need to use USI and NUSI. 1 or 2 example would be great.  Thank you, Naveen Forums: Database

View Article


To check ALL condition in Teradata - response (1) by dnoeth

Hi Sagar, simply add: SELECT .... QUALIFY MIN(MEMBER_FLAG) OVER (PARTITION BY GROUP_ID) = 'Y' AND MIN(MEMBER_FLAG) OVER (PARTITION BY GROUP_ID) = MAX(MEMBER_FLAG) OVER (PARTITION BY GROUP_ID) Dieter 

View Article

Forming Groups which are circular in nature - response (3) by dnoeth

Hi Sagar, for me assumimg is easy, but it's hard for SQL :-) There must be a SQL-condition to find the starting point.  Dieter

View Article

USI VS NUSI - response (1) by dnoeth

Hi Naveen, SIs in Teradata are rarely used for Joins (different to other DBMSes), so they're usually implemented to get a faster (index-based) access (this is the same in any other DBMS). As you can't...

View Article


To check ALL condition in Teradata - response (2) by pavan.polish

Hi Dieter, Many thanks for your inputs and it worked well for the said scenario. I got the data like below:- GROUP_ID - MEMBER_ID - MEMBER_FLAG M - M - N M - N - N M - O - N X - X - Y X - Y - N X - Z -...

View Article


To check ALL condition in Teradata - response (3) by dnoeth

Hi Sagar, this QUALIFY will return only group M. If not, you did something wrong, so better show your actual query.  Dieter

View Article

Immediately exit a query if a condition is verified - response (13) by...

You can use the EXISTS clause as follows:  SELECT * FROM    a_really_big_table WHERE EXISTS           (SELECT day_of_week                FROM sys_calendar.calendar               WHERE day_of_week = 2...

View Article

Remove FALLBACK option and Data from FALLBACK AMP - response (3) by teraforsk

Views/macros donot require perm space and their defination is just store in DD. I dont thing it really makes sense to have fallback/No Fallback for Views and Macros.

View Article

Issue with Rank/row_number in table - forum topic by adash-7422

Hi   I have a table with 19 M records and we are using row_number to get ranks on 10/11 cols. Something like:  row_number () over (partition by cola,colb,colc,cold  order by col1 desc) rank1,...

View Article


Issue with Rank/row_number in table - response (1) by dnoeth

Each RANK will be a seperate step in explain and each step will spool all the rows twice.  What datatypes are the PARTITION/ORDER BY columns? VARCHARs are expanded to CHARs in that case, this might...

View Article

Compiling UDFs Migration from TD13 to TD14 - response (1) by shershahkhan

Hi, I don't have answer to your question but just wanted to check how did the migration go overall? I am PLanning for migration from TD13.1 to TD14.1 so wanted to check is there any issues that you...

View Article


help me to group the records - forum topic by Gowtham

help me to group the records as the resultset given below.TableID TYPE STDT ENDT 1 A 1Aug 10Aug 1 A 11Aug 20Aug 2 B 21Aug 30Aug 2 B 31Aug 9Sep 1 A 10Sep 20SepBelow is the expected resultsetID TYPE STDT...

View Article

help me to group the records - response (1) by chinmay Athavale

sel ID,TYPE,MIN(STDT),MAX(ENDT)FROM TABLE GROUP BY 1,2 Regards, Chinmay Athavale 

View Article


help me to group the records - response (2) by Gowtham

Hi chinmay, your query is wrong, check my expected result...

View Article

help me to group the records - response (3) by Gowtham

Hi chinmay, your query is wrong, check my expected result...

View Article

help me to group the records - response (4) by Gowtham

Chinmay, for same id and type I want different stdt and endt, we cannot groupby directly.

View Article
Browsing all 14773 articles
Browse latest View live