Quantcast
Browsing all 14773 articles
Browse latest View live

find the min & max value for the below query - response (3) by dnoeth

When you actually have values like '8Month' and this is supposed to be less than '1Year' you should strongly consider changing your data model. i wouldn't want to write a parsing routine to define...

View Article


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 Article


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

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

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

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

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


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


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

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

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

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


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

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


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

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


Oracle 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

No More Spool Space.... on which AMP? - response (1) by goldminer

Just out of curiosity.... why do you need to know which AMP?  Is it to determine null values?

View Article

How can I avoid using a Union statement here? - response (2) by dsldsl1980

the data above is base data.  I do not have a query to return those results yet.  The issue I am having is I am not able to filter on sales because the values will change.  I have tried rollup and...

View Article
Browsing all 14773 articles
Browse latest View live