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

volatile table as select..with data - not loading data - response (5) by...

Hi, I have a question related to "sas teradata" using "multiset volatile table". Previously my script in "BTEQ" format and it runs perfectly----  the general format for this script is :-   create...

View Article


Stored Procedures in Teradata!! - response (8) by gam

Hello,   I've read this topic and I notice vickyejain information about using SP within query, however I'm curious if anything has changed in those last 2 years in TD about this. If not, maybe someone...

View Article


Problems with dynamic creation of Volatile tables - response (5) by ulrich

just to play arround - not fully tested, no exception handling etc. maybe more index types to consider but a SP might become handy for this... REPLACE PROCEDURE test_db_uli.p_create_tb_copy (IN...

View Article

Problems with dynamic creation of Volatile tables - response (6) by ulrich

Forgot the GT for the drop index statements... CREATE GLOBAL TEMPORARY TABLE gt_drop_index_stmt ( txt VARCHAR(1000)) ON COMMIT PRESERVE ROWS;

View Article

Problems with dynamic creation of Volatile tables - response (7) by ratzesberger

Nice! Thanks a lot! And I was hoping a single line CT VOLITABLE TABLE AS might do... ;-) Was just rewriting that old TeraCompress tool from years ago, but with dynamic sampling - hence the Volatile...

View Article


Problems with dynamic creation of Volatile tables - response (8) by ratzesberger

The forums software here needs a "Like" or "Thank You" button on posts. Would make search so much smarter when you can actually ranked liked responses higher...  Sorry for the transgression - I could...

View Article

TDWMSummaryLog - DelayedCount and DelayedQueries - topic by alvie

Can someone provide a description of the fields delayedcount and delayedqueries in the table DBC.TDWMSummaryLog? What's the difference between them? Thanks...

View Article

NUPI and USI - response (3) by jmamedov

I think when you have de-normalized and big table (over 2 billions) then order of importance  should change in my view. #2 (distribution) does move up. With de-normalized table  you will never know...

View Article


RE:performance tuning for query with 27 left joins - response (6) by...

Hi ulrich,        I agree with you.Lastupdate_dttm is not used in join condition and specifying it in primary index doesnt serve any purpose. EFBI_DEV1_CSPR_T.STG_CSPR_WST_CDR has 12 lakhs(1.2...

View Article


RE:performance tuning for query with 27 left joins - response (7) by ulrich

and how many distinct CODE_BKDN_DEF_ID values to you have in prod? 1.2 million?

View Article

RE:performance tuning for query with 27 left joins - response (8) by...

Sorry ulrich the client gives us only sample data(4000 records) and count of the tables in production.

View Article

production data - topic by vijayshankar245

Hi all,        Customer is not giving us production data to analyse citing security concerns.He is giving us only sample data and record count for source and Target tables.But in some cases the record...

View Article

Teradata Update Syntax - response (14) by bertin88

 [3993 - illegal usage of alias name] occured due to alias name for target table in SET. Rewrite below part, set k.sales_count = m.sales_count ,k.sales_sum = m.sales_sum to set sales_count =...

View Article


production data - response (1) by WAQ

It varies from project to project. Most of the customers do not share the data due to security reasons (as in your case). Some of them provide encrypted data. So in many cases, development and testing...

View Article

Current Month End Date - response (4) by bertin88

SEL ADD_MONTHS(CURRENT_DATE-EXTRACT(DAY FROMCURRENT_DATE),1); will have problem for date '2012-03-01'(March). Solution is  Vikas's query.

View Article


Probable bug in Teradata v13 - response (3) by bertin88

SELECT '2012-02-10' - EXTRACT(DAY FROM '2012-02-10') Answer set is 20120200.00  I've mentioned it in single quotes to identify it as char. But database process this as integer expression. Shouldn't be...

View Article

Do macros only support ANSI sql? - topic by tom.gnade

Hi all,   I'm trying to run a performance comparison between Oracle and Teradata. I've ported the data from our Oracle database, and now I'm trying to test the procedure rewritten as a macro. The proc...

View Article


Do macros only support ANSI sql? - response (1) by ulrich

No - can you share the code? And what is the error code you get?

View Article

Do macros only support ANSI sql? - response (2) by tom.gnade

Ok I've done some testing, and it looks like the Oracle (+) notication for the outer join sytax is the problem:   select * from t_1, t_2 where t_1.some_id = t_2.some_id (+);   SELECT Failed. 3706:...

View Article

Do macros only support ANSI sql? - response (3) by ulrich

try select * from t_1 outer join t_2 on t_1.some_id = t_2.some_id;

View Article
Browsing all 14773 articles
Browse latest View live


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