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

query on cumulative sum..... - forum topic by vuyyuru05

Hi Dieter, My sql requirement is as below.  Please find below sample data.  can you please help in writing SQL...  Date Name Meaure Cumm. Measure by Name Measure Total Cumm. Measure By Date 1-Jul A 10...

View Article


query on CSUM - response (1) by dnoeth

Sorry, but this is not readabla/understandable. You should provide DDL and some INSERTs.  Dieter

View Article


Formatting date in Multiload dd-mmm-yy - forum topic by rroy13

I am using a multiload to insert and update rows in a table. The date on the input file is formatted as dd-mmm-yy, when I insert it into the table using  :date_field (DATE, FORMAT 'DD-MMM-YY') after...

View Article

Issue with Number data type in Teradata 14.0 - forum topic by gsuresh1802

I am migrating a table from Oracle to TD 14.0 and using it for further transformations. After migrating it to TD, I have ran minus on both TD & Oracle table data (which is copied TD by some third...

View Article

To check ALL condition in Teradata - response (4) by pavan.polish

Hi Dieter, I got it what I expected. Many Thanks. Sagar.

View Article


Can multiple joins be avoided for the same table? - forum topic by pavan.polish

Hi All, I have a requirement as below: Table1:- Group_ID - Member_ID A - B A - C X - Y X - Z Table2:- ID - Value1 - Value2 A - 111 - 222 B - 444 - 666 C - 566 - 556 X - 999 - 777 Y - 444 - 555 Z - 433...

View Article

Can multiple joins be avoided for the same table? - response (1) by qbeg00

Hello,I think You want somethink like this:SELECT A.Group_ID, B.Value1 as Group_val1, B.Value2 as Group_val2, A.member_ID, C.Value1 as Member_val1, C.Value2 as Member_val2 FROM Database.Table1 A LEFT...

View Article

help me to group the records - response (8) by tusharraste

Hi Gowtham, I tried the following at it seems to be working, please check and let me know :create volatile table brain_twister ( id integer, id_type char(1), stdt date, endt date ) primary index (id)...

View Article


Collect Statistics - response (2) by tclear

No error message is generated. After lots of trial and error, the solution was to uninstall and reinstall Teradata SQL assistant. Do not know what went wrong, but everything is back to normal, for now....

View Article


Formatting date in Multiload dd-mmm-yy - response (2) by rroy13

Additional information. Input File layout: .LAYOUT INPUT_LAYOUT;                                           .FIELD FILLER_1                     *CHAR(1);          ....  .FIELD IN_BUS_CRT_DT...

View Article

Collect Statistics - response (3) by VBurmist

You can use DBQL to locate the error code and message (if the client was able to submit the SQL statement to the Teradata, which is hopefully true).  

View Article

DELETE FROM PPI - VERY SLOW - response (5) by suhailmemon84

Thank you Dieter.  -Suhail

View Article

TPUMP pack parameter - response (1) by rohanpatil008

please can anyone answer the above question

View Article


TPUMP pack parameter - response (2) by Shelley

 "PACK <statements>" in TPUMP  are used  to specify the number of data records to be packed into one request, PACK is a TPump keyword and “statements” actually refers to the number of data...

View Article

Accessing Teradata DB via SQL Server - forum topic by valentinem

I have to write an extract in SQL Server accessing a teradata database.  I'm running into problems with fields that have been defined with a column title.  If I select * from table - the select fales...

View Article


Can multiple joins be avoided for the same table? - response (2) by pavan.polish

Hi Peter, Thank you and Yes exactly. Just thought of checking whether this can be achieved with only one LEFT JOIN instead of 2 LEFT JOINs on the same table. Regards, Sagar

View Article

PPI or NUSI? - response (5) by Nishant.Bhardwaj

Thanks dieter & Raj,    Just to elaborate more ,mentioning below the example-->    Create table Orders  (orderid number NOT NULL,  order_yr_mon integer ,  order name varchar(100),  city...

View Article


PPI or NUSI? - response (6) by dnoeth

Hi Nishant, why don't you simply try it yourself and explain the query? You would have noticed that your DDL will fail.  Dieter

View Article

Formatting date in Multiload dd-mmm-yy - response (3) by dnoeth

This behaviour is defined by the "century break" setting, it can only be changed on a system level by your DBA using dbscontrol. Otherwise there are two solutions: - insert '20' using...

View Article

Can multiple joins be avoided for the same table? - response (3) by dnoeth

Hi Sagar, you might do a LEFT JOIN using an ORed condition plus some CASE, but this will result in a real bad product join. So better keep the two joins :-)  Dieter

View Article
Browsing all 14773 articles
Browse latest View live


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