Order of RANK(yy) - forum topic by PeterSchwennesen
I am a little confused about the suntax of the RANK() function. I thought that the proper syntax was: RANK() OVER (PARTITION BY xx ORDER BY yy) But I found that you can write: RANK(YY). But RANK(yy)...
View ArticleSpool space issue - response (1) by dnoeth
You need to check dbc.QryLogStepsV (if it's enabled) to find which step failed. It will include all steps successfully completed, so the first missing step run out of spool. There's no product join,...
View ArticleOrder of RANK(yy) - response (1) by dnoeth
Hi Peter, don't use it, this is deprecated syntax. Teradata implemented some OLAP functions like RANK, MAVG, CSUM in V2R3 before they existed in Standard SQL, but added the ANSI versions in V2R4. And...
View ArticleOrder of RANK(yy) - response (2) by PeterSchwennesen
ok so the best is to use the OVER (ORDER BY version?
View ArticleNULLS are treated as high priority when assigned row numbers with in a group...
Hi I have the below table and I am trying to assign rownumber and need to get row_number=1 for the values.But theere are NULL's in the group where they are being treated high priority and 1 is...
View ArticleBehavior of VARCHAR and COMPRESSed columns in SPOOL - forum topic by hemanth_td
Hello, Could someone please answer:1. REGARDING VARCHAR: I have a table with one of the columns defined as VARCHAR(255) even though the char length would never exceed 15 characters. Is there any...
View ArticleNULLS are treated as high priority when assigned row numbers with in a group...
I got it. I placed in a derived table and applied rownum and it worked out.
View ArticleSpool space issue - response (2) by arpit.ubale
Hi Dieter, Thanks for your suggestion. Since I am a developer, I donot have access to dbc.QryLogStepsV. Anyways i tried collecting stats on underlying tables but still i get the same error. Is there...
View ArticleBehavior of VARCHAR and COMPRESSed columns in SPOOL - response (1) by dnoeth
#1: false in general, but true when used in GROUP BY/ORDER BY/UNION. Plus the maximum size is considered during FastLoad/MLoad resulting in less row per block sent. For me this is always an indication...
View ArticleSpool space issue - response (3) by dnoeth
Ask your DBA to get access to that information, it's vital for development. Dieter
View ArticleNULLS are treated as high priority when assigned row numbers with in a group...
A Derived Table shouldn't change that, when you sort descending NULLs are sorted last. In your example you ordered by DNAME and all rows had NULL in it, maybe you ment DNO. For changing the default...
View ArticleOrder of RANK(yy) - response (3) by dnoeth
Yep, of course, that's what i ment when i wrote "don't use it" ;-) Dieter
View ArticleBehavior of VARCHAR and COMPRESSed columns in SPOOL - response (2) by CarlosAL
Sorry for jumping in. About #1: since 'performance' is something vague in this question, I would add that many client applications calculate the buffers and memory sizes for queries (resultsets) based...
View ArticleBehavior of VARCHAR and COMPRESSed columns in SPOOL - response (3) by hemanth_td
Interesting info, thanks very much Dieter!!
View ArticleCompare two Database - forum topic by Vbhand
Hi There, if someone can help me here that would be much appreciated. I will detail what i am trying to achieve here. In aquistion phase once the file from source system is extracted it goes to...
View ArticleDetermine number working day between two dates - forum topic by pema_yozer
Hi Guys, I have a table which contains a start date and an end date Table a Start_date End_date 13-03-2013 14-03-2013 10-03-2013 13-03-2013 ......... .... along with this i have another...
View ArticleSynchronized scanning - response (9) by AdamL
All AMP join step, by way of row hash match scan,using merger join .After that, explain says the input tables for joins will not be cached in memory, but they are eligible for synchronized scanning....
View Articletraining - response (1) by bikky6
Hi Rajesh, It's better you go for online trainings by any real time expert,who shares his knowledge in vast.I can refer you to make an enquiry at teradataonlinetrainings@gmail.com.They will respond...
View ArticleDetermine number working day between two dates - response (1) by bikky6
Hi I have created the below tables for your scenario.Let me know if it solves your purpose. CT HOL(START_DATE DATE,END_DATE DATE); INS INTO HOL VALUES('2013-06-03','2013-06-13'); INS INTO HOL...
View ArticleCollecting stats on unused column - forum topic by barani_sachin
Hi All, Does collecting stats on unused columns in anyway influence the execution plan. Ex sel t1.* from table1 t1 join table2 t2 on t1.col1 = t2.col1lets say if i collect stats on col2, col3 and so...
View Article