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

Outer Joins and Optimizer Issues - forum topic by wpitterl

Hi all,  I'm having some performance issues due to the way certain queries are being processed by the optimizer. I have a set of views that I want to join together, and each of these views has the same...

View Article


Cross tab - Pivot - forum topic by elvicio

HI, I NEED TO DO A ROWCOUNT ON ALL TABLES ON A GIVEN DATABASE. I CAN EASILY DO THIS IN SQL USING A PIVOT TABLE. CAN SOMEONE HELP? THIS IS WHAT I HAVE: LETS SAY THIS IS (TABLE_COUNTS) TABLENAMES...

View Article


Selecting count(*) from multiple tables - response (4) by dnoeth

You need to do the aggregates within Dervied Tables and then Outer join them: SELECT acct.acc_no, acct.sort_code, COALESCE(credit.cnt, 0) AS credit_count, COALESCE(debit.cnt, 0) AS debit_count FROM...

View Article

Updating a table through view - response (1) by dnoeth

Hi Mahesh, it's the same a SELECTing from this view, the souce code is resolved by the parser and you actually access the base table: When you EXPLAIN the update you'll notice that the base table is...

View Article

One or more values to pass in a prompt - response (3) by dnoeth

When you're  on TD14 you might simply use the strtok_split_to_table function: WHERE P_ID IN ( SELECT CAST(token as INT) FROM TABLE (STRTOK_SPLIT_TO_TABLE(1, #sq(prompt(''))#, ',') RETURNS (outkey...

View Article


DBQL Metrics - response (3) by dnoeth

I/O is the number of logical disk I/Os not the number of records. The esitmated vs. actual number of records is found in QryLogSteps. In your case the high count might indicate a Full Table Scan...

View Article

Improve performance of like queries. - response (3) by dnoeth

WHERE POSITION(V_FIRST_NM IN FIRST_NM) > 0 or WHERE SUBSTRING(FIRST_NM FROM 1 FOR CHAR_LENGTH(V_FIRST_NM) = V_FIRST_NM Dieter

View Article

Is there any way to handle single digit's in date? - response (7) by Harpreet...

Not sure what I am doing wrong here SEL TO_TIMESTAMP('11/04/2011 11:26:35.345''MM/DD/YYYY hh:mi:ss.FF3') error:  SELECT Failed. 9134:  YYYY value must be four digits and in the range 1-9999 

View Article


Is there any way to handle single digit's in date? - response (8) by dnoeth

Simply add a comma ;-) SEL TO_TIMESTAMP('11/04/2011 11:26:35.345', 'MM/DD/YYYY hh:mi:ss.FF3')  Dieter

View Article


Creating a Soft RI - response (3) by taruntrehan

Too late to respond though; but Thanks for the inputs...

View Article

qualify rank() over (partition) - question - forum topic by gksenthilkumar

Hello, i need some help please,  I have a dataset similar to the following: inr rd dt    c1 c2 1 1 '2000-01-01 10:10:10 1111' 1 1 1 1 '2000-01-01 10:10:10 2222' 2 2 1 1 '2000-01-01 10:10:10 3333' 3 3 1...

View Article

Timestamp format on teradata retrieval - response (9) by gtsoccer

Dieter and all, I have a timestamp without seconds that I want to keep as a timestamp & not a VARCHAR like this: 5/27/2013 3:36  When I try to create the table using the command belowI get an error...

View Article

Teradata Driver, LDAP & Talend? - forum topic by teradatatester

Has anyone successfully used the Teradata driver with LDAP authentication in the ETL tool Talend?Tags: databasedriverjavaldapteradataForums: Database

View Article


Partition Elimination - response (3) by ilf

Hi,  I have a question. We have a table having column with timestamp data type. Partition is applied on the column by casting it to date data type. attached below. Col1 TIMESTAMP(0)) PRIMARY INDEX (...

View Article

Outer Joins and Optimizer Issues - response (1) by wpitterl

Anyone have any input? Dieter maybe?

View Article


Updating a table through view - response (2) by mayya@teradataforum

Thank you Dieter. But i have few queries, I created a table as below,  (V2R5)               CREATE SET TABLE zam_product1 ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL,...

View Article

Timestamp format on teradata retrieval - response (10) by dnoeth

Your syntax is wrong, within a Create Table it's trns_dt timestamp(0) format 'MM/DD/YYYYBHH:MI'  Dieter

View Article


Updating a table through view - response (3) by dnoeth

Hi Mahesh, i don't know what caused this, are you 100% shure the create view/grant/select all refernce the correct objects in the correct database? When the base table of a view is dropped the view...

View Article

CPPI question - forum topic by cursavas

Hello, I am trying to add a range to my CPPI column but get this error when I run the alter table statement: 'Executed as Single statement.  Failed [5731 : HY000] TBL_ADD_PARTITIONS_FOR_PERIOD:DROP...

View Article

CPPI question - response (1) by Fred

Making this change via ALTER is not supported for character PPI. Create a new table and copy the data.

View Article
Browsing all 14773 articles
Browse latest View live


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