Automate my Teradata queries - response (1) by ulrich
Calling the SQLs from BTEQ and schedule the BTEQ calls with a scheduler, cron etc....
View ArticleAutomate my Teradata queries - response (2) by prateek.saxena
Hey, thank for replying. Can you please elaborate a bit?
View ArticleAutomate my Teradata queries - response (3) by M.Saeed Khurram
Hi Parteek, You need to put your SQL code inside Bteq as said by Ulrich. BTEQ is a Teradata sql processing tool, if you need further information about Bteq, do let me know. if you have an idea of Bteq...
View ArticleAutomate my Teradata queries - response (4) by M.Saeed Khurram
You can read the following blog to have a basic idea of Bteqhttp://www.teradatahelp.com/2010/09/introduction-to-teradata-utilities-bteq_02.html
View ArticleAutomate my Teradata queries - response (20) by Raja_KT
Hi Prateek, You can put your modularized codes according to the way they can execute themselves with all the logics, conditional and branching required with date/time inside a stored procedure. If it...
View ArticleAutomate my Teradata queries - response (35) by prateek.saxena
Thanks guys, this was helpfull. :)
View ArticleAny good training institude to learn teradata - response (2) by Raja_KT
Hi, If you are in India, there are lots of places. In Bangalore, you can enquire in many training institutes , especially in and around Koramangla, MG road, Indiranagar, JP Nagar,Jayanagar. In...
View Articlerequired to get the records for last 6 months - forum topic by peiter65
i have order_date column having date. i wanted to add a filter such i will be getting records for only past 6 months records only. do help me. waiting for your valueable reply thanks in advanceForums:...
View Articlerequired to get the records for last 6 months - response (1) by M.Saeed Khurram
Hi peiter, you can add order_date - INTERVAL '6' MONTH in the where clause. Further you can partition this table to gain performance.
View Articlerequired to get the records for last 6 months - response (2) by peiter65
not working sir..!!!
View Articlerequired to get the records for last 6 months - response (3) by peiter65
what i actully want is this "sum of expectedAmount amounts measured for wich the expectedOrderDate is in last 6 months. the expected amount is coming from another table and order_date is coming from...
View Articlerequired to get the records for last 6 months - response (4) by M.Saeed Khurram
oops! Whats the data in your order_date column? Can you please paste 2-3 values from order_date?
View Articlerequired to get the records for last 6 months - response (5) by M.Saeed Khurram
Yes I am getting you, but what I want to take a look at the date format in your order_date column. If this condition is not working then we might need to change the date_order format to subtract...
View Articlerequired to get the records for last 6 months - response (6) by M.Saeed Khurram
If you need me to produce a working query, I would need the structure of bothe the tables and some sample data to work on.
View Articlerequired to get the records for last 6 months - response (7) by peiter65
its is having long structure. i will summeries it. 1 table name with opportunity with opportunity_id column,expected_amount column. another table with name sales with opportunity_id and order_date...
View Articlerequired to get the records for last 6 months - response (8) by M.Saeed Khurram
Yes, it makes sense, can you execute the following query and paste the some date values here, Select order_date from sales;
View Articlerequired to get the records for last 6 months - response (9) by peiter65
Order_Date 9/30/2013 9/30/2013 9/29/2013 9/27/2013 9/27/2013 9/27/2013 9/26/2013 9/26/2013 9/26/2013 9/26/2013 9/26/2013 9/26/2013 9/25/2013 9/25/2013 9/25/2013 9/25/2013 9/24/2013 9/24/2013 9/24/2013...
View Articlerequired to get the records for last 6 months - response (10) by peiter65
sorry by mistake all record have been posted
View Articlerequired to get the records for last 6 months - response (11) by qbeg
I don't know whether well I understood the problem, if it is a following code should help: SELECT top 1000 order_date FROM database.table where order_date>=add_months(current_date,-6) order by...
View Article