Macro Metadata Log Table - response (8) by Raja_KT
Ok thanks and now that you have seen, you can implement the way according to your convenience. Cheers, Raja
View ArticleSQL to transpose (row to column) any level (nth level) of data - response (6)...
Thanks for your reply, but when I will have a dataset like below : Tgt Src lvl ============ ============ ==== L4_Tab1.Col1 L3_Tab2.Col3 0 L4_Tab1.Col4 L3_Tab2.Col1 0 L4_Tab1.Col2 L3_Tab1.Col2 0...
View ArticleStoring result set as a variable in a procedure - response (3) by akhilkotak
Hi, Thank you for your reply. I have got a cursor working, but currently it does it stop at the end of the result set. It ends up stuck in the loop and repeatedly processes the last row of the column...
View ArticleSyntax error: expected something between '(' and the 'current_date' keyword....
I am faceing the below for my query. If i run the bold query separately it is running correct. Error : Syntax error: expected something between '(' and the 'current_date' keyword. select s22.wk_dt...
View ArticleSyntax error: expected something between '(' and the 'current_date' keyword....
There's no dayofweek function in SQL, you probably run this query from SQL Assistant using ODBC and the ODBC driver replaced it with valid Teradata SQL, but this is not done in Derived Tables or View...
View ArticleHow to grant UPDATE to DBC on DBC.IDCol Tables? - forum topic by Kawish_Siddiqui
I was reading an older post (http://forums.teradata.com/forum/database/reset-identity-column-counter) and concluded that somehow Update is possible for DBC tables (DBC.IdCol). I've come-up with...
View ArticleCollect stats doubt - forum topic by tigerjgd
Hello all, In which case we go for multi column stats . when we have a clause where table1.id=table2.id1 and table1.flag=table2.flag1 -- here we can seperately collect stats on flag and id. There is...
View ArticleCollect stats doubt - response (1) by Raja_KT
Hi Aravind, This link maybe old but it gives vivid explanation why indexes are used. Statistics are collected for the goal of performance. We need to be careful when we choose columns for collect...
View ArticleRESERVED WORDS: Query to identify reserved words in procedure - forum topic...
Hello Masters, As part of 14.10 upgrade, we need to find the whether reserved words are used in any procedures. I know We can find from DBQL logs or need to manually find the reserved word in each...
View ArticleRESERVED WORDS: Query to identify reserved words in procedure - response (1)...
Hi Reddy, For now I can think of is take show procedure for all procs into a file. Then I will match through some programs either unix(my favourite :)) or excel progamming against values from...
View ArticleSkewed Query - response (3) by tigerjgd
use the below query and identify the PI has skew or now. Or when u join whe column which is getting redistributed or duplicated has skew or not. sel hashamp(hashbucket(hashrow(<PI columns>))),...
View ArticleCollect stats doubt - response (2) by M.Saeed Khurram
Hi Tiger, There are two recomnedations to collect multicolumn stats: When the columns are being used in condition or in join condition together When there is a NUSI defined comprising of multiple...
View ArticleCollect stats doubt - response (4) by tigerjgd
thanks both for your replies.. @saeed --> i understood your second point. But i differ in the 1st , i , i have seen even if the join conditions are together, collecting single column stats use to...
View ArticleHow to grant UPDATE to DBC on DBC.IDCol Tables? - response (1) by M.Saeed...
Kawish, Can you please explain what do you want to achieve, as discussed in the post you mentioned, you can either recycle the Identity, Or you can use START WITH, INCREMENT BY, MINMUM VALUE, options...
View ArticleCollect stats doubt - response (5) by M.Saeed Khurram
Tiger, It is just a recomendation I found in TD docs. It is good that you are getting the same estimates in both cases, But It is recomeneded that when you are using the columns together in equality...
View ArticleHow to grant UPDATE to DBC on DBC.IDCol Tables? - response (2) by Raja_KT
Hi Kawish, It is a riddle now for me since you connect with DBC and you get an error. I am not sure, however when I run this query: SELECT * FROM DBC.AllRightsV where tablename='IDCol';, I got the...
View Articlevproc types - forum topic by Raja_KT
Hi, I can see 7 vproc types(columns..I mean) in DBC.ResUsageIpma? As far as I know, we have only 6 types. May I know what is the 7th one? Thanks and regards, RajaForums: Database
View Articlehelp required for a update scenario - forum topic by sujiwarrier
Hi, We have a customer group with some customer under it with different product. Need to update a value for below scenario. C1,C2 and C3 are from same customer group. Always qty<>cal_qty for C2...
View Articlefind Percentage - forum topic by Zodiak
How do I find percentage This is not working Can anyone suggest? SELECT DISTINCT a.apple, (CAST((Count(a.apple))/ (SELECT count(a.apple) from a) *100 AS DECIMAL (15,2) )) AS percentage FROM a GROUP BY...
View Article