Viewing 15 posts - 1 through 15 (of 16 total)
That does not work. It takes it as 123 at the source while reading
November 18, 2014 at 1:47 am
Hi,
I am new to Teradata but have been working on SSIS. We have a POC requirement to pull data from Teradata into SSIS package and write the data back...
July 29, 2013 at 5:44 am
It can be a value assigned to a variable or an expression
November 20, 2012 at 12:49 am
The service does not work for local instance .i gave IP address\sqlexpress in server name and used window authentication.Is there something else I need to use?
February 10, 2012 at 10:55 am
Can you point me to some documents where I can know about execution plan and how query is actually executed.
January 31, 2012 at 3:50 am
This works..Subtract 1 second from first date of next month
declare @cob_dt as datetime
select @cob_dt='2012-2-12'
select DATEADD("s",-1,DATEADD("dd",-(DAY(DATEADD("mm",1,@cob_dt))-1),DATEADD("mm",1,@cob_dt)))
Thanks all
December 13, 2011 at 5:21 am
I also tried select ([IsLogistics]=="Y")&&(dateadd(m, datediff(m, 0, TradePeriodStart), 0))<(dateadd(m, datediff(m, 0, getdate()), 0))?TradePeriodStart:TradePeriodStart but did not work
November 28, 2011 at 9:47 pm
I need a solution wherein I can use my temp table outside the session also
October 11, 2011 at 2:28 am
Thanks all for the replies:)
I just modified the above query a bit so that it gives me the row with largest efct_end_dt for a group of strategy_id's
SELECT efct_start_dt,efct_end_dt,*
FROM (
...
September 26, 2011 at 10:39 pm
actually there are a number of strategy_id in the table which are getting created and expired.My below code worked:-
(Select Strategy_id,efct_start_dt,efct_end_dt From publish.dim_strategy
Where strategy_key in
(
...
September 26, 2011 at 4:17 am
Your query is giving the same results as mine..just efct_end_dt is null should have been outside the brackets..(i commented the text in your query)
Anyways,your idea has solved my problem.Many thanks:)
Select...
September 2, 2011 at 1:37 am
your query is giving me strategy_id 1 also.I dont want this because it has already expired and not coming for the first time.
My below query gives me the result but...
September 2, 2011 at 1:11 am
yes it is like this..i want efct_start_dt,strategy_id of 2 and 3..i dont want strategy_id 1 as it has 2 rows in the table
September 2, 2011 at 12:39 am
the strategy_id has multiple entries .One of these entry may have efct_end_dt as null if the strategy_id has expired.The unique key in table is strategy_key which is a surrogate key
September 2, 2011 at 12:15 am
Viewing 15 posts - 1 through 15 (of 16 total)