Quantcast
Channel: Teradata Forums - Database
Browsing all 14773 articles
Browse latest View live

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 Article


Spool 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 Article


Order 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 Article

Order of RANK(yy) - response (2) by PeterSchwennesen

ok so the best is to use the OVER (ORDER BY version?

View Article

NULLS 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 Article


Behavior 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 Article

NULLS 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 Article

Spool 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 Article


Behavior 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 Article


Spool space issue - response (3) by dnoeth

Ask your DBA to get access to that information, it's vital for development.  Dieter

View Article

NULLS 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 Article

Order of RANK(yy) - response (3) by dnoeth

Yep, of course, that's what i ment when i wrote "don't use it" ;-)  Dieter

View Article

Behavior 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 Article


Behavior of VARCHAR and COMPRESSed columns in SPOOL - response (3) by hemanth_td

Interesting info, thanks very much Dieter!!  

View Article

Compare 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 Article


Determine 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 Article

Synchronized 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 Article


training - 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 Article

Determine 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 Article

Collecting 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
Browsing all 14773 articles
Browse latest View live