Quantcast
Channel: Teradata Forums - Database
Browsing all 14773 articles
Browse latest View live

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 Article


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


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

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

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


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

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

Call a procedure inside another using dynamic sql - - response (2) by ganeshkim

Dieter, Thanks for your response. Will work on case stmts :) Thanks.

View Article


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


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

selected non-aggregate values must be part of the associated group - response...

Thanks :)

View Article

OCES-3 details- - response (22) by Nishant.Bhardwaj

Hi All, Any pointers for the above pls..? Cheers! Nishant

View Article

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


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

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


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

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


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

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

How 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
Browsing all 14773 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>