Getting a dynamic Sample - response (2) by smull
Hi Dieter....thanks for the reply. The number of CommunicationIds will not be known. It too will vary each evening. What I mean by Max and Min is: if there are only say 10 customers for one...
View ArticleGetting a dynamic Sample - response (3) by dnoeth
How large is this table? OLAP functions are more expensive than RANDOM or SAMPLE but you could do it like this: SELECT * FROM tab QUALIFY ROW_NUMBER() OVER (PARTITION BY communication_id ORDER BY...
View Articledropping partition statistics - topic by JustMe
Hello, I am attempting to alter a table by adding ranges to the partition. I cannot do this because statistics exist on the partition. I have tried: drop statistics on <databasename.tablename>...
View Articledropping partition statistics - response (1) by KS42982
Do you get error while running DROP STATS statements that you mentioned or you could run that statements successfully but still not able to alter a table to add range because of some stats are still...
View ArticleDifference between Create table Statements - response (2) by KS42982
Hi Dieter, I have experienced (lot of times) that if I follow the method 1 as AnandC mentioned then data gets inserted so fast than if I follow the method 2. I always tried with permanent tables...
View Articledropping partition statistics - response (2) by JustMe
I'm sorry. The DROP STATS statements executed successfully. The attempt to alter the table to add partitions errored out. However, I found the problem. The partitions was included in a multi-column...
View ArticleUse of a Primary Index - response (13) by Sudheerkunapuli
Which statement is true about a Primary Index operation in Teradata? a. recommend Secondary Indexes for a table b. compare performance of multiple workloads c. emulate a workload on a test system...
View ArticleDifference between Create table Statements - response (3) by dnoeth
Did you check the actual resource usage in DBQL? Whenever i did it was the same CPU/IOs for both versions. Of course, there might be differences, but in most cases it could be explained by SET vs....
View ArticleTable partitioning on TIMESTAMP(3) in Teradata 13 - response (6) by SANJI
CREATE TABLE SSURI.PPI_TEST (TRACKINGNUM INTEGER, AUD_TIME TIMESTAMP) PRIMARY INDEX PPI_TEST_PR (TRACKINGNUM) PARTITION BY RANGE_N(CAST((AUD_TIME) AS DATE AT LOCAL) BETWEEN '2009-12-31' AND...
View ArticleDifference between Create table Statements - response (4) by anandc
Thanks very much for the infromation Dieter.. As you mentioned, I am going to use the CREATE tables in huge stored procedures and there are going to be atleast 50 volatile tables created and dropped...
View ArticleDifference between Create table Statements - response (5) by KS42982
I am afraid to say that I do not get almost similar explain in both the cases. Here is the example. I am trying to insert data from table 1 to table 2. Table 1 is a multiset table. There are around 90...
View ArticleDifference between Create table Statements - response (6) by Adeel Chaudhry
The only difference is that .... in option 1 you have a leverage to tweak/select (correct) index. I have seen scenarios where option 2 takes hours to process data .... and if you go with option 1 and...
View ArticleDifference between Create table Statements - response (7) by dnoeth
Adeel is right,check the PIs of both table, they are different, in the second case it was exactly the same as the source table :-)A wrong PI or default SET instead of MULTISET are the common reasons...
View ArticleTable partitioning on TIMESTAMP(3) in Teradata 13 - response (7) by Adeel...
Can be done using follows: PARTITION BY RANGE_N(ts1 BETWEEN TIMESTAMP '0001-01-01 00:00:00.000000+00:00' AND TIMESTAMP '9999-12-31 23:23:59.999999+00:00' EACH INTERVAL '1' DAY); HTH!
View ArticleWill volatile tables be dropped? - response (7) by Adeel Chaudhry
Are you using dynamic SQL to create VTs?
View ArticleSybase To Teradata..... - response (1) by Adeel Chaudhry
Thorough analysis and documentation should be done on them and depending on the available skill-set .... the logic should be transformed either to a SP in Teradata (most of the cases) or for a few...
View ArticleFastLoad And Query Access - response (1) by Adeel Chaudhry
No it is not possible. Whereas, normally table is dropped and created within a FL script. HTH!
View ArticleTable partitioning on TIMESTAMP(3) in Teradata 13 - response (8) by dnoeth
Lets's recap :-)TD13: not possibleTD13.10: Sanjeev's versionTD14: Adeel's versionDieter
View ArticleFastLoad And Query Access - response (2) by dnoeth
Of course it's possible, but the probability is low.The DELETE is a SQL DELETE setting a WRITE lock, which is released after the commit. Then FastLoad submits the BEGIN LOAD to set the FastLoad lock.A...
View Article