Conversion of numeric to date and group by it. - response (1) by dnoeth
This should work, extract the date portion and modify it to match the internal storage: cast(col / 1000000 - 19000000 as date)Dieter
View ArticleRe: remove the CRLF in the fastexport generated file - response (2) by dnoeth
This should be done using a UDF, check if oTranslate or oReplace is installed on your system, if not you should tell your DBA to do it :-) Dieter
View ArticlePerformance considerations during taking back up-- - response (1) by dnoeth
Hi Nishant, if i had to rank the different scenarios it would be: #1: first scenario #2: create table as existing_table with no data plus ins/sel #3: second scenario - "create table as existing_table"...
View ArticleHow to retrieve the Relative Record Number? - response (11) by KS42982
If you do not care about the HHMISS (last 6 digits of your numeric_column) then you can do the same that you did in excel by using SUBSTR function and fetch only first 8 and assign the name to it and...
View ArticlePerformance considerations during taking back up-- - response (2) by KS42982
One thing I'd like to mention about scenario # 1 ( create table as existing table with data) that if your existing table has few PIs, SIs, partitions then teradata would not create the same in the new...
View ArticlePerformance considerations during taking back up-- - response (3) by dnoeth
"CREATE TABLE AS existing_table" creates an *exact* copy of the existing_table including PI/SI/Partitioning, etc. There are only two things which are not copied: Foreign Keys and Triggers. But of...
View ArticlePerformance considerations during taking back up-- - response (4) by KS42982
You are right, I meant, CREATE TABLE AS (SELECT..) only. I never tried "CREATE TABLE AS existing_table" but it's good to know that it copies all the indexes, will use that from next time.
View ArticleRe: remove the CRLF in the fastexport generated file - response (3) by balu_td
Hi Dnoeth, Thanks for replying.. I dont have an option to use OReplace or OTranslate.. Is there any other way i can get out from it.. Thanks balu
View ArticleOnly an ET or null statement is legal after a DDL Statement - forum topic by...
I am working on a Narrow Cast Server project in Microstrategy; teradata is the database. We have configured an ODBC connection to connect the NCS to teradata. I get an ODBC error while trying to...
View ArticleTeradata Studio Express JRE error during installation - forum topic by svpl
I am trying to install teradata studio express v14 in my Windows 7 32 bit pc and I always get a JRE not found/JDK not found error after installation. My PC is upto date with JRE and I update to the...
View ArticleDate Format In Teradata SQL Assistant - response (5) by KS42982
Looks like the last row is always the latest record of the 'name' column. In that case, it would be like below. Select Name, max(create_time) If that is not the case then you can use ROW_NUMBER() and...
View ArticleTeradata Developer - forum topic by radika
Any Teradata Developer jon in TX?Forums: Jobs
View Articlespool usage and spool space - forum topic by nyemul
Hi If few SQL queries are run and highest spool usage value among all queries is obtained from DBQLOGTBL Then does this mean that minimum spool should be set to highest spool usage value among all...
View ArticleSQL Syntax - forum topic by AsherShah
I have a view: Create view VW1 as SEL col1, col2, col3 from tab1; and I can run following SEL. SEL a.col1, a.col2, a.col3, b.col4 from ( sel col1, col2, col3 from VW1 where col2 = 'ABC') a left...
View ArticleSQL Syntax - response (1) by ulrich
did you try to create a view like Create view VW2 as SEL a.col1, a.col2, a.col3, b.col4 from ( sel col1, col2, col3 from tab1 where col2 = 'ABC' ) a left outer join (SEL col1, Col3 as col4 from tab1...
View ArticleOnly an ET or null statement is legal after a DDL Statement - response (1) by...
As you wanne use the query band setting only for the one sql try BT; SET QUERY_BAND = 'Project=Example2;Report=0315-17.11;MSTRUser=MSTRPORTAL_EXXXX;' FOR transaction; select * from table1; ET; at...
View ArticleMload error - Highest return code encountered = '23' - response (3) by cheeli
Thank you Dieter for your time on this. The error code was DBCErrorCode 6,706I have gone through the previous posts on this error code and figured that it was a problematic non Ascii characters. (We...
View ArticleLog out action method - forum topic by KontantinK
Hello, if the user log out from viewpoint, I want to execute a method in my portlet. Is there a way how can I do it? If the user open the portlet, the portlet opens a connection to the db over the...
View ArticleWhat is compress? With example pls explain?What is use of compress? - forum...
What is compress? With example pls explain?What is use of compress?Forums: Database
View Article