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

required to get the records for last 6 months - response (12) by qbeg

Or the same as the Khurram suggested higher, that is: SELECT top 1000 order_date FROM Database.tablename where order_date>=(current_date - interval '6' month) order by order_date  Best regards Peter 

View Article


Explain plan for set table - forum topic by abin

Hi,  I have a requirement to convert around 50 tables into multiset from set. I am trying to get the tradeofff of keeping the table as set against perfomance of inserting recs into it. I did an explain...

View Article


"cnsrun" rigths - response (1) by sk73

Hello friends,  Does anybody have a solution to the same problem mentioned above? I am at the same situation. Apart from logging in as DBC, is there any other way to solve this? Regards, SS

View Article

required to get the records for last 6 months - response (13) by M.Saeed Khurram

I just needed one value just to check the date format :) You can follow peters solution, if it is not working please let me know. 

View Article

Explain plan for set table - response (1) by VBurmist

  Hello Abin, you have really provided the answer in the first paragraph, the are no additional steps.   The phrase "defined as set and then altered it as set" has the "set" mentioned twice, but I...

View Article


Explain plan for set table - response (2) by M.Saeed Khurram

I agree with Vlad, the number of steps will be same with set and multiset tables, but the duplicate row check will be made at block level, byte by byte. 

View Article

Explain plan for set table - response (3) by Raja_KT

Hi,What is your data volume? I feel that as  amount of data grows huge then you will see the difference of set and multiset, a duplicate check for set.Cheers, Raja

View Article

Explain plan for set table - response (4) by VBurmist

Hi Khurram, Thank you for agreeing with me.   However, I believe that there is no need to dedicate an additional post to say only that. :)   Regards, Vlad.

View Article


Explain plan for set table - response (5) by M.Saeed Khurram

Hi Vlad, you are welcome, but this time I do not agree with you :)  

View Article


required to get the records for last 6 months - response (14) by Kawish_Siddiqui

Are you looking something like this:  What I could understand from question is, you have two seperate tables and want to sum a column value based on Order_Date filter (last six months) by joning two...

View Article

qualify rank() over (partition.....question - response (15) by ficklingIan

Hi I have tried the above code but I dont seem to be getting the expected results. Example table myTab(c1 varchar(10), c2 varchar(10), c3 varchar(10), sd date ed date); example data row1:...

View Article

Need help getting rid of parcel length error in BTEQ script - forum topic by...

Hello everyone, I’m having an issue with a BTEQ script. The objective of the script is to: Perform a SELECT on DBC.Databases for DatabaseName; this generates a list of all of our databases on that...

View Article

required to get the records for last 6 months - response (15) by peiter65

really usefull kawish. thanks

View Article


sum of amout for the date falling in the respective month i.e months wise sum...

i have 1  table where we have amount column and calender date column with date. other table with sales where i have order date when order is received ffrom customer.  Sum of of amount  for which the...

View Article

Is the full TTU 14.10 available for download yet? - response (1) by...

Now I am not able to find any of the Teradata 14 Rpm Packages except  tdicu-14.00.00.00-1.noarch.rpm tdodbc-14.00.00.04-1.noarch.rpm TeraGSS_linux_x64-14.00.02.07-1.noarch.rpm...

View Article


sum of amout for the date falling in the respective month i.e months wise sum...

Try this SELECT SUM(sales) AS Monthly_Sales FROM Sales WHERE salesdate BETWEEN Start_Date AND END_Date; You can replace the start and end date with start and end date of the period for which you want...

View Article

sum of amout for the date falling in the respective month i.e months wise sum...

Hi, It seems you have two tables to be joined table1 with (amt and calendar date..) and another table is sales table keeping track of order date status till closure. I suggest you put some fields and...

View Article


Explain plan for set table - response (6) by abin

Thanks all for the responses.  Vlad, Yes the statment has a spello, it should read as " I did an explain plan on insert statmenets for a table defined as set and then altered it as multiset."  Raja,...

View Article

sum of amout for the date falling in the respective month i.e months wise sum...

Could you send the example in the form of tables? Because if was in order to one table and one date after which it is necessary to be to sum it up the code could look this way:  SELECT...

View Article

Count the number of words in a phrase using Teradata SQL - forum topic by...

Hi,  what would be the code to count the number of words in a phase using Teradata SQL without using the oreplace function as I do not have access to this.  Thanks in advance. Regards, SreeTags:...

View Article
Browsing all 14773 articles
Browse latest View live