Viewing 15 posts - 3,226 through 3,240 (of 5,590 total)
Yep, two hits against a temp table (especially with an index) can be cheaper than two hits against a nasty CTE.
September 14, 2010 at 1:19 pm
petervdkerk (9/14/2010)
I want to select if the column thumbid holds a value larger than 0.
If the column value...
September 14, 2010 at 1:16 pm
Paul Morris-1011726 (9/14/2010)
My apologies for being a bonehead....Thanks WayneS
No problem - we all do it time to time.
September 14, 2010 at 1:09 pm
I know I have a command-line version of WZ on one of my home computers... want me to look around for it?
September 14, 2010 at 1:07 pm
pixelene (9/14/2010)
Come across two elegant solutions which combined will give me paged search results. One using the ROWNUMBER() function to select blocks for paging in a web application, and an...
September 14, 2010 at 11:27 am
change:
periodid = @iQuarter
to:
periodid between @iQuarter-4 and @iQuarter
You might also want to look at the first link in my signature for how to HELP US HELP YOU get faster, better, tested...
September 14, 2010 at 11:05 am
Paul Morris-1011726 (9/14/2010)
I am still getting an error:
Conversion falied when converting date and/or time for character string
I assume that is the NULL being read...
September 14, 2010 at 11:01 am
ColdCoffee (9/14/2010)
WayneS (9/14/2010)
@cc - thanks for helping out!Welcome , Sheff.. 🙂
As a side note, did u prepare a solution for this? I would love to look at your piece..
I hadn't,...
September 14, 2010 at 10:57 am
for case_sk = 000009, there is no comma between the cc_init and atty_inits.
Also, in some places you have cc_init, and in others cc_inits.
That should get your test data loaded.
September 14, 2010 at 10:29 am
So you want the total count by billcode?
Try this:
select
top(30) rx.BillCode, av.AccountNumber, av.Name, rx.RxNumber, rx.EnterUserID, qty = count(*) OVER (PARTITON BY BillCode)
from PhaRx rx
LEFT JOIN AdmVisits AS av
ON rx.VisitID = av.VisitID
where...
September 14, 2010 at 10:21 am
SQLJocky (9/14/2010)
My query would look something like this:
select count(distinct ID) as IDcount, cast(floor(cast(showdate as...
September 14, 2010 at 10:13 am
a.borgeld (9/14/2010)
Guys with your information and information from Ray Wong i created a function with a loop.
This works.
But i told you about the table who needs to...
September 14, 2010 at 10:04 am
Derrick Smith (9/14/2010)
I leave it enabled on my servers, but run a job every day that sends me the...
September 14, 2010 at 9:52 am
WinZip.exe is a GUI tool. Even way back when I was using WinZip 6, the command-line was a separate program.
The command-line tool is separate add-on. See http://www.winzip.com/prodpagecl.htm.
September 14, 2010 at 9:43 am
Viewing 15 posts - 3,226 through 3,240 (of 5,590 total)