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

Different text formating to decimal - response (2) by joop_kpn

We are currently still using V13.10.05.03 so the oTRANSLATE function is not present yet. The fractional part * is often different number of digits. For now I have to find a solution in string...

View Article


Search for first substring in string with condition - response (6) by ulrich

I agree with Dieter. But I also don't think this will work within the DB - at least not for the big SQL's which spann multiple lines in qrylogSQL. I use a java programm to do this which parses the SQL...

View Article


Concatenate the results - response (1) by teradatauser2

sel temp.value2,row_number() over (order by temp.value2) as rownum1 from ( sel a.Acct_Nbr || '/' ||  b.Acct_Nbr as value1 from  tduser.checking_tran1 a cross join tduser.checking_tran1 b  where...

View Article

Remove of Period '.' from my concatnated string. - response (1) by teradatauser2

you can try oreplace function. This is a user defined function in teradata

View Article

Database Maxspool - response (1) by teradatauser2

Hi, spool is only used for uers and not databases. You can create a user under another user or database.  Since databases and users are very similar in TD, that's why it might be mentioned here. I have...

View Article


UNION Vs MSR - response (12) by vasudev

Hi Dieter, Thanks for your reply. Now this came into my mind. Locking table customer for access Sel c.*,o.* from customer inner join orders on <conditions> ;Sel c.*,o.* from customer inner join...

View Article

Partition Elimination - Using Subquery Route - response (2) by teradatauser2

Hi Remi, I have a similar question, in one of my queries the PPI column value is fetched from a join to another table. like a.col1 betweeb b.col1 and b.col2. here col1 is a PPI column , but partition...

View Article

UNION Vs MSR - response (13) by dnoeth

When you read the Explain you'll easily see that your assumption is not correct. LOCKING applies to all statements within a request. Dieter

View Article


Remove of Period '.' from my concatnated string. - response (2) by dnoeth

CONCAT is not a built-in Teradata function. Instead of oREPLACE better use oTRANSLATE, both are built-in since TD14, before they have to be installed as C-UDFs by a DBA. Or concat the columns on your...

View Article


Query Tuning:PPI not being used in select - response (2) by teradatauser2

the tab2 is a table with just one row containg the date1 and date2 values.

View Article

Query Tuning:PPI not being used in select - response (3) by dnoeth

Partition elimination tries to eliminate partitions which are not used at all from a scan, but for each "tab.cola" there might be another pair of dates in tab2. Thus the best thing you might get is...

View Article

Query Tuning:PPI not being used in select - response (4) by dnoeth

If it's actually a single row table (doesn't match your join condition: on tab1.cola=tab2.colb and tab1.date1 between tab2.date1 and tab2date2) you can replace it with a view as described here:...

View Article

Query Tuning:PPI not being used in select - response (5) by teradatauser2

Hi Diether, Thanks for a quick response. 1. i was not able to understand your first answer fully. ppi is used to help in range queries as in this case. if we replace tab2.date1 and tab2date2 with some...

View Article


PPI or NUSI? - forum topic by Nishant.Bhardwaj

Hi Experts, Can you pls  give your suggestions for the below requirement--> Requirement-->  There is a table which would be having history of 24 months of data at any point of time.  there is a...

View Article

UNION Vs MSR - response (15) by vasudev

Hi Dieter, Thanks for the reply. This means that, Customer table is locked for access and order table is locked for read.  Having one more doubt, if this is the case in the first question i mentioned...

View Article


How do i create a full anonymous procedure (one-time execution from unix) -...

Hallo, I would like to run a unix shell script, which starts a bteq script to create a anonymous procedure in teradata. I would like to have the options available in stored procedures, but on a onetime...

View Article

How do i create a full anonymous procedure (one-time execution from unix) -...

The concept of "anonymous blocks" doesn't exist in Teradata. Why do you think you need it? You need to talk to your DBA, he might grant you the neccessary rights, good luck :-) Btw, you might be able...

View Article


UNION Vs MSR - response (16) by dnoeth

When you read the Explain you'll easily see that your assumption is correct. I'd suggest start reading manuals and explains: SQL Data Manipulation Language Chapter 3: Statement Syntax LOCKING Request...

View Article

PPI or NUSI? - response (1) by dnoeth

If you add a yr_mon column you probably keep your date column resulting in doubling the diskspace, 4 (date) -> 8 (date+int) bytes. If users want to access a year they still have to write a condition...

View Article

UNION Vs MSR - response (17) by vasudev

Thank you very much Dieter, Got clarfied and started reading the DML document. 

View Article
Browsing all 14773 articles
Browse latest View live