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.
_____________
Code for TallyGenerator
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.
_____________
Code for TallyGenerator
March 14, 2006 at 2:13 pm
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...
_____________
Code for TallyGenerator
March 14, 2006 at 11:41 am
This version makes using of indexes impossible.
_____________
Code for TallyGenerator
March 14, 2006 at 11:30 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> =...
_____________
Code for TallyGenerator
March 13, 2006 at 7:42 pm
DISTINCT is a simplest case of GROUP BY.
_____________
Code for TallyGenerator
March 13, 2006 at 7:10 pm
select count(*) from BLacklist
where CHARINDEX(BlackListResponse, 'crap1 or what ever crap they may send') > 0
_____________
Code for TallyGenerator
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() )
_____________
Code for TallyGenerator
March 13, 2006 at 4:35 pm
March 13, 2006 at 4:32 pm
CONVERT(DECIMAL(19, 2), SUM(op_o.actual_total) )
_____________
Code for TallyGenerator
March 13, 2006 at 3:47 pm
I would normalize it first and than do the math.
_____________
Code for TallyGenerator
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...
_____________
Code for TallyGenerator
March 13, 2006 at 2:48 pm
UPDATE MyTable
SET ColA = A.ColA,
ColB = A.ColB,
....
FROM MyTable A
WHERE A.ColX = @Value
_____________
Code for TallyGenerator
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...
_____________
Code for TallyGenerator
March 12, 2006 at 1:43 pm
Viewing 15 posts - 5,506 through 5,520 (of 6,036 total)