Quantcast
Channel: Teradata Forums - All forums
Browsing all 27759 articles
Browse latest View live

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

SQL Assistant 14.0.0.02 not closing once query is done in batch - response...

Hi, I recently upgraded to TD14.  The query runs fine in TD14.  However, when I tried to run the old batch jobs under TD14 it would not pull the query and it hung.  Since I run a lot of batch jobs...

View Article

Using RJDBC and connected successfully, I get errors when trying to write...

Has this been resolved? I'm encountering the same issue.

View Article


calculate recency & absolute deviation for a dataset - forum topic by suyog

Hi, please check the following dataset customerid  purchasedate  1                      5/9/2013 1                      5/20/2013    1                       5/29/2013 2                       6/8/2013...

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

calculate recency & absolute deviation for a dataset - response (1) by dnoeth

Nest the aggregate in an OLAP function: SELECT customerid, MAX(purchasedate) - MIN(purchasedate), MAX(MAX(purchasedate)) OVER () - MAX(purchasedate) FROM tab GROUP BY 1 Dieter 

View Article

Teradata ( Dev + Admin )Demo CLASS on Saturday 06 july AT 08:00 AM IST -...

Hi, Course Name : Teradata ( Dev + Admin  ) Duration : 40 Hours  Course fee : 150000INR/300USD each for Dev & Admin Track 1.  Please join my meeting.https://global.gotomeeting.com/join/236862957 2....

View Article


Teradata Training Material available - response (98) by taruntrehan

Hi, I am a newbie to TD. Please forward the study/reference material to spike1704@gmail.com   

View Article

Creating a Soft RI - response (3) by taruntrehan

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

View Article


Referential Integrity for temporal tables - response (1) by taruntrehan

Though, i was getting another error. But, this might be of some help : http://forums.teradata.com/forum/database/creating-a-soft-ri

View Article

Teradata ( Dev + Admin )Demo CLASS on Saturday 06 july AT 08:00 AM IST -...

Hi,Are u interested for Teradeta learning.         let's join new Demo batch started on 06 july at 08: AM IST 1.  Please join my meeting.https://global.gotomeeting.com/join/236862957 2.  Use your...

View Article


Aster JDBC trouble - IS_NULLABLE/NULLABLE metadata - forum topic by kkolman

Hi, trying to use Aster JDBC driver to query database tables & columns. ResultSet columns = null; DatabaseMetaData metaData = connection.getMetaData(); ResultSet columns = metaData.getColumns(null,...

View Article

Aster and hadoop connectivity - forum topic by nancyjean

Hi, I am trying to connect Aster and hcatalog of hortonworks using the command load_from_hcatalog. But evrytime I try to fire this query, it throws an error saying the following: ERROR: failed to...

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
Browsing all 27759 articles
Browse latest View live


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