Why can we have UPI only when PPI column is part of PI - response (2) by...
If the column was not part of the PPI TD should check all and every partition to guarantee unicity, which has a high cost. That's why. (it's in the manuals, BTW) Cheers. Carlos.
View ArticleExperiencing Challenges with TimeStamp in Teradata - forum topic by mmbratz
I am Extraxting Data from Teradata using the two scripts below which are supposedly the same but Syntax 1) returns less than 2), i need to understand what could be causing the variance or if it's both...
View ArticleSQL question? - response (1) by dnoeth
Simply write your condition into the RANK: qualify rank() over (partition by CAD.CUST_ACCT_KEY or whatever you need order by case WHEN RCVR_TYPE_DESC = 'AAA' THEN 1 WHEN RCVR_TYPE_DESC = 'BBB' THEN 2...
View ArticleDatabase metadata getColumns() call behaviour - response (3) by awalanchal
hi We have seen this in 13.0 earlier on. But it still exist in 13.1 and 14.0. Mentioned below is time taken by getCol in two different setups. Development setup - very small database with just a few...
View ArticleCall a procedure inside another using dynamic sql - - forum topic by ganeshkim
Hi - I have req such that , i need to call a procedure inside another using dynamic sql. there is permanent table, which has procedure column, which will be loaded from java. Once it is loaded a...
View ArticleExperiencing Challenges with TimeStamp in Teradata - response (1) by dnoeth
Both conditions are not exactly the same. I assume those DATE_START/END_HIST columns are TIMESTAMPs (#2 should fail for DATEs). #1: Compares a TIMESTAMP to a DATE, resulting in the TIMESTAMP is...
View ArticleCall a procedure inside another using dynamic sql - - response (1) by dnoeth
Dynamic SQL doesn't support CALL. The only workaround is a huge CASE which list all CALLs to those different SPs. Dieter
View ArticleCall a procedure inside another using dynamic sql - - response (2) by ganeshkim
Dieter, Thanks for your response. Will work on case stmts :) Thanks.
View ArticleWhy can we have UPI only when PPI column is part of PI - response (3) by...
Hi Terasum, If you really want to check uniqueness in this case, then you can create a USI for the NUPI column(s) for the partitioned table. This would use the USI index to reduce the high cost which...
View ArticleInformation about Inverted list database - forum topic by Raja_KT
Hi, I have heard that this database can do both set and row processing. Is it true? Where I can get a document on this? Also, I feel that Teradata can also do both. Tpump has serialize option to avoid...
View ArticleOCES-3 details- - response (22) by Nishant.Bhardwaj
Hi All, Any pointers for the above pls..? Cheers! Nishant
View ArticleOCES-3 details- - response (23) by dnoeth
Hi Nishant, BMSMS: search for "nusi bit mapping" in the "Database Design" manual OCES: there was an Orange Book a few years ago on this topic, in the "SQL REquest and Transaction Processing" manual...
View ArticleBTEQ syntax with CAST embedded in SUBSTRING function - forum topic by...
Hi, I am trying to achieve something that seem trivial enough but so far all my attempts failed. I have a BTEQ session called from a Shell script, what I try to do is to create a string with a "some...
View Articleusing a Timestamp value within a dynamic sql statement - response (3) by dnoeth
Hi Bala, unless it's a different SP for every CALL you can simply pass the variables as parameters instead of Dynamic SQL: Call dbname.proc_name(v1,v2,v3,V4,V5,null,cast(v7 as varchar(24))); Dieter
View ArticleInformation about Inverted list database - response (1) by dnoeth
Hi Raja, could you please clarify your question? Inverted list = Full Text Index Set and row processing = any DBMS can do both Dieter
View ArticleBTEQ syntax with CAST embedded in SUBSTRING function - response (1) by dnoeth
I doubt it's working in SQLA, because you mix SUBSTR and SUBSTRING syntax, it's either SUBSTRING(CAST('' AS CHAR(8192)) FROM 1 FOR 256 ) or SUBSTR(CAST('' AS CHAR(8192)) , 1, 256 ) I'm not going to...
View ArticleBTEQ syntax with CAST embedded in SUBSTRING function - response (2) by...
Ok, I did not even notice that SUBSTR & SUBSTRING were behaving differently. I am new to the Teradata DB and I inherited this piece of code, I clearly did not challenged enough the existing code....
View ArticleBTEQ syntax with CAST embedded in SUBSTRING function - response (3) by...
Ok, I did not even notice that SUBSTR & SUBSTRING were behaving differently. I am new to the Teradata DB and I inherited this piece of code, I clearly did not challenged enough the existing code....
View ArticleHow to spell out numeric value in English words by select query. - forum...
Hi ALL, Can any one help me how to use Element (SP) in To_char function to spell out the number in english words? I am using TD 14 verion> Below content mentioned in TD14 doc about SP:...
View Article