Viewing 15 posts - 5,506 through 5,520 (of 6,036 total)
It's better to use a view in this case.
Function is just a wrong idea.
March 14, 2006 at 2:20 pm
NULL just means that there in no corresponding data in T1.
If you have AddressId in table Customers NULL in this field means that there is no address recorded for this customer.
March 14, 2006 at 2:13 pm
insert into #Who ()...
exec sp_who2
SELECT .. from #Who
March 14, 2006 at 2:09 pm
If you adding another field to query with distinct without proper consideration you are probably changing grooping of data accidentally.
GROOP BY will stop you from it asking add the field...
March 14, 2006 at 11:41 am
So, you need to have
GROUP BY appno,appseq,ledger
in your INSERT statement as well as
WHERE NOT EXIST (select 1 from IX_budget05 I
where <value for appno> =...
March 13, 2006 at 7:42 pm
select count(*) from BLacklist
where CHARINDEX(BlackListResponse, 'crap1 or what ever crap they may send') > 0
March 13, 2006 at 5:41 pm
So what?
"hire date is less then 90 days from today"
can be easily traslated to:
hire_date < dateadd(dd, -90, Getdate() )
March 13, 2006 at 4:35 pm
CONVERT(DECIMAL(19, 2), SUM(op_o.actual_total) )
March 13, 2006 at 3:47 pm
I would normalize it first and than do the math.
March 13, 2006 at 3:41 pm
Can you just code what you are asking for?
Look:
"hire date is greater then 90 days from today"
can be easily traslated to:
hire_date > dateadd(dd, -90, Getdate() )
Why to complicate...
March 13, 2006 at 2:48 pm
UPDATE MyTable
SET ColA = A.ColA,
ColB = A.ColB,
....
FROM MyTable A
WHERE A.ColX = @Value
March 12, 2006 at 3:03 pm
What's a difference between numeric(p, 0) and integer?
I don't see any except numeric takes more space to store the same values.
If integer is not big enough for you use bigint.
If the...
March 12, 2006 at 1:43 pm
Viewing 15 posts - 5,506 through 5,520 (of 6,036 total)