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

concatenate value of multiple rows into one Single row - response (3) by...

  I am trying to create a group of ranking as shown in below table. I've used the row () over partition function it is just doing a row numbering. In fact, I want the min row number in column "clust_n"...

View Article


Secondary indexes - response (4) by Adeel Chaudhry

Which ETL tool you are using? Either you can do that in pre-SQL/post-SQL .... or have a combined script from dropping and loading SIs .... or even better option is to use TPT, if possible.  HTH!

View Article


Creating a table - forum topic by Ashutosh

Hi all, PLZ look into this queryCreate table ptemp.ateds as ( select a.ACCT_I,a.Open_D, a.Clse_D, year(a.clse_d) - year(a.open_d) as dte from pvdata.acct_base as a having a.open_d != null and...

View Article

Creating a table - response (1) by dnoeth

Hi Ashutosh, this problem pops up all every few days/weeks, the last time was yesterday :-) http://forums.teradata.com/forum/database/length-not-working Replace YEAR(a.clse_d) with EXTRACT(YEAR FROM...

View Article

Check for special character in a string - response (2) by dnoeth

Hi Chandrashekar, if oTranslate is installed it's easier. When you got a specific list of those special characters you might do  WHERE CHAR_LENGTH(col) <> CHAR_LENGTH(oTranslate(col, '/_#.', ''))...

View Article


concatenate value of multiple rows into one Single row - response (4) by dnoeth

You should post new questions as a new topic.  Based on your narration you might simply do a RANK instead of ROW_NUMBER?  Dieter

View Article

Volatile table V/S Perminent table - response (4) by KS42982

These all tables that you mentioned keep the data temporarily with different purpose. If you are looking to store the data permanently then you should not use either of these kind. Let us know what is...

View Article

union and filter - forum topic by tclear

select item , location , date , quantity from t1 union select item , location , date , quantity from t2 there will be cases where item,location,date will be the same, but quantity different. in that...

View Article


union and filter - response (1) by dnoeth

A direct translation of should be: select item , location , date , quantity from ( select 1 as x, item , location , date , quantity from t1 union select 2 as x, item , location , date , quantity from...

View Article


Handling Special Characters - forum topic by ritwikdey2809

Hi, I have a table which has a column where I can find special characters like &Altide; &Abc; etc. The total list of special characters is 110, I identified them using the logic anything...

View Article

There is another way to remove a volatile table? - response (3) by Fred

HELP VOLATILE TABLE; Will list the Volatile Tables that exist for the current session. You can simply DROP TableName; for any volatile table you want to remove prior to disconnecting the session. For...

View Article

qualify rank() over (partition.....question - response (11) by Kanch

Thanks Dieter :) I am getting the desired output.  Thanks Kanch

View Article

Migrating Cursors in Teradata - forum topic by drmkd17

Hi all,  Can anybody suggest the best way to migrate cursors of Oracle???Will temporary tables serve this purpose better.   Forums: Database

View Article


Need Help on two questions about TD architecture - response (7) by Santanu84

Thanks for your help

View Article

Unable to catch the exception 7632 - forum topic by techie359

The exception 7632 is not caught by the below exception handler  declare exit handler for SQLEXCEPTION Begin set sqlcd= SQLCODE; sel errortext into SQLmsg from dbc.errormsgs where errorcode= sqlcd;...

View Article


Get question on Sum function in TD - forum topic by xiangpzhang

hi, I am a layman in TD, and come across a Sum function issue. sel created_date (format 'YYYY/MM') (char(7)) as month ,count(*) as overall ,sum(table1. amount) as overall_amount ,sum(case when...

View Article

Get question on Sum function in TD - response (1) by shilpa1

Following query can be used - SEL created_date (FORMAT 'YYYY/MM') (CHAR(7)) AS MONTH ,COUNT(*) AS overall ,SUM(table1. amount) AS overall_amount ,COUNT(CASE WHEN amount>300 THEN 1 END) AS...

View Article


Cursors in teradata - response (4) by sws123s

@mdgmilen I was implementing a simialr thing kindly let me know, why the last row is fetched twice?

View Article

There is another way to remove a volatile table? - response (4) by egmarrugo

Thanks, for your help I see: SQL Reference - Data Definition Language - Syntax & Examples. Sorry for my english.

View Article

Aggregate Operations with Case Specific data - forum topic by Mandar.Nayak

Hello All, I have a report that is generating SUM for various code values. The data on which the aggregate is being run has a mix of upper and lower case data for the same value (e.g. 'AB',...

View Article
Browsing all 14773 articles
Browse latest View live


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