Viewing 15 posts - 1 through 15 (of 50 total)
I wouldn't start splitting out your functionality into separate sprocs in the hope it will improve performance. Spend the time to understand why the slow ones are slow,...
July 30, 2012 at 2:49 pm
Sorry, I misunderstood your question, and ignored the issue of sequence.
I leave this to the actual experts.
February 16, 2012 at 12:48 pm
Provided the "missing" values are represented by NULLs in your db, something like this will identify those rows:
select company_id, Unit_ID, Device_id, TX_DT_TM from theTable where TX_NUM is NULL
February 16, 2012 at 12:13 pm
A quick'n'dirty 2 stage solution:
(1)
This gives you the table names that contain the column
select distinct sys.tables.name from sys.tables, sys.columns
where sys.tables.type = 'u'
and sys.tables.name not like ...
February 7, 2012 at 2:34 pm
try enclosing the dates in quotes:
WHERE RegistrationDate between '2010-01-01' and '2010-03-31'
June 10, 2010 at 11:47 am
This looks problematic:
DECLARE @ResumePrefix VARCHAR(50)
DECLARE @ResumeSuffix VARCHAR(50)
DECLARE @ResumeLastNo BIGINT
DECLARE @uniqueno varchar(50)
SELECT @uniqueno = ResumePrefix+ResumeSuffix+ResumeLastNo
April 22, 2010 at 6:16 pm
Oracle's recent marketing slogan certainly beats anything Microsoft every cooked up:
"ORACLE...Software...Hardware...Computers."
Can't wait till CocaCola gets on that bandwagon
"COKE ...Pop...Can...Beverages."
April 9, 2010 at 2:46 pm
Run this:
Select 1/Nullif(0,0)
Then run this:
Select 1/count(Nullif(0,0))
January 27, 2010 at 12:22 pm
This illustrates the situ.
select count(Nullif(0,0))
January 27, 2010 at 11:56 am
I believe your use of NULLIF(...) is valid here.
It's the call to COUNT(...) that can return a 0.
Why have that call to COUNT() there?
January 27, 2010 at 11:50 am
If F.IsSubjectToApproval = 0, then this call:
...COUNT(Nullif(F.IsSubjectToApproval,0)...
Returns 0 ...KABLOOIE!
January 27, 2010 at 11:39 am
...I must appologize MarkO...
No apologies neccessary Andy. This is the 1st time all week I did something right.:blink:
...Am I looking at the right thing here?...
Looks good to me,...
January 7, 2010 at 2:24 pm
... I was hoping to figure out how to put it into a single select statement and tell SQL to return workstations 5-10 first followed by 1-4 ...
Why?
January 7, 2010 at 12:06 pm
Viewing 15 posts - 1 through 15 (of 50 total)