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

Dynamic Column Name - response (5) by saurabhkamath

Thanks again Dieter  I am done with the VIEW. I had to use a stored procedure which replaces the VIEW. The only drawback is, to get the report I need to first call the stored Procedure and then select...

View Article


Oracle LAG function in TD - response (2) by amitbajpai

Thanks for the quick response. I have tried using the below TD equivalent function for LAG function but the data is not matching exactly (row by row) from Oracle and TD query. Any reason why? Is there...

View Article


How does the "With Recursive" work? - forum topic by cravetolearn

Hi  I am trying to understand how the "WITH RECURSIVE" Statement works. Could anyone give a step by step explanation with an example.   Thanks  Siva  Tags: recursiverecursive sqlwith recursiveForums:...

View Article

Dynamic Column Name - response (6) by saurabhkamath

  REPLACE PROCEDURE SP_TEMP () CALL DBC.SYSEXECSL('REPLACE VIEW TEMP_V AS SELECT ID,ARTICLE, CASE YEAR_MONTH WHEN CAST(CAST(CAST(DATE AS FORMAT 'YYYYMM')AS CHAR(6))AS INT) THEN AMOUNT ELSE 0 END AS...

View Article

find the min & max value for the below query - response (6) by Gowtham

data type is VARCHAR(10). i know, we cannot able to compare 1Year and 8Month but as per its order using CASE function we can define some interger values for that, then we can compare right. yes am...

View Article


Using the rexexp_substr function in TD14 - response (2) by vt186001

Hi Joe, There was a discrepancy between the documentation and the actual code.  The fix is in the work.  In the meantime, regexp_replace can be used to simulate this by specifying the starting position...

View Article

validate whether cast will work or not - forum topic by monschke

Is there a function to check whether a cast will work for individual records?  Currently, if one record in a set will fail a cast, the complete SQL will fail with error such as:  "SELECT Failed. 2621:...

View Article

Cast from CHAR(20) to SMALLINT - forum topic by SCHINN

Hello Friends. I am trying to convert a column havign CHAR(20) to SMALLINT and getting the below error.... I have the below distinct values....as char(20). this query Cast(cast(red_Cd as CHAR(3)) AS...

View Article


Is the full TTU 14.10 available for download yet? - forum topic by ericsun2

The 14.10's documents have been fully published in info.teradata.com but the download media for "BCD0-1560-0000" seems not fully available. I can only find the following files so far:...

View Article


INFORMATICA USES SECONDARY INDEXES? - response (5) by hagedorn

Thank you for the answer and from what I see, that is correct!

View Article

Cast from CHAR(20) to SMALLINT - response (1) by SCHINN

Friends...Any help on this would be appreciated.. Thanks..

View Article

concatenate value of multiple rows into one Single row - forum topic by Bill...

Hi, I searched through the forums and i know a similiar question has been asked and answered, but it doesnt work with my requirements. i tried writing a recursive query something like below, but the...

View Article

Error in select statement with "with" keyword inside procedure - forum topic...

replace procedure myprocess(in p_date date)  Begin  insert into my_table(field_1,field_2)  with tmp_tab(field1,field2,field3) as  (select field1,field2,field3     From my_table2)  select field1,field2...

View Article


Error in select statement with "with" keyword inside procedure - forum topic...

replace procedure myprocess(in p_date date)  Begin  insert into my_table(field_1,field_2)  with tmp_tab(field1,field2,field3) as  (select field1,field2,field3     From my_table2)  select field1,field2...

View Article

Error in select statement with "with" keyword inside procedure - forum topic...

replace procedure myprocess(in p_date date)  Begin  insert into my_table(field_1,field_2)  with tmp_tab(field1,field2,field3) as  (select field1,field2,field3     From my_table2)  select field1,field2...

View Article


Ceating secondary indexes for performance gains... - forum topic by...

Quick Question : if you create a secondary index on an already existing table for the purpose of gaining greater performance on your queries,  is it required to re-load the table and collect statistics...

View Article

Cast from CHAR(20) to SMALLINT - response (2) by chinmay Athavale

Hello Sachin, I tried the syntax provided by you and it worked for me: sel name,cast (cast(name as char(6)) as smallint) from delta Regards, Chinmay Athavale

View Article


Space consumed by Primary Index - forum topic by 02CSE33

Hello Friends, Can you please help me with knowing about space consumption by Primary Index of a Table. I want to know how much PERM does it consumes. Regards, Sudipto.Forums: Database

View Article

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

Hi Bill, you're creating a huge intermediate spool due to the join on parent_id = parent AND child_id >child which is a kind of cross join. Better use the following approach: CREATE VOLATILE TABLE...

View Article

Error in select statement with "with" keyword inside procedure - response (1)...

What realese are you running? A few releases ago WITH was not allowed n SPs. 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>