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

Concatenate o/p of two select statements - topic by teradatauser2

Hi, I have a situation in which i need to concatenate o/p of two sel queries something like below: Sel col1,col2,col3 from table1 || sel max(eff_date) from table2 This is just for illustration, the...

View Article


Help required on the query using analytic function - response (1) by dnoeth

Hi Bala, OLAP functions are probably not the right approach (i tried them on a similar problem a few years ago and didn't find an efficient solution), but this can be easily solved (if the number of...

View Article


Concatenate o/p of two select statements - response (1) by dnoeth

Sel col1,col2,col3, (sel max(eff_date) from table2) from table1Dieter  

View Article

Can't compile UDF's on Windows - topic by tdgi

I can't seem to compile the UDF's run by DIP option 14 on Windows. I've got Visual Studio 2005 and the Platform SDK installed.  It keeps failing on a missing limits.h.  This file is located in...

View Article

Can't compile UDF's on Windows - topic by tdgi

I can't seem to compile the UDF's run by DIP option 14 on Windows. I've got Visual Studio 2005 and the Platform SDK installed.  It keeps failing on a missing limits.h.  This file is located in...

View Article


Can't compile UDF's on Windows - topic by tdgi

I can't seem to compile the UDF's run by DIP option 14 on Windows. I've got Visual Studio 2005 and the Platform SDK installed.  It keeps failing on a missing limits.h.  This file is located in...

View Article

Can't compile UDF's on Windows - topic by tdgi

I can't seem to compile the UDF's run by DIP option 14 on Windows. I've got Visual Studio 2005 and the Platform SDK installed.  It keeps failing on a missing limits.h.  This file is located in...

View Article

Can't compile UDF's on Windows - topic by tdgi

I can't seem to compile the UDFss run by DIP option 14 on Windows. I've got Visual Studio 2005 and the Platform SDK installed.  It keeps failing on a missing limits.h.  This file is located in...

View Article


Concatenate o/p of two select statements - response (3) by KS42982

The above solution would work perfectly with the scenario you mentioned. However, if you have more than one column to concatenate in your results and there is absolutely NO relation between 2 tables...

View Article


Concatenate o/p of two select statements - response (4) by KS42982

Actually no need for WHERE 1=1, it would work without that too. SEL col1,col2,col3, MAX(eff_date), COUNT(table2.xyz), ... FROM table1, table2 GROUP BY 1,2,3

View Article

Concatenate o/p of two select statements - response (5) by Mathuram

Query below is the another way to achieve the result.... SEL Col1,Col2,Col3,MaxCol FROM table1, (SEL MAX(eff_date) MaxCol FROM table2)t

View Article

Concatanation of the rows from one columns - response (18) by extreme_logic

Here's a link with a sample. http://thesimpleprogrammer.blogspot.com/2013/02/concat-rows-as-single-co...

View Article

Transform rows to one column string - response (6) by extreme_logic

Here's a link to a sample. http://thesimpleprogrammer.blogspot.com/2013/02/concat-rows-as-single-co...

View Article


Problem: concatenate multi rows in one row and column - response (2) by...

Here's a link to a sample. http://thesimpleprogrammer.blogspot.com/2013/02/concat-rows-as-single-co...

View Article

Can't compile UDF's on Windows - response (1) by tdgi

Had a browser/network error earlier today while I was posting my question. So sorry for the extra threads and please forgive me for the noise! (The question still stands though) :)

View Article


Help required on the query using analytic function - response (2) by BalaAG

Hi Dieter, Thanks for your response.I usually follow up your posts.Also will check out your SQL. Please clarify my queries regading the OLAP functions: 1. As per my knowledge,the reset command within...

View Article

Concatenate o/p of two select statements - response (6) by teradatauser2

  SEL col1,col2,col3, MAX(eff_date), COUNT(table2.xyz), ...  FROM table1, table2  GROUP BY 1,2,3 sel col1,col2..    DW_ACCT_ID_MAX.MAX_ID FROM (SELECT MAX(ACCT_ID) MAX_ID FROM table2) DW_ACCT_ID_MAX,...

View Article


Best approach to handle partition in truncate load table - topic by arbiswas

Dear Expert,  I have a table which is loaded daily and loading mechnism is Truncate-Load. The table has EMPLOYEE_ID as PI and Range partition on transaction date. The user queries on this table are...

View Article

Teradata Error Code 7693 - response (3) by taruntrehan

Thanks for the inputs. Resoved as the exception was thrown by a user defined fucntion.

View Article

Command Help : Alter table modify column - topic by taruntrehan

Hi All,   I have an existing table in TERADATA and it has a field named log_dttm defined as timestamp. I want to change the column data type to varchar(30). "alter table modify" failed to convert....

View Article
Browsing all 14773 articles
Browse latest View live


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