19 | 01 Oct 2014 @ 12:07 PDT | Database | Reply | Finding PI for a table created already | Thank you Fred :) and thank you all for your valuable suggestion :)
|
18 | 28 Sep 2014 @ 11:46 PDT | Database | Topic | Finding PI for a table created already | Hi All,
I have tables which are already created in DB. Almost half the tables are having more skewness. Now, I need to change PI for those tables which are having high skewness. Instead of checkin... |
17 | 15 Nov 2013 @ 10:48 PST | Database | Reply | Recursive Query | Hi Dieter,
Thanks for the suggestion.
The data type for A.ACT_DATE is VARCHAR. I don't know why they have defined a date column as varchar field. But we have to code according to that :)... |
16 | 12 Nov 2013 @ 03:38 PST | Database | Reply | Recursive Query | Hi Khurram,
The actual condition is, for a particular DND value if the correspoding rec1 value is 0 then latest_dnd should be dnd only. Consider the set of values i have provided as sample.
... |
15 | 12 Nov 2013 @ 12:55 PST | Database | Reply | Recursive Query | I have tried this using many left outer joins. But the hierarchy level wouldn't change for some records. Dont know how to overcome that issue. Any help would be much appreciated.
SELECT ... |
14 | 11 Nov 2013 @ 05:12 PST | Database | Reply | Recursive Query | Hi Dieter,
Actually this is a hierarchy method. Below are a sample data.
DND_NO REC1 LATEST_DND
100 200 300
200 300 300
300 0 300
400 500 800
500... |
13 | 09 Nov 2013 @ 06:22 PST | Database | Reply | Recursive Query | Hi Dieter,
The data in DND_XREF_TEMP looks like,
ACT_DATE REC1 CC DND_NO
12/31/2020 0:0... |
12 | 09 Nov 2013 @ 02:59 PST | Database | Reply | Recursive Query | Khurram,
Actually I have to modify my code using recursive query.
This is my actual query which is not working as expected. So my friend suggested me to use recursive query which is new to me. So... |
11 | 09 Nov 2013 @ 02:19 PST | Database | Reply | Recursive Query | Hi Khurram,
My scenario is
CASE WHEN ( B.REC1 IS NULL OR B.REC1 =0)
THEN LATST_DND --this was derived from other case stmt
else B.REC1 END AS LATESTDND
my sample data would like below... |
10 | 09 Nov 2013 @ 12:08 PST | Database | Topic | Recursive Query | Hi All,
Can you please let me how recursive query works for more than 2 tables. As per my understanding with the syntax, we can take only one source table and the other would be recursive table. M... |
9 | 28 Oct 2013 @ 03:36 PDT | Database | Reply | Transpose rows to columns | Thanks for the kind help Dieter :)
|
8 | 25 Oct 2013 @ 06:46 PDT | Database | Reply | Transpose rows to columns | Thank you Dieter. Your suggestion helped me :)
I have one doubt. It will lead to product join if I use cross join rite? Won't that be a problem?
|
7 | 24 Oct 2013 @ 11:38 PDT | Database | Reply | Transpose rows to columns | Hi,
Can anyone help me in this scenario please.
|
6 | 24 Oct 2013 @ 01:33 PDT | Database | Reply | Transpose rows to columns | Hi Raja,
Am sure that my column limit would be < 50. But its the record count am worried about which am not sure. I need diffrent approches to perform transpose operation to convert rows to col... |
5 | 23 Oct 2013 @ 10:35 PDT | Database | Reply | Transpose rows to columns | Hi James,
If you dont mind, can you post your code here. So that I'll be able to understand it more clearly.
|
4 | 23 Oct 2013 @ 11:52 PDT | Database | Reply | Transpose rows to columns | Hi Dieter,
Thanks for the suggestion. Will this code work for >1 million records?
Any help is greatly appreciated.
|
3 | 23 Oct 2013 @ 07:43 PDT | Database | Reply | Transpose rows to columns | Thanks James, for your timely reply. But the data I have provided is just a sample one. I know this could be done using union. But i have huge number of data, also using union would affect the perf... |
2 | 23 Oct 2013 @ 07:15 PDT | Database | Topic | Transpose rows to columns | Hi All,
I'm new to TD. I need to transpose data from rows to columns. I'm not sure how to do it using PIVOT in teradata. Can anyone help me.
Sample input data.
ID Name English ... |
1 | 08 May 2013 @ 11:48 PDT | Database | Topic | Avoid Error 3519 in stored procedure | Hi,
I have a created a stored procedure with many volatile tables. After calling the proc, the volatile tables will be dropped at the end of the procedure. But if i get any error while calling the... |