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

Can multiple joins be avoided for the same table? - response (6) by dnoeth

That's a variation of the common problem "how many working days were needed to process this task": Add a new SMALLINT column to your calendar table like holiday_seqnum and populate it once with a...

View Article


Disctribution of rows in Fall back AMPs - response (3) by mayya@teradataforum

Hi, I searched this Manual in "http://www.teradatamagazine.com/" after registering to it  but I cannot find such manual to refer. Where actually i can get such Teradata manuals? Please help me out.  

View Article


Disctribution of rows in Fall back AMPs - response (4) by dnoeth

  Hi Mahesh, you'll find all Teradata manuals at http://www.info.teradata.comDatabase Design Or better get the full set:Teradata 14.10 User Documentation CD-ROM No need to register ;-)  Dieter

View Article

Converting CONNECT_BY_ROOT function in Oracle to Teradata - response (1) by...

Hi Ajay, CONNECT_BY_ROOT is usually the same as a column from the seed query. There's an old article on IBM's DeveloperWork showing how to port from CONNECT BY to WITH RECURSIVE, most can be applied to...

View Article

Improper column reference in the search condition of a joined table -...

SELECT DATE as SYS_DATE, T1.KSN_ID, T1.ITEM_ID, T1.DVSN_NBR, T2.CAN_CARR_MDL_ID, T2.NETWORK_DISTRB_CD, T3.KM_DAY70_CHK_STR_QTY, T5.LOCN_NBR,T5.SERV_DC_NBR, b.DC_CD, c.THIRTEEN_WK_FRCST, SUM (DISTINCT...

View Article


Collect Statistics - response (4) by Divine786

I am taking a join on a index column & its taking time to execute the following query  SELECT A.ACCOUNT_NUM AS ACCOUNT_ID, A.Limit_Type_Cd, A.Acct_Limit_Amt, A.Acct_Limit_Expiry_Dt,...

View Article

Collecting statistics - response (3) by Divine786

I am taking a join on a index column & its taking time to execute the following query  SELECT A.ACCOUNT_NUM AS ACCOUNT_ID, A.Limit_Type_Cd, A.Acct_Limit_Amt, A.Acct_Limit_Expiry_Dt,...

View Article

Collecting statistics - response (4) by dnoeth

Are the estimated numbers close to the actual ones? How many nodes does your system have? What statistics exist? -> HELP STATS tablename What are the PIs of your tables?  Dieter

View Article


Disctribution of rows in Fall back AMPs - response (5) by mayya@teradataforum

I got them Dieter. thanks a lot.

View Article


Collect Statistics - response (5) by Shelley

You need to show the ddl of the tables, the stats that are collected and the explain from the query to help determine why it is performing slowly. --Shelley--

View Article

Weekday and Time function - forum topic by dmenzaghi

Hi all, i'm new in this forum. I have to simple problems that i cannot solve: - I need to find a function that calculate in Teradata the weekday of a date variabile. - i need to compare a Time variable...

View Article

Weekday and Time function - response (1) by KS42982

To find out the weekday of a date, you can use - SYS_CALENDAR.CALENDAR To compare the time variable with the constant value, you can put the constant value in the quotes as you did in your example with...

View Article

DBQL Logging time is not in sync with teradata timestamp - forum topic by...

I am doing a testing of DBQL log tables. I enabled DBQL logging for a user 'ABC' and noted the current timestamp in teradata as below select current_timestamp(2)(title '');8/21/2013 18:14:22.04 and...

View Article


Weekday and Time function - response (2) by dnoeth

There's no built-in function for weekday, but besides a calendar you might do a simple calculation, e.g. this will return monday as 1: REPLACE FUNCTION day_of_week(cdate DATE) RETURNS BYTEINT SPECIFIC...

View Article

Migrating From Oracle To Teradata Help With DDL Generation - response (2) by...

Hi, Thanks Aravind The client is not willing to add another client tool that leaves us just with oracle,infa and TD (database) Is there any other way or logic which we can follow ? Thanks R.rajeev 

View Article


Can multiple joins be avoided for the same table? - response (7) by SmarakDas

Thanks a ton Dieter. I used your suggestion into the SQL and now,the running time is great. Your suggestion really made all the difference.

View Article

Combining multiple rows into a single row - forum topic by wayneoon

Hi All,  This may have come up before but I'm not getting the answers that I'm seeking for, so I'm going to start a new thread here.  Here's the problem:  I have a table that stores customer info,...

View Article


Distinct in Case clause - forum topic by dmenzaghi

Hi all, this is my input table: val1 val2 val3 val4 111  5      aa   13:00 111  8      bb   13:00 111  12    cc    8:00  This is the query i used: .. .. case when ( distinct val4 < time '12:00:00'...

View Article

Distinct in Case clause - response (1) by Adeel Chaudhry

Please share the desired output of the dataset as well.

View Article

Migrating From Oracle To Teradata Help With DDL Generation - response (3) by...

If not willing to use any other software .... no other option. You must do data-type conversion and index changes manually.  HTH!  Regards.

View Article
Browsing all 14773 articles
Browse latest View live


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