ROW_NUMBER() same values - response (4) by TD_WFS
Hi As khurram said,the same two rows will have the different row_numbers for idenity and it will diplay sorting order if you put orderby clause. Thanks
View ArticleUnable to access application tables. - response (3) by sayali1129
Hello, Thanks for sharing this information. But when I try to access the same tables using Oracle Developer or some other sql client I do not face this issue . Its just that I get this error when I try...
View Articlehow does compress work in tables - response (2) by TD_WFS
Hi Yep ,as Qaisar said,If the compress the column values which they are repeating and keep those columns as compress,so we can save some space .We would observe the saved space ,If it is a huge data or...
View Articlefetching data by joining 2 tables in a view - response (9) by Arun1377
Hi Ulrich, PFB the DDLs , data in the table and the select statement in the view. CREATE MULTISET TABLE DB_TEST.T1 ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT, ( A...
View Articlemacro sql Optimization - response (2) by dnoeth
There's no partition elimination in the 2nd explain because this has been submitted using Prepared SQL (':?') while the 1st explain was done with hard-coded literals. There should be a simple solution...
View ArticleDBC.tvFields.CompressValue does not exist - response (1) by dnoeth
Which client do you use to "double-click"? It seems to directly access the base tables (which is strongly not recommended) instead of the views. Regarding dbc.Colums it's strabge, because this column...
View Articlemacro sql Optimization - response (3) by VBurmist
sorry for my previous post, I've not seen the 2nd explain.
View ArticleARCMAIN giving Error 3802:Database '$ARC' does not exist. - response (3) by...
I'm unable to find my archived file in my system can anyone please help me how to locate the file following is the script LOGON IP/dbc,dbc; ARCHIVE DATA TABLES...
View ArticleAdhoc SQL request - forum topic by bikky6
CREATE TABLE ORDER_SRC ( ORDER_ID INTEGER, ORDER_TEMPLATE_ID INTEGER ); INSERT INTO ORDER_SRC VALUES(1,3); INSERT INTO ORDER_SRC VALUES(2,4); INSERT INTO ORDER_SRC VALUES(3,6); INSERT INTO ORDER_SRC...
View ArticleGet previous column vale till it reaches another not null value - response...
Yes.I have approached using start and end dates concepts.But still,bcoz of this i came to know one new option in OLAP.Thank you.
View Articlefetching data by joining 2 tables in a view - response (10) by ulrich
how many rows has your table t2?
View ArticleCASE STATEMENT - forum topic by MBR
Hi, i want to conver the below 'if' statement into 'CASE' statement can any one help me on this please. IF (PLNV.LMV_BUS_TYPE_NEW) = ('COR') if LM_PASS_THRU_EXPRESS_IND = '3' use...
View ArticleCASE STATEMENT - response (1) by VBurmist
just substitute: if -> case when use -> then and add the "end" at the end.
View ArticleCASE STATEMENT - response (2) by bikky6
CASE WHEN PLNV.LMV_BUS_TYPE_NEW='COR' THEN CASE WHEN LM_PASS_THRU_EXPRESS_IND = '3' THEN LV_LX_FUND_PRIN_BAL ELSE CASE WHEN LV_LX_FUND_PRIN_BAL > 0 THEN LV_LX_FUND_PRIN_BAL –...
View ArticleCASE STATEMENT - response (3) by bikky6
Paste this in SQL assistant to gain understaing of indentation. CASE WHEN PLNV.LMV_BUS_TYPE_NEW='COR' THEN CASE WHEN LM_PASS_THRU_EXPRESS_IND = '3' THEN LV_LX_FUND_PRIN_BAL ELSE...
View ArticleCASE STATEMENT - response (5) by MBR
@bikky6...thanks for your quick response but the code is not working..
View ArticleNeed help in understanding Teradata's behaviour - forum topic by HateOra
Hi Team, we have below query , where we are geting stange results, if i just run Inner Query - A alone, i get lets say 100 records but when i run complete query , i.e. lefter outer join with Inner...
View ArticleDBC.tvFields.CompressValue does not exist - response (2) by sk73
Thanks Dieter. I used TD- Admin. Yes, the field returns NULL now. While the restore was happening, I did not do a DIPALL. That must have been the culprit. :( Thanks, SS
View ArticleNeed help in understanding Teradata's behaviour - response (1) by ulrich
you don't have at some point an where on B.x = something? This would convert the outer to an inner join and would filter out rows.
View ArticleCASE STATEMENT - response (6) by ulrich
Hi MBR, what do you exptect others to do? You don't share DDL and data (as inserts!!!). So how could you expect that syntactially correct code is posted? And even now you don't share even the return...
View Article