Update statement with left outer join in from clause. - response (2) by...
Hi Dieter, This is from SQL server. I typed sql wrong while trying to remove some reference. It is actually Update Staging.CDD_TodayCDD_CountryRisk Set ABC_Risk = Case When b.BRANCH_RISK_FACTOR =...
View ArticleSequnce generated column in Volatile table - response (2) by bala2121
Hi Dieter, they are Insert/selects only.. Selecting from some other source table. I want to convert a sybase code into TD. In sybase that source table itself is having the rowid based on the order of...
View ArticleCHECKTABLE Utility Run - forum topic by Kishore_1
While running CHECKTABLE, it is skipping checking of unhashed tables,fastpath UDMs. What is a fastpath UDM ? Why CHECKTABLE is skipping these(unhashed tables/fastpath UDMs)?Tags: checktablefastpath...
View ArticleSequnce generated column in Volatile table - response (3) by Harpreet Singh
Hi, You can keep on increasing rowid column with this method. INSERT INTO table2 SEL (SEL MAX(rowidcol) AS mx FROM table2) + ROW_NUMBER () OVER ( ORDER BY col2) AS idval, col2, col3 FROM table1...
View ArticleApplications configuration - response (2) by ilf
If a node is down. Put the ip of the available nodes. You would be able to connect to the system.
View ArticleApplications configuration - response (3) by Shelley
If you define a DNS name which points to all three IP's then you can use one name to always log on to the system. Even when one node is down
View ArticleCounting Records Through Multiple Date Ranges - response (1) by bdburch1
What I've ended up doing is adding in a case statement to specify the range of dates to the quarters. Then I grouped by the quarters. Just wondering if anyone out there has a better way of doing this.
View ArticleUpdate statement with left outer join in from clause. - response (3) by...
Hi, Below is one conversion, I am looking for generic template to be applied across SQL server code and that is the reason that update statement is not broken into multiple statements for left join....
View ArticleHow to get 2 value from same id and same column? - forum topic by nubie
I have this data : ID - Customer - Book - Price 021 - ABC - Book 1 - 120,00 021 - ABC - Book 2 - 150,00 022 - XYZ - Book 3 - 100,00 021 - ABC - Book 2 - 150,00 I want to show it like : ID - Customer...
View ArticleWay to exectue dymanic SQL greater than 32000 characters. - forum topic by...
Hi I have a requirement to exectue dynamically generated SQL which exceeds 32000 characters. The Stored Procedure DBC.SysExecSQL , according to TD documentation, can exectue SQL request upto 32K...
View ArticleHow to get 2 value from same id and same column? - response (1) by Harpreet...
this will do all except suming up price which will need to be joined to resultset CREATE TABLE har2 AS ( SEL id,customer, book, price, ROW_NUMBER () OVER (PARTITION BY id,customer ORDER BY book ) AS...
View ArticleMS VBA - ADO - Update vs. UpdateBatch - forum topic by larry609
Just an FYI. I am using VBA and ldap to connect to Teradata. I've been using the Update method for ADO recordsets, but it's way too slow for large updates, so I switched to UpdateBatch. Small problem:...
View ArticleStored Procedures - Use dynamic cursor for any table - response (3) by elvicio
Can you post the code. I have a table (items) with two columns etc. column A, Column B A B item1 23 item2 24 I have another table (itemline) item1 item2 I am looking to update...
View ArticleFind position of a character in a string - response (3) by jacky464
Thanks Harpreet! I would use that.
View ArticleFind position of a character in a string - response (4) by jacky464
Dieter, thanks for your advice as well! But unfortunately, mine is TD13, which does not have INSTR or STRTOK functions...
View ArticleAge Calculation - response (16) by dmcpdx
Here's so it works on leap years ( i.e. current_date = date'2012-02-29' ) SELECT (EXTRACT(YEAR FROM CURRENT_DATE) - EXTRACT(YEAR FROM brth_dt) (NAMED YEARS)) + CASE WHEN add_months( CURRENT_DATE ,...
View ArticleFind position of a character in a string - response (5) by jacky464
Hi Everyone, Could anyone provide the syntax of recursive view please? I was trying to search for it online, but could not find it. An example could be i want to find out the 4th '_' in a field called...
View ArticleNeed Help to implement recursive logic - forum topic by sudha123
I have tow tables say A and B which is having date field and amount field respectively. Have to check whether a.date > b.date if yes then check a.amount > b.amount if yes...
View ArticleHow to get 2 value from same id and same column? - response (2) by nubie
Thanks for your kind respond. :) My data is complicated, so actually i have query like this before, refer to some solution i found in this forum. It's run but run so long and doesn't give me any...
View ArticleDBSControl Internal flag DISABLECAR - response (2) by Shrinivas.Sagare
DisableCAR - This field enables or disables column level SELECT and INSERT rights. FALSE - Enabled (default) TRUE - Disabled
View Article