Using static Day value in a particular Date - response (1) by dnoeth
To get the nth of a month (n=0 returns the last day of the previous month): DATE - (EXTRACT(DAY FROM DATE ) - n)Caution, this works for a single calculation in an IN clause, but when you add a second...
View ArticleUsing static Day value in a particular Date - response (2) by janthony
Thanks Dieter .. I was about to ask the same question as I got error while trying more than one value in the IN clause using my old code aswell . :-)
View ArticleCombine Multiple Select Statements - response (7) by MBSconnection
Thanks for your response. What is the Syntax for derived table query? How do I Union derived table query? Thank you for your help!
View ArticleCombine Multiple Select Statements - response (8) by dnoeth
A Derived Table (aka Inline View in Oracle) is a nested SELECT, i.e. a SELECT statement instead of table/view reference in the FROM clause, e.g. SELECT t1.datetm, t1,cnt, t2.cnt FROM ( SELECT COUNT...
View ArticleHow does Teradata handle a change in password controls? - forum topic by hobrob
If there is a change to the password controls, e.g. PasswordDigits is changed from N to R in SysSecDefaults, when does the rule get enforced for accounts with non-expiring passwords? If I have a number...
View ArticleImporting the large flat files failing - forum topic by anuragn
Hi, I am trying to import verylarge flat files(900 MB) with delimiter '|~|' but after 10 million rows the SQL Asstnt throws the following error in the log: System.Runtime.InteropServices.COMException...
View ArticleConverting CONNECT_BY_ROOT function in Oracle to Teradata - forum topic by...
Hi All,As per the requirement, I am converting oracle sql to teradata. Oracle sql contains both SYS_CONNECT_BY_PATH and CONNECT_BY_ROOT functions in the select statement. I was able to successfully...
View ArticleFerret utility - forum topic by Raja_KT
Hi, I know that Ferret utility automatically manages Teradata file system. It works on data levels as vproc,table, subtable,WAL log,disk and cylinder. We can run scandisk from supvr, define scope. We...
View ArticleTCPP TE0-141 About NoPI - forum topic by You Luo
I have some probleme about NoPI. I hope some one can help me to solve this. Q:Select… Insert… from UPI table to a NOPI table,which one is correct? A: to neural AMPs B: to the same AMP C: to the...
View ArticleHadoop online Training - forum topic by rehanunicom
Hi, UNICOM is conducting Hadoop Online training Batch from 24th August 2013. This training will help you to understand Big Data Hadoop Ecosystem and will give hands on trainings. For more details...
View ArticleCOUNT () OVER (PARTITION BY) and DISTINCT - forum topic by GwenaelLeBarzic
Hello ! I create this topic, because I have a question concerning the COUNT(My field) OVER (PARTITION BY My Other Field) and the DISTINCT statement. Here is the situation : I have in one table the...
View ArticleCOUNT () OVER (PARTITION BY) and DISTINCT - response (1) by dnoeth
Hi Gwen, SELECT DISTINCT is processed after the OPAP function and COUNT(DISTINCT) can't be used in OLAP, but in this case you don't need it, just GROUP BY first: SELECT name , hair_colour ,...
View ArticleLike Operator in Teradata - forum topic by abhi_insignia
Hello, While fetching information from dbc.columns, I am using a filter condition in the where clause - databasename like 'H%DB'. It should retrieve details of all those databases that starts with H...
View ArticleLike Operator in Teradata - response (1) by Adharssh
Hi, You can use the Query like this, SEL * FROM DBC.COLUMNS WHERE DATABASENAME LIKE 'H%' AND DATABASENAME LIKE '%DB'; From My understaing, the Problem in the Query is that TD will look for the Column...
View ArticleTCPP TE0-141 About NoPI - response (1) by barani_sachin
Hi, Option "B"is correct. You can change this behavious by speciyfng a HASH BY clause.
View ArticleLike Operator in Teradata - response (2) by ulrich
Hi, databasename has length 30 so like'H%DB' will only work for databasenames which are actually 30 characters long. an so use trim(databasename) like 'H%DB' Ulrich
View ArticleLike Operator in Teradata - response (3) by CarlosAL
Hi. DBC.Columns.DatabaseName is CHAR(30). Trailing blanks matter! Cheers. Carlos.
View ArticleCan multiple joins be avoided for the same table? - response (5) by SmarakDas
Hello Dieter, I need help in writing an SQL. I have a Table "A", which has Emplyee ID, Joining Date, Resignation Date. [Resignation Date >= Joining Date]. I have another Table "B", which has the...
View ArticleDisctribution of rows in Fall back AMPs - response (2) by mayya@teradataforum
Thank you Dieter. I will refer the manual suggested by you.
View ArticleLike Operator in Teradata - response (4) by dnoeth
Hi Adharssh, instead of TRIM(DatabasesName) you can also switch to dbc.ColumnsV instead where DatabaseName is a VARCHAR(128). Since TD12 there's the new set of dbc views all ending on V or VX, the old...
View Article