Viewing 15 posts - 391 through 405 (of 533 total)
Steve Jones - Editor (6/1/2010)
June 1, 2010 at 2:19 pm
All peripheral and patronizing arguments aside, American jobs should go to our citizens first, not ship them overseas. It's just as simple as that.
Actually, it's better for everyone in...
June 1, 2010 at 12:11 pm
I believe in free markets. I believe we'll all be better off the less government is involved in our lives with very specific exceptions where government oversight or control...
May 28, 2010 at 3:43 pm
Please don't re-post the same question in different places.
Original post here.
May 28, 2010 at 3:23 pm
Please don't re-post the same question in different places.
Original post here.
May 28, 2010 at 3:22 pm
This is one way you can run it without using as much overhead. I'm sure there are ways to do it better but at least you'll avoid cursors and...
May 28, 2010 at 12:15 pm
From a T-SQL standpoint you can do something like this:
update myTable
set Column1 = case Column1 when '' then null end,
Column2 = case Column2 when '' then null end,
Column3 = case...
May 20, 2010 at 5:44 pm
You didn't really provide much helpful information about what exactly you're trying to do, but if it's a simple string concatenation with a space between each field then it would...
May 20, 2010 at 2:59 pm
kramaswamy (5/20/2010)
Both our solutions are doing N number of queries against the same table, in order to get the most common occurring value for each column.
Maybe I'm not understanding what...
May 20, 2010 at 1:51 pm
Not sure what you mean by repeated queries.
May 20, 2010 at 12:16 pm
If you need something more inline you can also just do something like this:
select rxno,
patient,
location,
filldate
from loadit l
where l.filldate =
(
select max(sq.filldate)
from loadit sq
where sq.rxno = l.rxno
)
May 20, 2010 at 12:13 pm
A CLR would definitely work, but I don't think it's necessary here.
I used a table variable instead of temp table for my own reasons but you can do whatever on...
May 20, 2010 at 12:04 pm
select LEFT(Name1, CHARINDEX(',', Name1) - 1) as NameLast,
STUFF(Name1, 1, CHARINDEX(',', Name1), '') as NameFirst
from UBMAST
May 20, 2010 at 10:35 am
Couple of things:
SET NOCOUNT ON;
BEGIN
This needs to be at the beginning before you declare your variables.
Also, you're passing a string into xp_cmdshell that has "@PriorMonthStart" and "@PriorMonthEnd". You need...
May 19, 2010 at 6:04 pm
Viewing 15 posts - 391 through 405 (of 533 total)