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

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 Article


Unable 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 Article


how 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 Article

fetching 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 Article

macro 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 Article


DBC.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 Article

macro sql Optimization - response (3) by VBurmist

sorry for my previous post, I've not seen the 2nd explain.

View Article

ARCMAIN 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 Article


Adhoc 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 Article


Get 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 Article

fetching data by joining 2 tables in a view - response (10) by ulrich

how many rows has your table t2? 

View Article

CASE 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 Article

CASE STATEMENT - response (1) by VBurmist

just substitute: if -> case when use -> then and add the "end" at the end.

View Article


CASE 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 Article

CASE 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 Article


CASE STATEMENT - response (5) by MBR

@bikky6...thanks for your quick response but the code is not working..

View Article

Need 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 Article


DBC.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 Article

Need 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 Article

CASE 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
Browsing all 14773 articles
Browse latest View live


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