Stored Procedure Vs Bteq - response (3) by sudheer51
"BTEQ" (Basic Teradata Query) is a tool (Client) to compose queries (and to see results). Where as "StoredProcedure" is a subroutine (a concept) in SQL. These two cannot be compared.., Its like,...
View Articleselecting values from a table where max value is null - response (1) by KS42982
One another option is to use CASE WHEN. To know what would work better, you can check EXPLAIN and compare the performance of different options.
View ArticleReset rank when date interval exceeds limit - response (2) by KS42982
Yup, it would work perfectly.
View ArticleBest way to generate the Sequential numbers : CSUM or IDENTITY columns? -...
Hi Experts, My Requirement is to generate the Sequential numbers in Column .. As It can be done in two ways : A) define as identity column b) CSUM(1,1) but i got to know from one of my peer that...
View ArticleINFORMATICA USES SECONDARY INDEXES? - response (4) by KS42982
No, I don't think UPDATE TPT also supports unique SI.
View ArticleValue ordered NUSI - forum topic by Moutusi
Hi All, I have some doubts on value ordered NUSI. 1. Can we create a NUSI on a column that already has a Value-Ordered NUSI defined on the same column? In that case will it have different...
View ArticleProblems with Year part in date - forum topic by barani_sachin
Hi All, I have a SP like this replace procedure temp(in indate date,out temp varchar(100)) begin set temp=indate; end;when i execute this SP, i am getting the date with year part contalining only two...
View ArticleStored Procedure Vs Bteq - response (4) by rajeev saravanan
Hi Sudheer Thanks for getting back ! Yeah i understand Bteq is a tool but what i meant was a comparison of the Bteq scripts and SP there are things which can be accomplished using both a Bteq script in...
View Article"Replace" in Teradata - Only SQL statements ? - forum topic by praneethbobba9
Hi All I'm trying to implement Oracle REPLACE() function in teradata using SQL statements only. I searched the forum , but found Oreplace() UDF as the only solution. Can someone help me in...
View Article"Replace" in Teradata - Only SQL statements ? - response (1) by KS42982
Depends upon what you want to do, usually you can do it using different combinations of functions like, CASE WHEN, SUBSTR, LENGTH or CHAR_LENGTH, POSITION etc. If possible, post the sample of data on...
View Article"Replace" in Teradata - Only SQL statements ? - response (2) by CarlosAL
TD 14 implements oReplace() as a native Teradata Function. HTH. Cheers. Carlos.
View ArticleWith recursive in a Select - response (4) by attique.yousaf
Hi, i have almost a same sort of question, but a bit more detailed one. Can anyone just tell me how to run the following query without using recursive view or temp tables. All i want to do is to merge...
View ArticleBest way to generate the Sequential numbers : CSUM or IDENTITY columns? -...
Hi Nishant, you have to define "sequential" first, do those value have to be: - really sequential (based on the position in the input file or some other order) - without any gaps? - or just unique?...
View ArticleProblems with Year part in date - response (1) by dnoeth
You can add a FORMAT phrase: set date = indate (format 'yyyy-mm-dd') Dieter
View Article"Replace" in Teradata - Only SQL statements ? - response (3) by dnoeth
Hi Praneeth, you shouldn't try to implement REPLACE with basic SQL functions, it's not worth doing it. Better get your dba to install oREPLACE (and some more Oracle UDFs like oTRANSLATE). Dieter
View ArticleWith recursive in a Select - response (5) by dnoeth
You have to create a recursive view first and then a second view on top of it. Did you use the correct syntax CREATE RECURSIVE VIEW instead of CREATE VIEW? Dieter
View ArticleHow to Use Multiple With Recursive Statements in a Query in TD version 14 -...
Yesterday our DBA's completed the update of our Teradata test environment to version 14. The PDF document Teradata Database - Release Summary - Release 14.0 states, "Multiple WITH/WITH RECURSIVE...
View ArticleMLOAD DELETE TASK - forum topic by suhailmemon84
Does anyone know why the mload delete task does not allow delete based on a primary index? I need the answer just out of curiosity. Regards, -SuhailTags: multiloaddeletetaskForums: Database
View Article"Replace" in Teradata - Only SQL statements ? - response (4) by praneethbobba9
Thanks for the response guys. Carlos -- I couldnt find any Oreplace function in TD 14. Could you help me in using in ver 14.
View Article