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

Problems with the CASE structure - response (3) by ulrich

Hi, T1 = TRIM(TRAILING FROM Str1) type(TRIM(TRAILING FROM Str1) ) states that this is a varchar(10) - so you put in a char(10) and convert it to a varchar(10). -> LT1 = CHARACTER_LENGTH(T1) = 0 Now...

View Article


Have NULLs in DATE fields always been possible? - response (2) by M.Saeed...

Hi, All RDBMS should allow nulls to capture all the business scenarios, But it is Application designers decision to either keep the null, or some constant value instead of null to represent some...

View Article


Move column data as rows - response (5) by M.Saeed Khurram

Hi, If you want to put data in all columns into a single column then the technique advised by Raja will obviously work. But if you want to place the data in these column into a single row then you...

View Article

Recursive Query - response (14) by dnoeth

Hi Sarah, assuming your actual data is not based on increasing values you need to do a recursion starting with the LATEST_DND: WITH RECURSIVE cte(DND_NO, REC1, LATEST_DND) AS ( SELECT DND_NO, REC1,...

View Article

Tools to compare two teradata's DB and find the differences - response (4) by...

Thanks Raja, It worked.

View Article


Increase the size of DBC - response (1) by dnoeth

DBC can only be restored to a freshly SYSINITed system. The available perm space of the Express version can't be increased, you better download the 1TB version.

View Article

macro sql Optimization - forum topic by QI.YOU

REPLACE MACRO MSTMACRO.MAC_TSF_PRE_PAYMENT_0002 ( Start_Dt VARCHAR(20) ,End_Dt VARCHAR(20) ,Account_Org_Cd VARCHAR(10) DEFAULT '0' ,Org_Cd VARCHAR(10) DEFAULT '0' ,Pre_Fee_Cd VARCHAR(10) DEFAULT '0'...

View Article

Tools to compare two teradata's DB and find the differences - response (5) by...

You are always welcome. The above one is just a skeleton. You could have added more features , to serve automation. Cheers, Raja

View Article


How to simplify query that runs out of spool space? - response (9) by...

Hi All, Can some one point me to a document which talks about the TD 14 version new additional SQL standards that improve the performance of the query. Either in terms of indexes, Partitions, or...

View Article


Get previous column vale till it reaches another not null value - forum topic...

CT LKP(EMPNO INTEGER,TYPE_CD VARCHAR(10),EFF_DT DATE); INS INTO LKP VALUES(1,'A','2013-01-01'); INS INTO LKP VALUES(1,'B','2014-01-01'); CT MAIN(EMPNO INTEGER,EFF_DT DATE); INS INTO MAIN...

View Article

Get previous column vale till it reaches another not null value - response...

   select m.empno, m.eff_dt, p.type_cd from        main as m LEFT OUTER JOIN ( select empno,             eff_dt as start_dt,             coalesce (max(eff_dt) over (partition by empno order by eff_dt...

View Article

Get previous column vale till it reaches another not null value - response...

Hi Bikky, I hope the following query will fullfil your requirement. SEL M.EMPNO AS MAIN_EMP, M.EFF_DT AS MAIN_DT, --L.TYPE_CD, MAX(TYPE_CD) OVER(ORDER BY M.EFF_DT RESET WHEN TYPE_CD IS NOT NULL) AS...

View Article

Get previous column vale till it reaches another not null value - response...

Excellent Saeed! I have never come accrsoo through RESET usage.Really it's an eye-opener.Could you please give me any link that provides more infor RESET usage

View Article


Get previous column vale till it reaches another not null value - response...

View Article

macro sql Optimization - response (1) by VBurmist

  Hello,  your Explain shows that partition elimination does happen, both for PMART_ST.PRE_PAYMENT_DETAIL and PMART_ST.PRE_PAYMENT_RESETL_DETAIL tables (the phrase "single partition"):  we do an...

View Article


Get previous column vale till it reaches another not null value - response...

Bikky, I dont know why my previous post is published empty. But you can get detailed information about this claues at teradata info home. The URL is as follows:...

View Article

Get previous column vale till it reaches another not null value - response...

Can you pls repost the link as I am unable to get it..I am seeing a scroll bar only.

View Article


Get previous column vale till it reaches another not null value - response...

Try this:http://www.info.teradata.com/htmlpubs/DB_TTU_14_00/index.html#page/SQL_Reference/B035_1145_111A/Ordered_Analytical_Functions.083.010.html 

View Article

regarding the conversion of currency from INR to n e other currency - forum...

i have one table with amount in Indian currency and currency_code is INR and having start_date and end_date column.and i have another table which have details about the conversion...

View Article

Spool Space Usage - forum topic by Kishore_1

Spool space is used by user to store intermediate result of queries.They are released as and when a query finishes. I would like to know is there any way to track the spool space usage of a particular...

View Article
Browsing all 14773 articles
Browse latest View live


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