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

Collect Stats on Global Temporary Table - response (2) by Tera-Jagan

Yes Dieter I agree that above stetement what you mentioned like "collect stats on temporary my_table". but let me know any alternate way to collect stats on the table with out using the above statement...

View Article


How to bulk insert into teradata tables via a single insert statement - forum...

Hi I need to insert data into a table by a single insert statement. means i have an insert script insert into dbtest.test values ('abc') Now in need to run this query million times for bulk testing,...

View Article


Access Right Abbreviations - response (4) by sh_na

I saw a new one in TD14 'SH' what does this refer to?

View Article

Using QUALIFY and GROUP BY together ?! - forum topic by veskojl

Can someone throw some light how can QUALIFY,GROUP BY and HAVING be used together? Any link to docs or simple example will be usefull. Also which one takes precedence, when used together and what is...

View Article

Access Right Abbreviations - response (5) by sh_na

Can you please include these ones as well.. SH OP GD GM GC 

View Article


Listagg, wm_concat or Group_concat equivalent in teradata - response (1) by...

You have to use with recursive to implement listagg.

View Article

Design change / Perf Optimization Suggestion required - forum topic by mjasrotia

Table: RETAIL_SHIPMENT / Records - 7 Billion / Partitions  - 120 Weekly Partitions  Table: CURR_YAGO_CAL - Has Weekend Dates and their Corresponding Year Ago Dates. Sample 2 records Cal_Dt...

View Article

CASESPECIFIC What is its purpose? - forum topic by zigzagdna

I am a newbie to Teradata; I have lot of experience with Oracle and SQL Server. I am trying to understand what exactly is CASESPECIFIC? I have created a table CREATEMULTISETTABLE premtest.Employee...

View Article


CASESPECIFIC What is its purpose? - response (1) by chinmay Athavale

Hello, It seems that you are working in ANSI mode. Please not that any comparison in 'ANSI' mode is case sensitive by default, whereas Teradata mode is case insensitive. I checked your SQL in Teradata...

View Article


How to bulk insert into teradata tables via a single insert statement -...

If you want to execute a single insert at a time then use BTEQ and looping to achive this, If you want to just load the data from a file to table means use any of the utilities Fload, Mload...

View Article

CASESPECIFIC What is its purpose? - response (2) by dnoeth

To get a case insensitive result both operands must be NOT CASESPECIFIC. Any literal in an ANSI mode session is CASESPECIFIC by default, but NOT CS in a Teradata session. To get the desired result in...

View Article

Stored Procedures - Use dynamic cursor for any table - response (4) by dnoeth

Sorry, i don't get it. Could you rephrase your question? Is there any relation to the original question?   Dieter

View Article

Find position of a character in a string - response (6) by dnoeth

You can modify the query i posted at http://forums.teradata.com/forum/database/stored-procedures-need-help-with-massaging-data-within-an-input-parameter WITH RECURSIVE cte (groupcol, len, remaining,...

View Article


Global Temporary Table With Multi-Level Partitioning - forum topic by Raja_KT

Hi, I want to make a Global Temporary or Volatile Table  With multi-Level Partitioning in TD 14, since I will be using the data in the session. I could not see anywhere the syntax.  Thanks , Raja...

View Article

How to get 2 value from same id and same column? - response (3) by dnoeth

For your example (up to two rows per ID) there's a simple solution: SELECT ID, Customer, MIN(Book) || COALESCE(',' || MAX(Book), ''), SUM(Price) FROM tab GROUP BY 1, 2But it's probably more complicated...

View Article


Global Temporary Table With Multi-Level Partitioning - response (1) by dnoeth

Hi Raja, it's exactly the same syntax you already use, just write CREATE VOLATILE/GLOBAL TEMPORARY TABLE :-)  Dieter

View Article

Update statement with left outer join in from clause. - response (4) by dnoeth

  Hi Harpreet, i don't know if this is correct, i never used an outer join for update in SQL Server. But there's no join condition on Client_GID in your original query.  Dieter

View Article


Need Help to implement recursive logic - response (1) by dnoeth

  It's hard to tell without more details, DDL, some INSERTs and the expected result. You can probably do that using WITH RECURSIVE or maybe EXPAND ON in TD13.10   Dieter

View Article

Find position of a character in a string - response (7) by CarlosAL

Sorry for jumping in. You can also get the results using an 'iterator' : As per your example (4th ocurrence of  '_': BTEQ -- Enter your SQL request or BTEQ command: SELECT SUBSTR(pre.cadena,...

View Article

BTEQ in ANSI mode - forum topic by mayya@teradataforum

  Hi, I am checking how BTEQ works in ANSI mode and so below is my BTEQ script, .set session transaction ANSI; .run file e:\jedi_logon\mvn.ctl; select * from jedi_mvn_db.zam_employee ; .QUIT But when i...

View Article
Browsing all 14773 articles
Browse latest View live


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