Viewing 15 posts - 41,506 through 41,520 (of 59,067 total)
One of the problems that I see in the view is that the same data is being SUMmed over and over and over. Not sure I can figure a...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 16, 2009 at 5:16 pm
It's a tough call...
First, most people don't even know they need help. That's why Microsoft put Cursors, While Loops, CLR's and other forms of RBAR in SQL Server......
--Jeff Moden
Change is inevitable... Change for the better is not.
October 16, 2009 at 4:45 pm
Tara-1044200 (10/16/2009)
select distinct a.empid
from ViewEmpployee a inner join #Empdates b on a.empid=b.empid,#researchtab
where EmmJobCode in( '435','767','974') or
(Job1 = '5' or Job2 = '5'or Job3 ='5' or Job4 = '5' or Job5...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 16, 2009 at 2:12 pm
Brad,
This appears to be a "simple" running total problem. If you'd take the time to format the data in a readily consumable format along with a CREATE TABLE statement,...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 16, 2009 at 1:53 pm
sql2000-915039 (10/16/2009)
I need to write a query which takes this date column values and classifies rows based on the...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 16, 2009 at 1:46 pm
Heh... wouldn't a reasonable alternative be to only have SQL Server on the SQL Server box? 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
October 16, 2009 at 1:09 pm
sonphan11 (10/16/2009)
DECLARE @var varchar(8000)
SET @var = ''
SELECT @var = @var + FieldName + '/'
FROM Table
SELECT @var
works fine for even multiple entities, just create a view first. I've been using...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 16, 2009 at 12:50 pm
I don't know folks... don't kill me for this but he is a newbie, he asked very politely, it wasn't one of those "URGENT, URGENT!!!!" requests that we frequently see,...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 16, 2009 at 9:04 am
msam77-503326 (10/15/2009)
declare @res varchar(Max)
select @res = coalesce(@res + ',', '') + [name]
from
(
select 'Apple' as...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 15, 2009 at 4:14 pm
Outstanding, Rob! I love it when a plan comes together. According to your timings, the XML beat the tar out of the CLR and the simple 8k function...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 15, 2009 at 4:09 pm
P Jones (10/15/2009)
BTW if it's kilt Wednesday at Pass who's entitled to wear which tartan?Hunting Stewart for Jeff Moden, master of the Pork Chop weapon?
Heh... two things no one...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 15, 2009 at 9:05 am
Elliott W (10/14/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
October 15, 2009 at 8:59 am
Rob Fisk (10/15/2009)
I did a wee compare last night but do not have the results due to a bit of a power...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 15, 2009 at 8:02 am
Rob Fisk (10/15/2009)
in the example above, coalesce is used to remove NULL entries.
The below works just the same using that example:
DECLARE @Name AS varchar(Max);
SELECT...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 15, 2009 at 7:40 am
Andy DBA (10/14/2009)
Jeff Moden
--Jeff Moden
Change is inevitable... Change for the better is not.
October 15, 2009 at 7:35 am
Viewing 15 posts - 41,506 through 41,520 (of 59,067 total)