Topics related to the Teradata Database, excluding database connectivity (e.g. JDBC) and extensibility (e.g. UDFs) . Typical topics are about SQL syntax and usage (SELECT, GROUP BY etc), database performance, use of database functions, comparison with / migration from Oracle or DB2, and generally why the Teradata Database rocks. For articles, blogs and more, see the Database section of the site.
You must login to post to the forums.
Activity count zero for TPump UPDATE or DELETE
Topic by Jessy Mahesh Kothapalli
3 weeks ago
Dear Team,
I am loading tables in teradata using Tpump loader (through Informatica).
Created error table with "Activity count zero for TPump UPDATE or DELETE."
Can someone tell me if there is any way to fix issue
Info from TPUMP manual
1: Error 2818: Activity count zero for TPump UPDATE or DELETE.
|
4 views
|
0 replies
|
"From" clauses in Create database query.
Topic by seahawkmehta
01 Nov 2012
Hi I'm biginner to teradata.
I want to ask u that
while we creating a new database in teradata why we use "from" clauses in that query.
The query is
CREATE DATABASE personnel
FROM administration
AS PERMANENT = 5000000 BYTES,
FALLBACK,
BEFORE JOURNAL,
DUAL AFTER JOURNAL,
|
893 views
|
3 replies,
3 weeks ago
|
Casting in PPI definition
Topic by Sen_td
3 weeks ago
ppi, casting PPI, PPI performance
Hi All,
I have a PPI table defined as like below,
|
2 views
|
0 replies
|
Teradata 12 and Subqueries
Topic by billcoupe
29 Jul 2009
sql subquery derived column
I have a query, that runs just fine in Oracle and SAS, but, it doesn't want to execute in Teradata. I understand that there's a 'Scalar Subquery' ability in TD13, but in the near term we're still on TD12.
As I'm in the process of porting all of our existing analytic work to the new Teradata environment, getting a little help with this (and other similar queries) would be greatly appreciated.
Select component_location_id, component_type_code,
|
11643 views
|
9 replies,
3 weeks ago
|
GMT to EDT conversion in Teradata
Topic by patneel
26 May 2009
Hi,I am trying to replicate the following ORACLE syntax to Teradata but facing issues in conversion.can anyone pls help me out?(substr(to_char(new_time(to_date(inventory.gmt_start_time,'mm/dd/yyyy hh:mi:ss AM'), 'GMT', 'EDT'),'mm/dd/yyyy hh:mi:ss AM'), 1, 14) || Casewhen to_number(substr(to_char(new_time(to_date(inventory.gmt_start_time,'mm/dd/yyyy hh:mi:ss AM'), 'GMT', 'EDT'),'mm/dd/yyyy hh:mi:ss AM'), 15, 2)) >= 30 then'30:00'else'00:00'end || substr(to_char(new_time(to_date(inventory.gmt_start_time,'mm/dd/yyyy hh:mi:ss AM'), 'GMT', 'EDT'),'mm/dd/yyyy hh:mi:ss AM'), 20, 3)) half_hr_timeThanks in Advance.
|
5500 views
|
3 replies,
3 weeks ago
|
How to Add Day to Date Prompt in Pass Through SQL??
Topic by TcognosD
3 weeks ago
question
Hi all,
I am building a SQL in which I have a date prompt.
My back end is Oracle and the column I am using has datatype of DATE. Below is the condition I am using.
Where BGN_DATE <= #sq(prompt('ToDate', 'date'))#
It is working but I have to add 30 days to 'ToDate'. Is it possible? How can I do this? Is there any function I can use?
|
6 views
|
0 replies
|
Teraadata DBA Training
Topic by praveen manam
3 weeks ago
HI All,
Does any one where can i find training DBA materials or classes for the same.
|
6 views
|
1 reply,
3 weeks ago
|
ETL managment
Topic by giorgio.gamberi
3 weeks ago
etl/elt design
Hello,
i'm a newbie with Teradata, i have just used the DB to run some inquiry on tables.
I have to build an ETL from zero using this DB, i have experience with Oracle PL/SQL but I'm not aware how it works with Teradata.
My question is: do I have to use an orchestration tool (e.g. IBM infosphere, Talend,..., whatever) to create an ETL or can I use just Teradata?
|
9 views
|
0 replies
|
Partition Usage
Topic by godspeeddeepak
3 weeks ago
Is there a way to find last access date and time of partition of a table in Teradata?
|
10 views
|
0 replies
|
Aggregate Operations with Case Specific data
Topic by Mandar.Nayak
4 weeks ago
Hello All,
I have a report that is generating SUM for various code values. The data on which the aggregate is being run has a mix of upper and lower case data for the same value (e.g. 'AB', 'ab','Ab','aB'). The sum that is returned is correct, only thing is - the query had been returning all uppercase values and now it is returning all lowercase values.
|
6 views
|
0 replies
|
ODBC TO UTF8
Topic by iqbal898
3 weeks ago
Hello,
I'd like to set my sql assistant connection from ODBC to UTF8 session. How can I do that? Thank you for your kind feedback.
Regards,
|
1 view
|
0 replies
|
Find the value of the latest date
Topic by sbidurukoti
3 weeks ago
Hi, I have to get the value for the latest date..Say I have ID and Event Date fields. I need to get the ID of the latest "Event Date". I know latest date could be achieved by using MAX, I would like to know how we can do the same without aggregate function?
|
6 views
|
0 replies
|
Informatica ODBC Error
Topic by goldminer
3 weeks ago
Have any Informatica users out there ever encountered the following failure:
Severity: ERROR
Timestamp: 4/26/2013 10:51:03 AM
Node: node01_DVWPAP0031
Thread: READER_1_1_1
Process ID: 184264
Message Code: RR_4036
Message: Error connecting to database [
[Teradata][ODBC Teradata Driver] Memory management error
|
3 views
|
0 replies
|
outer join & filter conditions.
Topic by srkr
3 weeks ago
For the query below , imanagerid = 100 and iempid are being applied after join condition.
select coalesce(t1.managerid,10) as imanagerid
,coalesce(t1.empid,1) as iempid
from test.t1
full outer join
test.t2
on t1.managerid = t2.managerid
and t1.empid = t2.empid
where imanagerid = 100
|
2 views
|
0 replies
|
Difference between GTT and Volatile tables..!!
Topic by idg_tddevex
23 May 2007
Hi, Can anyone let me know some of differences between Global Temp Table & Volatile table and also is there any specific purpose where each can be used???Thank You,
|
23273 views
|
3 replies,
3 weeks ago
|
Problem with Aliases
Topic by drmkd17
3 weeks ago
Hi,
I am facing a problem in Teradata
I want to create view in DAtabase1 and have my tables in Database2
Create view Database1.view1
as
sel a.col1 , a.col2
from database2.table 1 a, database2.table 2 b
where a.col1=b.col1
I get an error saying database2.a.col1 not found.
Please help
|
2 views
|
0 replies
|
CREATE TABLE Failed. 3933: The Maximum Possible Row Length in the Table is too Large.
Topic by hagedorn
03 Oct 2012
Hi All,
I am tying to create the following (and it did work) but was wondering if I can add the other datatypes I have commented out or make my varchar larger than 62000
REMRK_CLOB VARCHAR(62000) CHARACTER SET LATIN NOT CASESPECIFIC TITLE 'REMARKS',
CREATE SET TABLE DTST_ADL_STG_METS.METS_ORDR_B ,NO FALLBACK ,
NO BEFORE JOURNAL,
|
1384 views
|
6 replies,
3 weeks ago
|
Get question on Sum function in TD
Topic by xiangpzhang
4 weeks ago
hi, I am a layman in TD, and come across a Sum function issue.
sel
created_date (format 'YYYY/MM') (char(7)) as month
,count(*) as overall
,sum(table1. amount) as overall_amount
,sum(case when table1.amount > 300 then 1 else 0 end) as over_300_cnt
that's a part of my SQL,
|
1 view
|
0 replies
|
Issue with Decimal(38,0) data type in BTEQ
Topic by suresh1802
05 Oct 2012
format, decimal(38, 0)
Hi,
I am trying to export data from a table in which one column has a data type of Decimal(38,0).
Query: select sa from aa; Result:
When I run the select statement in SQL assistant....the output is fine....like below
sa
1 1,234,567,890,123,456,789,012,345,678
|
1196 views
|
7 replies,
3 weeks ago
|
FULL PRIMARY INDEX
Topic by Enzopre
1 month ago
HI at all
I´m new on Teradata and I'm studying the TPUMP utility from official documentation "Teradata Parallel Data Pump".
At some point in the chapter 1 section "What it Does" the document tells:
"The Teradata TPump task provides the acquisition of data from client files for application to
|
530 views
|
5 replies,
3 weeks ago
|
Check for special character in a string
Topic by Chandrashekarks
4 weeks ago
Dear Folks,
Need to identify names with atleast one special character in TD.
For ex: 'Robert John'
'Rama / Ram'
'.Akbar_raj'
'New_york_2'
'..###'
Out of these need to select below names, i.e. with atleast one spec character.
'Rama / Ram'
|
2 views
|
0 replies
|
Sampling implementation
Topic by vganti
1 month ago
Does a query sampling a certain number of rows from a table, such as the following, really scan all rows? The information from Explain below seems to indicate that all rows are scanned.
|
140 views
|
2 replies,
4 weeks ago
|
There is another way to remove a volatile table?
Topic by egmarrugo
1 month ago
volatile
Hello,
I am connected in SQL Assistant, and run a SP who believes, this SP uses a volatile table. I need to know how to remove the TV from the SP. Without having to disconnect from the session.
If not possible, I could tell you that answer docume tion meeting in order to have a physical document with which to sustain him that answer to my boss
|
232 views
|
4 replies,
4 weeks ago
|
Cursors in teradata
Topic by meetsatishg@gmail.com
23 May 2008
Hi,I am having a stored procedure containing cursor declaration.I have fetched employee ID's in the cursor ..I need to loop through the cursor variable..If some one knows, please let me know.......Thanks,
|
20794 views
|
4 replies,
4 weeks ago
|
Unable to catch the exception 7632
Topic by techie359
4 weeks ago
The exception 7632 is not caught by the below exception handler
declare exit handler for SQLEXCEPTION
Begin
set sqlcd= SQLCODE;
sel errortext into SQLmsg from dbc.errormsgs where errorcode= sqlcd;
insert into error_table(proc_name,code,msg,date_time) values('proc',:sqlcd,:SQLmsg,current_timestamp)
end
|
6 views
|
0 replies
|
Pages
|
|