Retrive column name from the table instead of column value which is having...
Without knowing the source of your SP it's hard to tell what's wrong with it. Dieter
View ArticleMERGE...WHEN NOT MATCHED INSERT into 2 separate tables - response (1) by dnoeth
You can't do that with MERGE. Do you need the actual rows or just the count? The number of Inserts/Updates is available in dbc.QryLogSTepsV (if it's enabled): StepName 'MRM', RowCount = Inserted,...
View ArticleGet last full 20 weeks with function ADD_MONTHS(date - EXTRACT(day FROM date)...
First of all, thanks for your help! I've to say that I'm new the teradata and the whole database thing! I do not completly understand this function. Sure I know what mod is. But why subtract 0001-01-07...
View ArticleGet last full 20 weeks with function ADD_MONTHS(date - EXTRACT(day FROM date)...
Jeder fängt mal neu an, kein Problem :-) Add/substract a number of days from a DATE is just DATE +/- x.(datecol - DATE'0001-01-01') returns the number of days between those dates. DATE '0001-01-01' is...
View ArticleGet last full 20 weeks with function ADD_MONTHS(date - EXTRACT(day FROM date)...
Hab mich nicht getraut auf deutsch zu schreiben weil ja englisches Forum :) - deshalb auch Englisch weiter. thanks again for your help! at this time, I'm not into this database-thinking, I hope it will...
View ArticleRetrive column name from the table instead of column value which is having...
source of the procedure is DBName, tablename I hard code the tablename , the proc will check for the data type of the field, if it is char then it will take the field data for validation(checking...
View ArticleRetrive column name from the table instead of column value which is having...
I ment the source code, you do something wrong in your insert. Dieter
View ArticleRetrive column name from the table instead of column value which is having...
INSERT STATEMENT: SET Q1 = 'INSERT INTO DLWORK_DB01.TEMP1(COLUMNNAME) SELECT(' || FLD_NM || ') FROM '|| ' DLWORK_DB01.CLOSURE_CODE' || ' WHERE ' || ' SUBSTR('||FLD_NM ||',1,1) = '|| '""'|| ' SAMPLE1...
View ArticleRetrive column name from the table instead of column value which is having...
Your query should fail because you compare to "" instead of '' and there's no blank netween SAMPLE and 1. Quote FLD_NM in your select, two single quotes result in one single quote, this should work:...
View ArticleMERGE...WHEN NOT MATCHED INSERT into 2 separate tables - response (2) by...
thanks dieter, I appreciate the response. I started with Teradata in 2011, and you are sort of a legend - I remember using your view that reverse-engineers "collect statistics" statements. brilliant.
View Articlealiased column is ambiguous in where clause - response (2) by matt.h
Thanks Harpreet. It's the obvious answers that are sometimes the most difficult to realize. :)
View ArticleAbout renaming a column - forum topic by Kbos
Hi everyone I've created a table and I want to modify the datatype to one field from Char(4) to Char(5) but it is not possible....I tried to rename the column using the following statement and it was...
View ArticleAbout renaming a column - response (2) by Harpreet Singh
Hi, that correct that you have renamed the column so Desc_Catalog_Tm contains data now and Desc_Catalog is empty. You cannot modify column datatype. You can add below statement after alter as you dont...
View ArticleAbout renaming a column - response (3) by chinmay Athavale
Hello Kbos, Your syntax is also working fine at my end. I could rename column name with data using your synax. Regards, Chinmay
View ArticleNeed Teradata software - forum topic by Jagadish
Any good training institute to learn teradataForums: Database
View ArticleRetrive column name from the table instead of column value which is having...
Its working now. I got the column names. Thanks a lot Dieter.
View ArticleNeed more information about the temporary data retrival of TERADATA views -...
Temp space is primarily used by temporary tables which have a persistent definition in the Data Dictionary but within a given session. Once the session is over, they are discarded. Now coming to your...
View ArticlePeriod table functions and set operators - forum topic by rolfz
Hi, the new period table functions provide some great functionality to merge and split periods in different ways. But now I have a problem with a very typical problem: Having two or more tables with a...
View ArticlePeriod table functions and set operators - response (1) by dnoeth
Hi Rolf, i didn't notice that restriction before (but just found that DISTINCT is similar), it's really annoying :-( I don't understand why it's not allowed as it always has to build a spool first to...
View ArticleConvert string into date - forum topic by dr.murthy_td
Hi , Could you please suggest me how to convert the string value '4/6/2013' to date, string value coming in different formats 4/6/2013 12/6/2013 6/12/2013Forums: Database
View Article