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

Usage of Join indexes? - response (3) by Nishant.Bhardwaj

Thanks khurram & Rglass.  so what i got from the above discussion is --> a)  we can load the data from our source files to staging tables  through TTU (mload,fload) ( as there in no JI defined...

View Article


Multiple Grand Totals - response (1) by Raja_KT

Hi, It seems you miss out the BY + fieldname. I am not sure if it allows for multiple with sum too. I test for onewith sum(xxx) by field1.... it works fine. However, I test this way using. You can make...

View Article


RESERVED WORDS:Query to find Views and macros that reference a particular...

Thank you, Ulrich.

View Article

Usage of Join indexes? - response (4) by M.Saeed Khurram

Nishant, You have made a great explaination. Yes this is a good methodology. 

View Article

Usage of Join indexes? - response (5) by Nishant.Bhardwaj

Thanks Khurram.. Just wanted to know , when we would use Bteq to load from staging table to base tables, there is a disadvantage that it would be slower in comprasion of directly loading from Source...

View Article


Multiple Grand Totals - response (2) by dnoeth

Hi Bill, there's only one grand total. But when you need multiple aggregates on the same level you can simply delimit them by comma: with sum(RACK_UNITS)(title 'Total Rack Units:'),...

View Article

Usage of Join indexes? - response (6) by M.Saeed Khurram

Nishant, I believe within Teradata you have a universe of optimizations. There are plenty of ways avaialble to optimize BTEQ for loading purposes. You can start optimizations from your SQL SELECT...

View Article

Why explain plan is so off - response (2) by Qaisar Aftab Kiani

The optimizer doesn't always needs stats to give estimates. If full stats are collected and available, then the optimzer will give you realistic estimates, else if the full stats are not collected then...

View Article


help required for a update scenario - response (9) by Qaisar Aftab Kiani

Considering you have a table that maintains the group and primary customer relationship within that group, you can execute the below mentioned query to get the desired results. CUSTMOER_GROUP should...

View Article


Difference between NUSI and Hash ordered NUSI? - forum topic by Nishant.Bhardwaj

Hi all, Need a suggestion on defining  a SI on a column which has very low cardinality (0 or 1 always ). this column would be used in most of the cognos reports. We are thinking of making it as NUSI...

View Article

Error in update statement - forum topic by bikky6

UPDATE CUST_T FROM (SELECT A.CUST_ID,A.CUST_DT FROM CUST_T B INNER JOIN CUST__HIER A ON B.LAST_CUST_ID = A.CUST_ID)  UPD1 SETCASE WHEN IMMED_CUST_DT = '9999-12-31' THEN IMMED_CUST_DT end...

View Article

Error in update statement - response (1) by M.Saeed Khurram

HI, Try this: UPDATE CUST_T FROM (SELECT A.CUST_ID,A.CUST_DT FROM CUST_T B INNER JOIN CUST__HIER A ON B.LAST_CUST_ID = A.CUST_ID) UPD1 SET CASE WHEN IMMED_CUST_DT = '9999-12-31' THEN IMMED_CUST_DT =...

View Article

Error in update statement - response (2) by bikky6

Still it gives same error.. I have written case statement in SELECT condition itself.It got solved . But Is there any other way of writing the case stmt in set?

View Article


Error in update statement - response (3) by Raja_KT

Maybe you can dont you try with merge into statement?  similar to  MERGE INTO Department      USING USING (SELECT ....... FROM contact WHERE contact_number = ....)  a on (condition a=b) WHEN MATCHED...

View Article

ObjectUseCountCollectRate - forum topic by JustMe

I want to modify the ObjectUseCountCollectRate but I need to know if it requires a DBS restart after the MODIFY and WRITE.  Anyone know?Tags: DBS control...

View Article


Multiple Grand Totals - response (3) by spinage

Thank you Raja and Dieter.  Dieter's response gave me the output I was looking for.  And yes, I am still using BTEQ for reports.  I know I could use Crystal Reports, but I've never been a fan of that...

View Article

ObjectUseCountCollectRate - response (1) by dnoeth

All dbscontrol options are described in detail in the Utilities Volume 1 manual: Changes Take Effect After the DBS Control Record has been written.

View Article


Multiple Grand Totals - response (4) by dnoeth

Hi Bill, almost any reporting tool should be able to do what you want, but why changing it when it suits you? I just wondered because such BTEQ reports used to be printed directly on that nice...

View Article

joining two tables using SUBSTR - forum topic by Lalithachintha

Hi All, I have a requirement where there are two tables Tbl1 and Tbl2 .i want to join these two tables based on the columns Cntry_code. The Data is like : Tbl1...

View Article

joining two tables using SUBSTR - response (1) by M.Saeed Khurram

Hi, The following thread will help you to construct a solution, you can get and insert these values into a temp table and then join on the basis of these...

View Article
Browsing all 14773 articles
Browse latest View live


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