Need to save and execute a dynamically generated query(greater than 32K...
Hi All I have a procedure which dynamically generates queries. However in some cases the generated query is exceeding the maximum size of a VARCHAR due to which the variable holding the query in the...
View ArticleCollecting stats on unused column - response (2) by VBurmist
Hi, there are great articles from Carrie on what statistics should be collected. http://developer.teradata.com/blog/carrie/2013/02/statistics-collection-recommendations-teradata-14-0. Does a...
View ArticleCannot start Teradata on VM. Using non-admin logon of the computer. - forum...
Hi All, I'm pretty new to Teradata and trying to start the 40 GB Teradata 14 Express VMWare on a 64 bit Windows 7 machine with requisite hardware. I'm running the VM from a non-adminstrator user of...
View ArticleSelecting count(*) from multiple tables - forum topic by sunis12
Hi, I have 3 tables say a) account_details b) credit_trans c) debit_transI want a query which results in the total number of credit transaction and total number of debit transaction for each...
View ArticleSelecting count(*) from multiple tables - response (1) by learndwh
Hi try out the below query ... it will solve your proble select acc_no, sort_code, count(credit.acc_no), count(debit.acc_no) from account_details acct inner join credit_trans credit on acct.acc_no =...
View ArticleSQL MERGE Detecting Duplicate Rows - forum topic by ruranker
We are using the SQL MERGE statement as a method to perform straight inserts. When running in Teradata transaction mode, is there a way to detect and log records that do not make it to the target? For...
View ArticleCollecting stats on unused column - response (3) by samurai07
Hi, Collecting stats on unused columns is not advisable. In the above case, it will not impact the query performance. If you dont collect on the columns which are used in the query (usually in...
View ArticleSelecting count(*) from multiple tables - response (2) by sunis12
Thanks for the suggestion but there are ambiguity errors. I tried with acct to resolve ambiguity but that wont result in the output.. Output for this query is acc_no sort_code...
View ArticleJDBC Drivers for Coldfusion running on SUSE Linux - forum topic by Javamav
I apologize if this is a repeat topic, I tried to search through the forums here and found nothing useful about this topic. I have Coldfusion10 running on SUSE Linux. Using Coldfusion Administrator I...
View ArticleOne or more values to pass in a prompt - response (2) by TcognosD
It supposed to be pass through parameter. Can I not do this with out creating a SP? thanks,.
View ArticleSQL rewrite - forum topic by TcognosD
How can I rewrite following query to avoid join condition like this : AND SOM2.Address = SOM.ADDR_LINE1 || '' || ADDR_LINE2 ||'' || CITY || '' || STATE || '' || ZIP_CODE Query: SEL SOM.CUST_ACCT_KEY,...
View ArticleSelecting count(*) from multiple tables - response (3) by learndwh
Yes got it..try this query select a.acc_no, a.sort_code, sum(credit_count), sum(debit_count) (select acct.acc_no, acct.sort_code, count(credit.acc_no) as credit_count, 0 as debit_count from...
View ArticleSQL rewrite - response (1) by learndwh
you can write like this SELECT SEL SOM.CUST_ACCT_KEY, SOM.ORD_ID, SOM.EQUIPDESC, SOM.SHIP_METH_DESC, SOM.D_DESC, SOM.SITE, SOM.VEND_NAME, SOM.ORD_DT, SOM.CANCEL_DT, SOM.Address, SOM.AGENT_ID,...
View ArticleNeed to save and execute a dynamically generated query(greater than 32K...
Hi Ankit, In TD14 Maximum size of a sql can be upto 64K. Try using below declaration declare var1 Varchar(45000); declare var2 Varchar(15000); The problem will araise If the var1 variable is derived...
View Articleupdating table through view - forum topic by mayya@teradataforum
Hi,It might be the basic question but want the reason for teradata experts.When we create a simple view from a single table and when we update a column in a view, the changes will be reflected in...
View ArticleUpdating a table through view - forum topic by mayya@teradataforum
Hi, It might be the basic question but wanted the reason from TD experts. When i create a simple view from a single table, and update one of the row in that view, then changes will be reflected in its...
View ArticleSelecting three words from a string - response (8) by skrafi
Hi to all, My TABLE data is , ABCD > EFGH > IJKLMNOP > QRS > TWX9GG ABCD > EFGH > XYZ > GH ABCD > EFGH > GHJK > I45EDBDGG BUT ABOVE DATA I HAVE TO MOVE AS A SAPARATE...
View ArticleSelecting three words from a string - response (9) by CarlosAL
Two ways: Classic: Recursive query. New (sort of): Use STRTOK (if there is a max number of 'columns'). HTH. Cheers. Carlos.
View ArticleNewbie Here - forum topic by susmita
Hi Friends, Newbie here. Sorry to ask this question. why is teradata called as teradata sql? Do we write same sql queries in teradata DB? If this is the case then why not use sql ? I am confused? I do...
View Article