Viewing 15 posts - 406 through 420 (of 927 total)
As per my understanding which could be wrong, your actual query will not bring the correct records. if you want to exclude the records, then you should follow LEFT Join...
October 15, 2014 at 3:42 am
As STEVE mentioned there are many ways.
Following is a solution as per the understanding i get 🙂
Declare @Source table (EventCol varchar(10), UpdateTime datetime)
Declare @destination table (EventCol varchar(10), UpdateTime datetime)
--------------...
October 14, 2014 at 7:33 am
Eirikur Eiriksson (10/14/2014)
Quick question, can you post the full DDL of the table and the indices?😎
in addition to the above question, is there any Trigger on this table ?
October 14, 2014 at 12:37 am
you need something like (Assumption is the parameters are for DateTime Type).
= IIF(
DateSerial(Year(Parameters!Report_From_Date.Value), Month(Parameters!Report_From_Date.Value), "1").AddMonths(1).AddDays(-1)
=
DateSerial(Year(Parameters!Report_To_Date.Value), Month(Parameters!Report_To_Date.Value), "1").AddMonths(1).AddDays(-1)
,1,0)
it will return '1' for equal, and '0' if not,
Explanation:
getting the month &...
October 9, 2014 at 6:32 am
your expression will fail if the years changes
something like this
From Date = 01 September 2013
To Date = 30 September 2014
October 9, 2014 at 6:06 am
Very nice question. Thanks for share Subhash.
September 23, 2014 at 12:19 am
Koen Verbeeck (9/17/2014)
Hany Helmy (9/16/2014)
Koen Verbeeck (9/16/2014)
Sean Pearce (9/16/2014)
And this relates to SQL Server how? I am not here for maths lessons.It's an exercise in reading T-SQL 🙂
Still not convinced...
September 17, 2014 at 12:58 am
karthik babu (9/16/2014)
Few days back I read this in the same SSC I guess. And it was the one from where I came to know the answer. SSC Rocks!! 🙂
+1,...
September 17, 2014 at 12:45 am
Stewart "Arturius" Campbell (9/12/2014)
Easy one, thanks SteveGood way to end the week...
+10 🙂
September 12, 2014 at 4:33 am
Koen Verbeeck (9/11/2014)
Please don't say truncate table data isn't logged unless you understand the concepts involved.😉
+1, i remember in my earlier days...
September 11, 2014 at 1:08 am
Viewing 15 posts - 406 through 420 (of 927 total)