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

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

#1: When the query is optimized the actual values are not yet know when they come from another table. Btw, in TD14.10 there's a new feature "Incremental Planning" which will resolve such non-correlated...

View Article


AWT Usage while session in RESPONSE state - response (1) by PaulEr

Hi! What version of Teradata do you have? AFAIK, you can't see AWT utilization by session level. Only AMP and Performance Group (Workload).  Regards,  Pavel.

View Article


AWT Usage while session in RESPONSE state - response (2) by abhijitvyas

Hi Velu Sessions in responding mode doesn't hold up AWT. AWTs are ionvolved when AMPS are in active state, once AMP became idle it won't use AWTs. But when response was sent to dispatcher from AMP,...

View Article

Timestamp field insertion into a Table with field declared as TIMESTAMP(6)...

Hi I have a project requirement where I have to unload from a db2 table and load into a teradata table using Tpump. The fields declared in db2 Table are as below. (LINK_ITEM_NBR...

View Article

For joins NUPI can be a better choice than a UPI - response (1) by barani_sachin

Any one please??

View Article


Teradata database restart? - forum topic by barani_sachin

Hi All, Have scenarios like this please tell and explain the outcome. What if a node fails in a clique? with and without a hot stand by node.  Will TD restart in both the cases or not and how will be...

View Article

For joins NUPI can be a better choice than a UPI - response (2) by ulrich

you don't give any context for "For join performance, a NUPI can be a better choice than a UPI." so it would require again the crystal ball to come up with a reply...

View Article

PPI or NUSI? - response (2) by Nishant.Bhardwaj

thanks Dieter for your suggestions.. Apologies for any confusing sentence. I will reteirate it.  I mean that if we keep (date) column as a partitioned column and Primary Index (some other column) then...

View Article


Creation of Volatile table - response (3) by teraforsk

As long as your default database is your username, you can just create a volatile table straight-off without using any db qualifications. Here is how you change your default database to your username...

View Article


How to reduce skew factor on stage tables with NoPI? - response (3) by Sojib2BD

I have same problem. My Table size 480 GigaByte and  skew factor > 78 . It is 7 column  table(Using 3 Column as primary Index). I create also NoPI table but still skew factor is same.  How i reduce...

View Article

Dynamic SQL - Stored Procedure - forum topic by raestadilla

Hi!  My goal is to create an SP which gets the tablename and it's row count then insert it in another table. This has to be dynamic since row counts should be done for more than 1 table.  Here's my...

View Article

How to reduce skew factor on stage tables with NoPI? - response (4) by CarlosAL

If you created the NoPI table from the PI Table the skew will be the same (AMP local). You must create the NoPI table EMPTY and load it from scratch. This should guarantee a good distribution (e.g.:...

View Article

Dynamic SQL - Stored Procedure - response (1) by raestadilla

By the way, this code is not working. :)

View Article


Analytical ordered function to get the first row in window - forum topic by abin

Hi,  I have this table.  Column1Column2Column3Column5 Key0 3/8/2011 13:00 Entry New KJLUONMP Key0 3/8/2011 14:00 Change New KJLUONMP Key1 3/8/2011 16:00 Transfer KJLUONMP  Key1 3/8/2011 19:00 Change...

View Article

Analytical ordered function to get the first row in window - response (1) by...

I think the table data in my previous post didnt come as expected, here is the table, result column is what I expect as output. Column1Column2Column3Column5ResultKey03/8/2011 13:00Entry...

View Article


Strange error regarding data type - forum topic by dlayten

All, When I use this query select CASE WHEN TOTAL_PASS = 1 THEN 1 ELSE  0 END as COMPLIANCE....It seems to work, however when I use this CASE WHEN TOTAL_PASS = 1 THEN 'Y' ELSE  'N' END as COMPLIANCE......

View Article

For joins NUPI can be a better choice than a UPI - response (3) by Shelley

As ulrich says, you need the context because it really depends on your data and what you need to join on. For example if your joins are most often on columns that will have duplicates  then a NUPI...

View Article


Size of table with partial data (active records) - response (2) by Rajgopal.v2

Query to find Row Size: SELECT databasename, tablename, SUM(columnlength) ROWSIZE, COUNT(*) columncount FROM     dbc.COLUMNS WHERE databasename LIKE '%XXX%' AND TABLENAME='YYY' GROUP  BY...

View Article

query for getting elapsed time - response (4) by Rajgopal.v2

SELECT ( firstresptime - StartTime HOUR(2)  TO SECOND(2) ) AS Elapsedtime FROM dbc.qrylog WHERE username='XXXXX';The Above Query will help you to find Elapsed Time. 

View Article

Analytical ordered function to get the first row in window - response (2) by...

Hi Abin, your data/expected result is not readable, better provide DDL + INSERTs. Might there be multiple rows with 'transfer' before the 'load'? If yes, which one to choose, the oldest or the newest...

View Article
Browsing all 14773 articles
Browse latest View live


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