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

Condition for generating NULL - response (4) by dnoeth

Hi Eliot, ACOS will return NULL only for NULL as input value, but when the value is out of the valid range there should be a 5585 error. So this seems to be a bug, the optimizer doesn't actually...

View Article


Selecting duplicate records from a table - Complete record and not just the...

Hi ,  Thanks for your response. Yes, the query is a little overstated and thanks for simplifying it. Please find the complete query that i was running below. I have  total of 15 columns and the...

View Article


Find table size and last access date - forum topic by rbearley

Hello, I am still learning TD so I apologize if this is an 'easy' one. I need the following information so I can see if there are any old tables I can drop to reclaim space. I think I need to join...

View Article

Special Characters in Teradata - response (8) by dnoeth

@Khurram: AFAIK regular expressions in Teradata are based on the PCRE open source library: http://en.wikipedia.org/wiki/PCRE There are lots of books and online tutorials for regular expressions:...

View Article

Selecting duplicate records from a table - Complete record and not just the...

You said those columns are the Primary Key of the table, but there might be some NULLs in it? This would result in returning less rows.  Dieter

View Article


Find table size and last access date - response (1) by dnoeth

What do you mean by "issues"? You should simply join on (DatabaseName, TableName).  Dieter

View Article

Stored Procedure: Validating Volatile Table Output Names - forum topic by...

I have a stored procedure with a call like this: REPLACE PROCEDURE databasename.ProcedureName (    IN  tblInput1   VARCHAR(300) NOT CS,  IN  tblInput2   VARCHAR(300) NOT CS,  IN  tblOUTPUT...

View Article

Volatile Table Use, Scope, & Ownership within Stored Procedures - response...

I have found a way to dynamically name the tables within the procedure which will reduce the likelihood of such conflicts.  However, I am still not clear out how to structure the continue handler with...

View Article


Selecting duplicate records from a table - Complete record and not just the...

Yes, that's right. I have verified the data in the table and could see that one or more columns (GR,GI,OE,LOE,OBE,CLD) are having NULL values. Please note that these are not primary indexes/keys...

View Article


Bulk Loading - forum topic by jcgionson09

Hi, Im having a problem to load many records into a table that has primary index but not autoincrement. Is there's a way to get the last primary index and append it to the data that i will load to the...

View Article

Special Characters in Teradata - response (9) by rtakle_d

Thanks dnoeth. our project requirement is like that if any corresponding value related to “ABC” is exist  with special character than we have to update all with null. I am not able to use "oTranslate"...

View Article

Special Characters in Teradata - response (10) by dnoeth

Of course there's no side effect when you install oTranslate if it didn't exist before. And the update is basic: UPDATE tab SET column2 = NULL WHERE column1 IN (SELECT column1 FROM tab WHERE...

View Article

NoPI hashing algorithm - forum topic by Raja_KT

Hi, It seems that for a NoPI table , a query id is submitted to a randomized hashing algorithm to produce a hash value comprising of hash bucket number and a remainder. This number is used to assign a...

View Article


Bulk Loading - response (1) by msk.khurram

You can use the following code to genrate ID column. Although the use of CSUM function is discouraged now. INSERT INTO Target_Table_name ( INDEX_COLUMN --Other_Column_list ) SELECT ,System_Generated_Id...

View Article

Special Characters in Teradata - response (11) by rtakle_d

Thanks a lot dieter.so without this function we can't do this. i will work with DBA team to install this function. and one more thing if our valid data is 'a to z ' and '0 to 9' than our oTranslate...

View Article


Condition for generating NULL - response (5) by eliot

Hi Dieter and Khurram, Your suggestion is really helpful! For now, I'm adding range check for all the trigonometric functions and they are working well in my query jobs. Really appreciated for the...

View Article

Bulk Loading - response (2) by logao

I don't think it's a good way to insert data without Index column, or PK column. Unless you won't extend this table in the future. It would be a difficulty thing when you want to add a new column in...

View Article


Fload into a nonpartitioned Nopi table - forum topic by Raja_KT

Hi, May I know the reason why TD uses system amps and offline amps accessing the configuration map(also why using configuration map?) to load data into non-partitioned NoPI table? Thanks and regards,...

View Article

Loading nonpartitioned NoPI from a file - forum topic by Raja_KT

Hi, I am planning to load a  nonpartitioned NoPI from an external  file using mload, fload and tpump. What are the hiccups I may face? Or is it better to stage first to a staging table and then load to...

View Article

Find table size and last access date - response (2) by Adharssh

Hi, We have tablename & Databasename in both dbc.tables & dbc.tablesize. Please find the Code, that will give you the Tablename,Databasenaem,Creatorname,Lastaccesstimestamp & Currentperm....

View Article
Browsing all 14773 articles
Browse latest View live


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