Viewing 15 posts - 226 through 240 (of 479 total)
Sergiy (2/10/2009)
Derek Dongray (2/10/2009)
The OP didn't mention that he had a calendar table and, in this case, I can't see that it's adding anything to the query.
If you need to...
February 10, 2009 at 4:23 am
Ken McKelvey (2/10/2009)
February 10, 2009 at 4:13 am
Sergiy (2/9/2009)
So, what was wrong with my solution?
I thought your solution was just a step-by-step explanation of Adi's.
February 10, 2009 at 3:51 am
Adi Cohn (2/9/2009)[hrI think that in a case that you drop a none computed column and replace it with a computed column, you can use an "instead of trigger" in...
February 10, 2009 at 3:48 am
Servers I've managed have always gone with a variation of 3(b). That is, AV is installed but settings are adjusted to minimize impact, e.g. only scan on writes to the...
February 10, 2009 at 3:41 am
Sergiy (2/9/2009)
SELECT C.[Date], COUNT(T.indate)
from dbo.Calendar C
LEFT JOIN dbo.YourTable T ON T.indate = C.[Date]
WHERE C.[Date] > dateadd(m,-6,getdate()) -- probably you need to remove time portion here
group by [Date]
The OP didn't mention...
February 10, 2009 at 3:38 am
Ken McKelvey (2/9/2009)
Do you realize that a table is an UNORDERED set?[/code]
Yes, i do.
After I posted (and was at home) it occurred to me that I needed to update my...
February 10, 2009 at 3:18 am
You probably need to provide more information as, from your current explanation, all you need seems to beselect indate,count(*)
from xxx -- insert table name here
where indate>dateadd(m,-6,getdate())
group by indate
February 9, 2009 at 9:46 am
I have a solution (using cursors) which produces the required results, but I don't know how robust it is. I haven't come up with a set-based solution (yet).
create table #a...
February 9, 2009 at 9:20 am
I don't know what your front-end is written in, but I wouldn't call either andrew's or my solution a complicated query.
' VBScript (or Visual Basic)
SQL = "SELECT K.ID_Kandidat, Nachname, Vorname...
February 9, 2009 at 4:25 am
No. From Judy's description, Adi's solution is needed.
Although I still don't know how he guessed that what what was needed from the sample data since my solution would produce the...
February 9, 2009 at 4:05 am
create table #t (
AccountNbr int,
Seq int,
CreateDate varchar(20)
)
insert #t values (59961, 1, '01/05/09')
insert #t values (59961, 2, '01/09/09......')
insert #t values (59961, 3, '01/10/09')
insert #t values (32187, 1, '01/05/09.......')
insert #t values (32187,...
February 6, 2009 at 9:45 am
You could try looking at @@NESTLEVEL is you know definitely that either A is called directly or B calls A. Of course, if a hypothetical procedure C also calls A...
February 6, 2009 at 8:23 am
Viewing 15 posts - 226 through 240 (of 479 total)