Viewing 11 posts - 1 through 11 (of 11 total)
Yes.
WHERE NOT (varA = 1 AND varB = 'Green') is exactly what I was looking for.
I knew it was something really simple. It was driving me nuts that...
August 16, 2011 at 9:00 am
Oh, yeah. I've used case statements in computed columns before. That's actually part of the reason I was hoping there was a way to do it in default. But you're...
August 2, 2011 at 12:14 pm
prvmine (6/24/2011)
with Windows as (
select part,
visit,
dateadd(mm,-6,aptdue) as bigwinopen,
...
June 25, 2011 at 1:57 am
opc.three (6/24/2011)
I would like to help. Do you mind providing some DDL and DML to build the test environment consistent with your post?Here is what I mean:
http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]
create table #test
(Part varchar(10),
...
June 25, 2011 at 1:49 am
Nevermind that last post. I got what I need.
Thanks for your help!
June 24, 2011 at 6:28 pm
I've been trying to play with that, but I am unsuccessful.
I want to add this, right?
(DATEDIFF(dd,ddatetime,getdate()) > 0)
Where do I add that? We're not talking about the outside select statement,...
June 24, 2011 at 1:04 pm
Jayanth_Kurup:
It looks like common table expressions may work for me.
I've been playing around with it, but could use a little more help if you don't mind.
So, I'm basing this off...
June 24, 2011 at 10:37 am
Nothing to be sorry for. 🙂
So persisted is better because it doesn't have to be recalculated every time the record is accessed, which saves time/processing power. That makes sense. I...
February 11, 2011 at 2:57 pm
Thanks for replying again Craig.
I do know what persisted and non-persisted mean.
I don't understand what the advantage to one over the other is.
Why do you say I'd want...
February 11, 2011 at 8:17 am
Thank you both for your help.
So, this is what I ended up doing.
Created this function:
FUNCTION [dbo].[fnGDSTotal](@Satis int, @DropAct int, @EmpLife int)
RETURNS int
as
begin
declare @NumVars int
set @NumVars = 0
if...
February 10, 2011 at 3:52 pm
Viewing 11 posts - 1 through 11 (of 11 total)