Imitating procedural language using SQL - response (3) by abin
Hi Dieter, I finally figured out how to achive this using SET logic with UNBOUNDED option. RECURCIVE query si too expensive because the table which the select reads from is large. And as you mentione...
View ArticleShould I create staging tables with PI or shall I create NOPI tables? -...
Thank you..Saeed and Raja. I am using TPT and NOPI tables as staging tables. I was in a doubt that NOPI tables will increase skewness but it looks fine. cheers :)
View ArticleHow can I load special character A^ ie A cap in teradata? - forum topic by...
I have data in Oracle like this 'A^'. Actually ^ should go on top of 'A', i.e I have A cap in one of my columns in Oracle. When I loaded to Teradata the row got rejected. So I have changed the...
View ArticleUpdate frequency of CurrentSpool in dbc.DiskSpace - forum topic by hobrob
Hi, How close to real time does the currentspool column update in dbc.diskspace? The reason I ask is because I have run a query to identify queries skewing in spool and noticed I had a larger than...
View ArticlePlease help me on BT/ET and ROLLBACK/ABORT - forum topic by philipalex
HI all, I am a new bee in TD and I am facing an issue. The details are given below. I am trying the below query, here I am trying to INSERT rows into a table and ROLLBACK... BT;INSERT INTO TABLEA...
View ArticleMultiple Teradata Query in a SQL Transformation Informatica - forum topic by...
Hi All, I am working in Informatica 9.1 and using Teradata as DB. In my mapping I am using a SQL transformation for inserting the data to TABLEA from TABLEB(the insert is done using the values from our...
View ArticleHow can I load special character A^ ie A cap in teradata? - response (1) by...
Do you mean 'Â'? That's a valid characer in Teradata's LATIN character set, "0xC2, LATIN CAPITAL LETTER A WITH CIRCUMFLEX". What extra character? In UNICODE this is U+00C2, should translate 1:1. Dieter
View ArticleUpdate frequency of CurrentSpool in dbc.DiskSpace - response (1) by dnoeth
Hi Rob, It's not "real time" but "whenever necccessary". When you explain your query you'll notice: explain sel * from dbc.DiskSpace; *** Help information returned. 31 rows. *** Total elapsed time was...
View ArticlePlease help me on BT/ET and ROLLBACK/ABORT - response (2) by dnoeth
You should commit a transaction only when you're shure you don't need a rollback :-) There's an ET before the ROLLBACK. Dieter
View ArticlePlease help me on BT/ET and ROLLBACK/ABORT - response (3) by ulrich
Hm, what you do is 1. Begin a transaction 2. Ins/select - at the end of the Ins/Select the transaction is still open. 3. End the transaction (Insert / Select is commited) 4. Rollback - What do you...
View ArticleUpdate frequency of CurrentSpool in dbc.DiskSpace - response (2) by hobrob
Ah OK, thanks. I think we have a phantom spool issue. I've run the query again and we have a handful of users who are not logged on but have currentspool > 0. Does phantom spool mean the space just...
View ArticleVolatile Table In View ?? - forum topic by taruntrehan
Hi, I am writing a view within which i have some restriction to apply. Following is my current working query : REPLACE VIEW person_view AS LOCKING ROW FOR ACCESS SELECT distinct date_time , person_id ,...
View ArticleUpdate frequency of CurrentSpool in dbc.DiskSpace - response (3) by dnoeth
The spool is released, i.e. not using space, but it's reducing the user's available spool because the size is not correct. In fact there's another source for wrong CurrentSpace, Orphan spools, which...
View ArticleVolatile Table In View ?? - response (1) by dnoeth
#1: Those MAX/MIN queries can usually be rewritten using RANK/ROW_NUMBER: SELECT * FROM _person QUALIFY RANK() OVER (PARTITION BY person_id, person_key ORDER BY date_time DESC) = 1 In most cases this...
View ArticleGet Most Current Date - forum topic by ca8172
Good Day All, This is my first time posting and have looked for help here before, but can't seem to figure out what I need to do. So I figured I would reach out and ask for assistance pertaining to my...
View ArticleGet Most Current Date - response (1) by dnoeth
The easiest way is to add a RANK: select ca8172.* ,ord.order_due_dt as ORD_DUE_DT ,ord.cust_reason_txt as RSN_TXT ,ord.order_reason_cd as ORD_RSN_CD from ORDER_ACTION ord, ca8172_AcctCharge ca8172...
View ArticleImporting data from excel using the insert statement - response (5) by rama35
HI FRIENDS , CAN ANY BODY GIVE SOME SYNTAX FOR THE INSERT STATEMENT BY PROMPT WITH NAME. I TRIED THIS: INSERT INTO "TABLE_1" (COURSE NUMBER,STUDENT NAME,SSN,STUDENT ID,ADDRESS) VALUES...
View ArticleImporting data from excel using the insert statement - response (6) by...
You can use the following syntax: INSERT INTO TABLENAME (COL1, COL2) VALUES(?COL1,?COL2);
View ArticleI'm trying to automate a process in Teradata, if the count is greater than 5...
-------------------------------------------------- i'm trying to automate a query that i have written , here i want to enable a QC check: -------------------------------------------------- if count on...
View ArticleI'm trying to automate a process in Teradata, if the count is greater than 5...
Which tool do you use to submit it? In BTEQ and (SQL Assistant 13.10+) you can use basic conditional logic: select count (*) from tableX having count(*) > 5; -- no row returned when count(*) <= 5...
View Article