Deleting duplicate rows in multiset table - response (2) by mayya@teradataforum
Thanks Harpreet. But is there any way of deleting such records directly from main table without using volatile tables or any other intermediate tables.
View ArticleTrying to use Teradata ODBC drivers on linux redhat with UnixODBC driver...
So if I am on a corporate system with unixODBC 2.2.1 I am SOL unless I go the route of building my own version based on 2.3.0 or 2.3.1? Also, since I cannot modify /etc/odbcinst.ini, what do I need to...
View ArticleCombine Multiple Select Statements - forum topic by MBSconnection
How do I combine multiple Select queries? I have 7 queries run separately. Each query return 2 columns. Count(of something), (date) Date Range is Fixed for each query Set to 1 Week only. I need to see...
View ArticleCombine Multiple Select Statements - response (1) by MBSconnection
SELECT (COUNT (DISTINCT RP.REGISTER_ID), CAST (RPE.CEMAIL_DATETM AS DATE) FROM SCHEMA_1.REGISTER_TBL RP INNER JOIN SCHEMA_2.MPROGRAM MP ON RP.MPRG_NBR= MP.MPRG_NBR INNER JOIN SCHEMA_2.RPEMAIL_ADDR RPE...
View ArticleCombine Multiple Select Statements - response (2) by MBSconnection
Looking forward for all the help I can get, Appreciate it in Advance.
View ArticleCombine Multiple Select Statements - response (3) by KS42982
You can do UNION ALL between all these queries and get 7 rows in one answer sheet in one shot.
View ArticleDeleting duplicate rows in multiset table - response (3) by KS42982
If you do not want to create any intermediate table then you can add another column and can use RANK or ROW_NUMBER and then use QUALIFY to delete duplicate record.
View ArticleCombine Multiple Select Statements - response (4) by MBSconnection
Union Work but it doesn't give me what I want. I think what I may be looking for is something I have found in Oracle but not sure how would I use it in Teradata...
View ArticleDeleting duplicate rows in multiset table - response (4) by mayya@teradataforum
Hi, As i mentioned before in my first post, select * from jedi_mvn_db.zam_multiset where (col1,col2,col3) in (select col1,col2,col3 from jedi_mvn_db.zam_multiset group by 1,2,3 having count(*)>1)...
View ArticleDisctribution of rows in Fall back AMPs - forum topic by mayya@teradataforum
Hi All, Rows will be distributed among the AMPs based on PI value. But if i consider that the table is fall back protected and I insert a row in it, then the row will go to appropriate AMP and get...
View ArticleIssue in loading "?" as first character in the field. - forum topic by Kiruthi
Hi, I am facing issue in loading question mark(?) as first character after space for a field in the table. For exampleINSERT INTO TEST SET NAME = " ?A BCD" ; I ran the above query. The teradata...
View ArticleIssue in loading "?" as first character in the field. - response (1) by dnoeth
I assume you run it in SQL Assistant? Go to Tools- Options - Query and uncheck Allow use of Named Parameters in queries Dieter
View ArticleDisctribution of rows in Fall back AMPs - response (1) by dnoeth
Hi Mahesh, it's using the same hashing algorithm, but a different hashmap, the Fallback Hashmap. Check the Database Design manual: Chapter 8: Teradata Database Indexes and Partitioning Hash Maps Dieter
View ArticleDeleting duplicate rows in multiset table - response (5) by dnoeth
Hi Mahesh, you can't do that without an intermediate table (unless you use the internal ROWID which is no longer available). Depending on the number of duplicates you might do Harpreet's approach (huge...
View ArticleCombine Multiple Select Statements - response (5) by dnoeth
Just put each SELECT in a Dervived Table and Join them on the DATE. Additionally you might reduce the number of queries by combining those with the same JOINs, but different WHERE into a single query,...
View Articlequery on cumulative sum..... - response (1) by vuyyuru05
the table data is like below. Date Name Measure 2013-07-01 A 10 2013-07-01 B...
View Articlequery on CSUM - response (2) by vuyyuru05
Hi Dieter, the table data is like below. Date Name Measure 2013-07-01 A 10 2013-07-01...
View Articlequery on CSUM - response (3) by Qaisar Aftab Kiani
You need to use window aggregate function, something like this should work... SEL NAME, MEASURE, DATE, SUM(MEASURE) OVER(PARTITION BY NAME ORDER BY DATE ASC ROWS UNBOUNDED PRECEDING) AS CUM_AMT FROM...
View Articlequery on cumulative sum..... - response (2) by Qaisar Aftab Kiani
Answered herehttp://forums.teradata.com/forum/database/query-on-csum#comment-80303
View ArticlePrimary key and Primary index on a same column - forum topic by barani_sachin
Hi All, While creating a table if i specify both the Primary Index and Primary Key on the same column the table cretion fails. CREATE TABLE temp4243426 ( name INT NOT NULL, name2 INT NOT NULL,...
View Article