Best way to generate the Sequential numbers : CSUM or IDENTITY columns? -...
Hi Nishant, any IDENTITY/system-maintained sequence may result in gaps (due to restarts or rollbacks), but in Teradata it's not one sequence it's multiple parallel sequences, thus there are always...
View ArticleDynamic Column Name - response (2) by dnoeth
Names must be enclosed in double quotes, " instead of ', but it's still not working, there are no dynamic names in Teradata. Why do you need that dynamic name just for output? Can't you simply use...
View ArticleMLOAD DELETE TASK - response (3) by dnoeth
Hi Suhail, there is a delete using the PI in MLoad, it's just called IMPORT :-) And within an IMPORT you must use the PI. Dieter
View ArticleTable Header - response (1) by dnoeth
Hi Mack, yes, the table header is stored on each AMP, it's exactly the same for each AMP, thus the the limit is 1MB per AMP. And yes, all column info plus PI, partitioning, compress, etc. info is also...
View Article¿Alternatives to increase the performance of this query? - response (9) by...
Hi , We are getting different behaviour while firing same query multiple times on database. Every time its takes different time to execute. First it took 2 min then 5 min then 15 min. its increasing....
View ArticleMulti-Value compression has increased the table size - response (22) by...
Hi, Can you please help me with an update if above concern looks meaningful. Regards,
View Articlefastload - response (4) by rajeev saravanan
Hi , As per my understanding the fastload has 2 phases begin loading and end loading, now where is the data stored at the end of the begin loading phase in case of multifile load i have noticed that...
View ArticleError 2803 Secondary index uniqueness violation error utf-8 impact? -...
Hi there, probably this explains the problem CREATE MULTISET TABLE test.geo_dim2 ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT, DEFAULT MERGEBLOCKRATIO (...
View ArticleNo More Spool Space.... on which AMP? - forum topic by knowledge
Hi, there is a view that is made from 6 views joined and so on... the result is the error No More Spool Space (Spool limit is 200 GB) and the Peak Spool is 30 GB for 800000 rows there are 42 AMP (4,8...
View Articlefind the min & max value for the below query - response (4) by Gowtham
dieter, there is no values like '8Month', here i have changed the datas and column names but the scenario is same. for pil1 i want the matched value, if not then i want the immediate lesser value as...
View ArticleDynamic Column Name - response (3) by saurabhkamath
Thanks Dieter actually I am looking for a view that calculates Revenue for the last 2 years. so i need coulmns in this fashion Revenue-201304 Revenue-201303 Revenue-201302 Revenue-201301 so on for...
View ArticleHow can I avoid using a Union statement here? - forum topic by dsldsl1980
I want two seperate rollups of the data but I do not want to display every rollup. IE: Data: Group1 Group2 Sales 1 2 $100 1 3 $50 1...
View Articlefind the min & max value for the below query - response (5) by dnoeth
Ok, what is the actual data type? Is it possible to compare '1Year' to '8Month'? Is the query you posted anything you actually use? Why is it so complicated to post some actual DDL and data? Dieter
View ArticleHow can I avoid using a Union statement here? - response (1) by dnoeth
What is the query to create this output? Are you using ROLLUP? Then of course you could apply some filter in HAVING like HAVING (Group1 in (1) or sales = 250) Dieter
View ArticleDynamic Sql in stored Procedure - forum topic by choppadandi
Hello ALL, Is it possible to give host variables in slection list in dynamic sql in stored procedure. For ex: select :Col1 , :Col2 from :database.tablename where source_system = : col3' for our...
View ArticleDynamic Column Name - response (4) by dnoeth
There are no dynamic column names unless you REPLACE the view. And you should do a SUM(CASE...) to get all the different months in a single row. Dieter
View ArticleConnecting Teradata and MS SQL sources - response (1) by jedler
The problem was solved using the ADO.NET driver for the TD source.
View ArticleOracle LAG function in TD - forum topic by amitbajpai
We are facing issue in converting the Oracle LAG function in the Oracle query to TD. How can we replicate the functionality of Oracle LAG function in TD? Reference to the Oracle LAG function -...
View ArticleSELECT Failed 3504: Selected non-aggregate values must be part of the...
I am not sure why an erorr message is occurring in my query. What am I doing wrong? SELECT SUM(MEM_COUNT) MBR_MNTH, P1_MBRMTH FROM ( SELECT COUNT (MB.MB_JOIN_KEY) MEM_COUNT, CASE WHEN MB.EFF_BEG_DT...
View ArticleOracle LAG function in TD - response (1) by dnoeth
LAG/LEAD is just a short-cut: LAG(col,x,val) OVER (ORDER BY col2) = COALESCE(MIN(col) OVER (ORDER BY col2 ROWS BETWEEN x PRECEDING AND x PRECEDING) , val)For LEAD replace PRECEDING with FOLLOWING. Dieter
View Article