How to not to skip a RANK ? - response (2) by KS42982
I don't think that will work because users want top 100 rank values. But for them ranking means not like teradata ranking. They don't want to skip a rank. With row_number, I will get unique number...
View Articlesql assistant 13.10 - Show definition window wont close - response (1) by...
I am using v 14, and it works fine...
View ArticleHow to not to skip a RANK ? - response (3) by Qaisar Aftab Kiani
If I understand correctly, you just want top 100 values according to the sales so you can put a limit using QUALIFY clause... SELECT STORE, ITEM, SALES, ROW_NUMBER() OVER(PARTITION BY SALES ORDER BY...
View ArticleHow to not to skip a RANK ? - response (5) by CarlosAL
Hi. You could try something like: SELECT a.Store_Item, a.Sales, b.The_rank FROM YOUR_TABLE a, ( SELECT c.Sales , row_number() OVER (ORDER BY c.Sales DESC) The_Rank FROM ( SELECT DISTINCT Sales FROM...
View ArticleConverting Range values in a column into Separate rows - response (1) by...
This SQL could be your starting point converting the range values into separte rows and tune it according to your requirements... CREATE SET TABLE tbl ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER...
View ArticleHow to retrieve the Relative Record Number? - response (1) by Qaisar Aftab Kiani
Have you tried ROW_NUMBER function?
View ArticlePerformance of MERGE versus SQL INSERT - response (1) by Qaisar Aftab Kiani
I think in your case the INSERT INTO will be better than MERGE INTO... The later is kind of a two step process where the matching rows are updated while the new ones are inserted, while the former one...
View ArticleQuery to find - response (1) by Qaisar Aftab Kiani
There have been a lot of similar posts. Please avoid posting multiple times!
View ArticleHow to not to skip a RANK ? - response (6) by KS42982
First, thank you both for your help. The solution provided by Qaisar would fell short a bit, but the solution provided by Carlos would work perfectly. Thanks again guys.
View ArticleETL Process results in contention on Teradata table - response (1) by goldminer
Have you created a view on top of each table defined as LOCK ROW FOR ACCESS? Writing directly against the table, instead of through the view, may be your issue.
View ArticleETL Process results in contention on Teradata table - response (2) by CarlosAL
"Doesn't Teradata have row-level locks??" Teradata uses rowhash locks (whenever can be applied), which can be 'row-level' locks depending primarily on the Primary Index. The locks can be escalated to...
View Articlehow to find the start dates from history - topic by sunny.j
Hi i'm trying to write a sql to know the start date for a customer , the data looks like Case :1 customer start date end date transaction read more
View ArticleTeradata 12 Certification - response (228) by rfenwick
really well said Ed (RAYEDMOND). I'm really glad you took the time to say it.
View ArticleSpool space issue while Inserting into Table - topic by smplisri
Hi All, When I tried to run the belong query it showed a spool space issue. However, I am able to run the select part. I have collected all the stats that are required and tried but no use. When gone...
View ArticleHow to export a string value which is in double quoted(eg- "Kabachu") into...
I have to export a column which is of char(960) string into .csv format. Problem I am facing is - this string contains several double quoted texts in between along with commas. So while exporting into...
View ArticleSpool space issue while Inserting into Table - response (1) by smplisri
The record count when running the select alone is 67901628.
View ArticleTERADATA CERTIFICATION - response (22) by varun09
hi, I am intrested in Teradata Certification... but i don't have proper inforamtion and guidance... i have some doubts regarding certifications.... i.e in recent days i have read in a blog that to...
View Article