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

Condition for generating NULL - response (1) by msk.khurram

when you run the above query, the when condition is checked and as the argument is invalid, the condition becomes false and it goes to the else part. SELECT CASE WHEN (ACOS(2.3) IS NULL) THEN 'T' ELSE...

View Article


How to find table size and index size using Ferret utility - response (2) by...

Thanks Dieter...  I am new to teradata and never used the ferret to find tha datablock size. Can you please tell me little bit in detail of the maths which i can use to find out the index size..  How...

View Article


How to get data from Excel to Teradata table without using teradata olap...

If you are thinking about a way we used to do in Oracle to directly copy and paste the excel data into table using PL_SQL developer, I doubt the SQL Assistant do not provide any such facilty yet. the...

View Article

How to get data from Excel to Teradata table without using teradata olap...

Wanted to reduce the time and manual work... So wanted to know if theres a way to do this, Thanks.

View Article

Fiscal vs. Calendar Issue - Adjusting SYS_CALENDAR to Begin Monday - response...

You can use Sys_Calendar.CALENDAR_TD_ISO_COMPATIBLE OR for ISO Business Calender Sys_Calendar.ISOBCal 

View Article


How to calculate moving sums within variable size windows? - response (5) by...

Thanks guys, what confused me was that I too thought range should be accepted by TeraData - I am in a middle of a conversion project from Oracle and have run into some hurdles with both ANSI SQL as...

View Article

Special Characters in Teradata - response (4) by rtakle_d

Thanks Dieter for update. However i am not able to write query base on your input. Could you please let me know how to write query base on function which you gave.

View Article

Special Characters in Teradata - response (5) by msk.khurram

There is a function in Teradata named REGEX_SIMILAR that can detect the presence of special characters according to a regular expression. I have tried to find help about didn't find much. Dieter can...

View Article


Cursors in stored procedures - response (7) by gwizdek

Hi, Suppose I have 3 cursors declared within SP: REPLACE PROCEDURE "schema"."sproc" ( IN "param" DECIMAL(25, 0))    DYNAMIC RESULT SETS 3 BEGIN  DECLARE c1 CURSOR WITH RETURN ONLY FOR    select x from...

View Article


Condition for generating NULL - response (2) by eliot

Hi Khurram, Thanks for the help! I'm able to observe NULL value with the query you give. However another question is how can I come up with a query that check for NULL values from output of an...

View Article

Why the Optimiser does not run these STATS in parallel ? - response (3) by...

Thanks Dieter, But could you please suggest any way to do this in a faster manner. I need to calculate these Ranks to calculate the Store Selling Metric which is non additive across the Product...

View Article

Special Characters in Teradata - response (7) by rtakle_d

Some More update .  Actual data in table . Colum1   Colum2 ABC         Abc%^* ABC         PAG XYX         PLM  After removing special charater data should be...  Colum1   Colum2 ABC          ABC...

View Article

Why we need spool at database level. - response (2) by vignesh093

Thanks Vlad,got it.. And one more thing,as per my understanding both temp. and spool space is the total unused space in the whole DB. In that case,i came across the below scenario which could not prove...

View Article


Condition for generating NULL - response (3) by msk.khurram

What I think is that IS NULL is just being checked against the function output, whether it is an error code or a true value.  If you check the same against the NOT NULL, then it gives the correct...

View Article

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

Hi,  I have a situation where i have duplicate records in my table. This is determined based on a combination of a few natural/business keys. I know the way to identify if there are duplicates using...

View Article


Check for special character in a string - response (4) by rtakle_d

hello Chandrashekar K S,  Can you please let me know that recursive funtion and how code will work with select stm. WHERE CHAR_LENGTH(oTranslate(col,...

View Article

Compare two database Tables, row count in each table which are in different...

The suisse army knife for Teradata DBAs and developers is AtanaSuite :-) http://www.atanasuite.com/ The DeltaTool is all you need, it's included in all versions but Essential.  Dieter

View Article


Access Rights -- Inheriting nature - response (1) by dnoeth

Hi Venkat,"grant STATS on A to all B" only inherits the STATS right on A to all child users of B, but there's no way to get what you want using a single GRANT.  Dieter

View Article

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

Try the following query: SELECT * FROM TableName WHERE (col1,col2,col3) IN (SELECT col1,col2,col3 FROM TABLENAME GROUP BY 1,2,3 HAVING COUNT(*)>1); 

View Article

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

You're correct, there should be at least twice the number of rows returned. Your code is overly complex, you don't need the DISTINCT and the Derived Table A, but this will not change the result: SELECT...

View Article
Browsing all 14773 articles
Browse latest View live


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