Quantcast
Browsing all 14773 articles
Browse latest View live

Using SQL to Query for NaN - response (1) by Paul.Hooper

I have figured out a work-around, and I'll share that with those of you searching for a solution. First of all, it's obvious to me that Teradata's handling of NaN floating point values is incomplete...

View Article


SET & Multiset Tables - topic by katakoti

If i use SET table then the Teradata database will perform duplicate search in that table while loading the data. When i use UPI, it eliminates duplication search. Am i correct? Could some one please...

View Article


SET & Multiset Tables - response (1) by harpreet singh

you are correct. Basically below are conditions which can help you 1. Table is set, we create UPI on it. this way teradata checks for duplicacy of PI values and rejects duplicates , no need to scan...

View Article

Get current week number from the date in current year. - response (3) by...

Thanks a lot; will check on this !!

View Article

Query from view optimizations - response (7) by michalk

Your solution looks nice :) Extending question - at this time I can't make tests, so i have question - what do you think: If there will be SRC0-SRC9 tables (all tables with 12 parts) which option will...

View Article


Query from view optimizations - response (8) by dnoeth

This is hard to tell without testing. If this was a smaller table i'd go with #1 (as long as everything is AMP-local). It will mainly depend on the number of columns returned (you were talking about...

View Article

Query with Very High CPU Usage - topic by gv

Hello All, Below query is running fine, but resulting in a Very High CPU Usage. Culprit may be the CASE statement. As per explain plan, this query is "Left Outer joined using Product Join". How come...

View Article

Query from view optimizations - response (9) by michalk

ORA has limit up to 1k columns, where is TD limit?   >  But SAS guys try to run strange things on a DBMS :-) heh, If you say so, have you any experience with SAS? :)      

View Article


Query from view optimizations - response (10) by dnoeth

Teradata has twice the Oracle number, 2048. I have no direct experience in SAS, but i had to teach SAS people how to use SQL in a proper way and to push as much as possible into Teradata instead of...

View Article


Query with Very High CPU Usage - response (1) by dnoeth

The join condition is equal to Z.ID = X.ORDER_NBR OR Z.ID = X.SUB_ORD_ID   You should always try to avoid ORed join conditions, they always lead to product joins. To fix this you have to split the ORed...

View Article

Returning Values from Procedures - topic by prtzy

Hi,   I am new to Teradata. I want to make a procedure in Teradata wich will do the follwing job:   1.Read an integer from a table in Teradata.(SELECT) 2.Increment a constant value to it. 3.Append the...

View Article

Caculate how many bytes of string - topic by ricky_ru

oh... I was looking for this button for a long time... why not put it on the top of the page. Dears, I actually have 2 questions: read more

View Article

primary index hash value - response (4) by Rajgopal.v2

how to get uniques ness value for row in teradata for Hashing?

View Article


Altering a table to extend partition range fails with error 3732 - topic by...

Hi, I'm getting following error when I run alter table statement to add/extend partition range: 3732: The facility of altering the partitioning of a non-empty table by adding/dropping partitions other...

View Article

Caculate how many bytes of string - response (1) by CarlosAL

Ricky:   1. OCTET_LENGTH():  BTEQ -- Enter your SQL request or BTEQ command: SELECT OCTET_LENGTH('En un lugar de La Mancha...') LENGTH_DEFAULT,        OCTET_LENGTH('En un lugar de La Mancha...', ASCII)...

View Article


Returning Values from Procedures - response (1) by CarlosAL

>>"Is it possible to return values using Stored Procedures in Teradata?" Yes, with OUT IN/OUT parameters. HTH. Cheers. Carlos.

View Article

Spool Release - topic by rajeev saravanan

Hi, If a query is utilizing many spools are they released only when the query ends? for example if my query is using till spool20 then the sum of all the 20 spools is utilized till the query execution...

View Article


Need help to avoid spool space error - topic by ciw916

I have a query that I am trying to run against teradata.  I received an email stating that my query was using too much of the CPU resources and to please modify before proceeding.    My question is,...

View Article

Need help to avoid spool space error - response (1) by Qaisar Aftab Kiani

Explain plan of the query and DDL / Indexes of the table referenced will help in understanding what could be going wrong...

View Article

primary index hash value - response (5) by Qaisar Aftab Kiani

SELECT HASHROW(<<COLUMNLIST>>), COUNT(*) FROM <<TABLENAME>>

View Article
Browsing all 14773 articles
Browse latest View live