Viewing 15 posts - 1 through 15 (of 53 total)
Jacob, this looks very very promising. I am going to play with it and see if I can adjust it to the real life scenario, but conceptually this looks like...
January 9, 2018 at 6:00 pm
This is pretty close but does not identify the ones that have been removed. I feel like this should be relatively simple but I can't figure out the right kind...
January 9, 2018 at 5:58 pm
Where I started is this:
,
select s1.Id, s1.snapshotdate, s1.ProjectName, ISNULL(s1.ProjectValue,0)-ISNULL(s2.ProjectValue,0) as Change from snapshots s1 LEFT OUTER JOIN snapshots s2
on s1.SnapshotDate=dateadd(d,7,s2.snapshotdate) and s1.ProjectName=s2.ProjectName
but...
January 9, 2018 at 5:04 pm
Hi Lynn,
excellent question. I tried two different solutions one using standard left outer join (self join) and a second one with two CTEs and joins using current and...
January 9, 2018 at 4:37 pm
there are none, which I know is where the problem is. But I am not sure how to change the query to translate no rows in the source table into...
December 11, 2015 at 6:41 am
I have actually ended up doing it exactly that way. I kept trying to use Alvin's method and could not get it to work so I brought them into a...
July 13, 2015 at 8:37 am
I believe that this query will get you started:
SELECT * FROM dbo.log_shipping_monitor_primary
you would alter it for secondary if needed.
This will get you the file name and the date. I don't...
February 15, 2015 at 6:55 am
I am pretty confused by your requirement too. Can you, please, maybe describe the scenario? Otherwise, I would agree with ZZartin on his solution. It could get fairly tedious if...
February 14, 2015 at 4:43 am
This sounds like a sub-report where you are passing a parameter to other data regions.
Petr
February 8, 2015 at 7:45 pm
Please, post DDL and the query that you currently have. That will help all of us in troubleshooting,
Petr
February 8, 2015 at 7:43 pm
The only way to do this that I know of is to use sp_purge_jobhistory and assign either job name or job id and oldest datetime (you would have to figure...
February 8, 2015 at 7:22 pm
@ SQL TRYER
this happens everywhere. I just went through a major clean up where the previous developer defined a classic datetime field as nvarchar(50) and over the years people typed...
February 8, 2015 at 8:54 am
Viewing 15 posts - 1 through 15 (of 53 total)