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

"From" clauses in Create database query. - topic by seahawkmehta

Hi I'm biginner to teradata. I want to ask u that  while we creating a new database in teradata why we use "from" clauses in that query.

View Article


Teradata Parallel Transporter (TPT) 14.00.00.07 on Windows 2003 x64 Java...

Hi, I'm trying to install teradata 14 on Windows 2003x64 server manually. I've installed core modules without problem but when I install TPT, it gives me error: 'java’ is not recognized as an internal...

View Article


Alert for certain DDL/DML queries at real time using VP, TASM or any other...

  Hi, Is there a way I can send alerts using VP, TASM or any other means only for collect stats queries? My intension is to set up an alert for long running collect stats during business hours (eg:...

View Article

Counting consecutive dates - topic by Tigersense

I am trying to figure out how to count consecutive dates for and Employee where TRAN_TYP = 'A'   I have tried CSUM but could not get exactly what I wanted.   Any help would be appreciated.  Thanks....

View Article

"From" clauses in Create database query. - topic by seahawkmehta

  read more

View Article


USI in multiload - response (10) by cheeli

Thank you for the post Dieter. 1. Each AMP will hold the secondary index values for their rows in the base table only for NUSI.  How does the hash value point to the same AMP for the rows that are in...

View Article

Counting consecutive dates - response (1) by mohan.mscss

Please show some  data and how exactly you need the result..

View Article

USI in multiload - response (11) by dnoeth

Hi Cheeli, "broadcast to all AMPs" means sending a message over the BYNET to all AMPs in the system. This has to be done for a NUSI access: the hash of the actual NUSI value can be calculated (using...

View Article


"From" clauses in Create database query. - response (1) by dnoeth

In Teradata there's a hierarchy of databases/users, "dbc" being the root. When FROM is not specified it defaults to the logged in user. As most customers use a single admin user (e.g. "sysdba") for...

View Article


Counting consecutive dates - response (2) by dnoeth

Yes, some more info would be helpful indeed, but this is probably what you want: select EMP_NUM, TRAN_DT, ROW_NUMBER() OVER (PARTITION BY EMP_NUM, dummy ORDER BY TRAN_DT) as consecutive_days from (...

View Article

Counting consecutive dates - response (3) by Tigersense

dnoeth,   That is great.  It has basically gotten me on the right track.   Much Thanks!!!  Wish there was a thumbs up button for you.

View Article

Explain plans differ when object (view) names are fully qualified and when...

Does the optimizer treat a query differently when the object names in the query are fully qualified vs. when they are not fully qualified ? I came across a query which gives one explain plan when the...

View Article

Explain plans differ when object (view) names are fully qualified and when...

It will be great if you provide view defintion

View Article


Explain plans differ when object (view) names are fully qualified and when...

My mistake, I meant query which gives different plan, if possible

View Article

Slow Left Join query - topic by nyemul

    read more

View Article


Slow Left Join query - response (1) by ulrich

some observations - 1. "spa_usage1 contains app 54 million rows" vs. "The size of Spool 2 is estimated with low confidence to be 567,176,439 rows"  which is a 10x difference. Stats not up to date? or...

View Article

Purge the work tables cretaed a month before and create report with the list...

Hi All,   I need to purge work tables which were created a month before. I am using the below query to extract the list of all such tables: SELECT DISTINCT 'DROP TABLE DB1.' || B.TABLENAME || ' ;' FROM...

View Article


Slow Left Join query - response (2) by nyemul

Hi Ulrich, select count(*) from misc.SPA_USAGE1 shows rows as  575,641,759     DataBaseName TableName skew_factor 1 misc                           spa_usage1                     1.71   My apologies for...

View Article

Purge the work tables cretaed a month before and create report with the list...

Try using recursion.

View Article

Slow Left Join query - response (3) by ulrich

The skew value of the table is irrelevant as it is reflecting the S_SK,C_SK combination. try  select top 100 hashrow(S_SK), count(*) from spa_usage1 group by 1 order by 2 descPPI - for this specific...

View Article
Browsing all 14773 articles
Browse latest View live


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