Help with syntax for summing a columns having distinct values in another...
Hi, I'm new here and hoping to find some help. My query currently retrieves 'last_thirteen_wk_sales' by 'ITEM_ID' and 'LOCN_NBR'. I want to change it so it will SUM 'last_thirteen_wk_ sales' by...
View ArticleCreating a new secondary index on table - forum topic by teradatauser2
Hi, One user is asking to create a secondary index on a column of a table. I created a test table and tested it, it shows good result. But , before creating a secondary index, i need to do an analysis...
View ArticleHow we can find the No of AMP'S for the teradata Database - response (4) by...
MaxAMPWorkerTasks can be found from DBS Control utility. Its Internal Field 4 4. MaxAMPWorkerTasks
View Article3939 there is a mismatch between the number of parameters specified and the...
hi, I just tried it in the normal SQL, Hope this helps to you! sel a, rank(a) from (sel (add_months(dob,-24) (format 'yyyymm'))(varchar(6)) a from tb_name where dob between...
View ArticleNeed Help on two questions about TD architecture - response (6) by dnoeth
Hi Santanu, there are a lot of wrong answers to those questions found on the internet, e.g. one of the first hits on Google is usually a PDF from testpassport for TE0-121, more than 75% of the proposed...
View ArticleCreating a new secondary index on table - response (1) by Shrinivas.Sagare
If you have DBQL Object Logging enabled then you can check it in DBC.DBQLObjTbl under column TypeOfUse.
View ArticleType of Lock During a Multiple statement Request- - forum topic by...
Hi all, I have a doubt related to the type of locks during processing the no. of statements in a MSR,just want to clear it. for eg- BT INSERT INTO <tab_C> SELeCt.... ; --statement 1 UPDATE...
View ArticlePermanent Journals - response (11) by Nishant.Bhardwaj
hi all, I have a doubt related to the discussion above that is one permanent journal table is defined for the full db or it is defined per table or for multiple tables.. ? Also Dieter/Leo can u pls...
View ArticlePermanent Journals - response (12) by dnoeth
Hi Nishant, there might be one PJ in each database/user. Any table in any database might use any PJ, it's up to you how you set it up. Usually tables within a database use the same PJ. An overview on...
View ArticleType of Lock During a Multiple statement Request- - response (1) by dnoeth
Hi Nishant, within a transaction locks may be upgraded, but never downgraded. In your case the 1st statement will place a write lock and statements #2 and #3 don't need to set an additional lock. If...
View ArticleTraining - forum topic by sankar.suneetha
good online Training institue?Forums: Database
View ArticleSecondary indexes - response (3) by Prem
How is the table size? Frequency of insert to the table?...If this is a small table table size (or) frequency of insert doesn't matter much for this issue. From the above sentences I can say you are...
View ArticleArcmain - response (1) by Prem
Arcmain supports four ways of archive: a) All AMP b) Parallel all AMP c) Cluster d) MultiStream Use of above methods is purely based on the BAR toplogy.In the recent versions of Teradata we use...
View ArticleFallback - response (8) by Nishant.Bhardwaj
Hi all, Based on the discusson above...I understand that Permanent Journals and Fallback are independent of each other .There is no dependency as such on each other.... i.e a) we can have P.J with...
View ArticleType of Lock During a Multiple statement Request- - response (2) by...
Thanks Dieter for your pefect response.. Just want to know the difference in type of lock applied at statement 3 in MSR vs BT ET .. In BT ET, i understand it would be WRITE Lock at statement 3 and...
View ArticleJoining Strategy- - forum topic by Nishant.Bhardwaj
Hi all, I was looking at the various Joining strategies followed by TD optimizer like a) MERGE Join b) HASh Join c) Nested Join d) Exclusion Join e) Product Join when we think in terms of spool usage...
View ArticleDifference between Merge and Update statements - forum topic by sudhakarptom
Hi Experts, We have observed that the MERGE statement is causing row re-distribution across all the AMPS even though we have the same PI defined at the Source and Target tables. It seems that some kind...
View ArticleType of Lock During a Multiple statement Request- - response (3) by dnoeth
Hi Nishant, in both cases it's a write lock, because a write lock "includes" a read lock and the most restrictive lock is set at the beginning of the request. Just Explain the MSR... Dieter
View ArticleJoining Strategy- - response (1) by dnoeth
Hi Nishant, yes, the Nested Join might need no spool, but it's for joining a single row (or a very small set of data). There are several subtypes of Nested Joins with differnt plans, you'll find more...
View Article