Viewing 15 posts - 2,746 through 2,760 (of 6,036 total)
You need to add 1 month to LAST DAY of a month, not to 30th day of month.
_____________
Code for TallyGenerator
November 20, 2008 at 5:18 pm
Clustered index on cd.customer_id may help here.
_____________
Code for TallyGenerator
November 20, 2008 at 1:59 pm
Chuck Hardy (11/20/2008)
_____________
Code for TallyGenerator
November 20, 2008 at 5:21 am
Then you stuck with daily shrinking.
There are only 2 ways to keep place clean - don't litter there or clean it regularly.
It appears your developers cannot write code which does...
_____________
Code for TallyGenerator
November 20, 2008 at 4:06 am
Chuck Hardy (11/19/2008)
_____________
Code for TallyGenerator
November 19, 2008 at 8:58 pm
Quite useless exercise.
Values 5000000000 and 2000000000 have the same number of characters but one of them is proper int, another one is not.
It's even more complicated with dates. Same date...
_____________
Code for TallyGenerator
November 19, 2008 at 8:55 pm
Derived table must be what you're looking for.
selectvom100.vst_int_id
,vom107.chi_evt_dtm
,vom107.order_code_ext_id
,vom200.order_code_desc1
from VOM107_CHILD_ORDER vom107
INNER JOIN VOM100_ORDER_HEADER vom100 ON vom107.ord_int_id = vom100.ord_int_id
INNER JOIN VOM200_ORDER_CODE vom200 ON...
_____________
Code for TallyGenerator
November 19, 2008 at 8:37 pm
"ORDER BY 5" sorts by column No.5, but when it's in an expression it's treated as a value, not column number.
_____________
Code for TallyGenerator
November 19, 2008 at 4:46 pm
jsnv (11/18/2008)
I have a problem to find closest match data inputted with the one in Table.
eg. In my Table, i have data like this.
0010 ...
_____________
Code for TallyGenerator
November 19, 2008 at 3:43 am
ramadesai108, you don't make any sense, because the rounding happens AFTER dividing.
You probably need to expose whole statement to let people find where is your real problem.
Also you could find...
_____________
Code for TallyGenerator
November 18, 2008 at 1:02 pm
amit (11/17/2008)
How can this be recovered permanently instead of doing database shrink everyday.
By firing your current SQL developers and replacing them with qualified ones.
_____________
Code for TallyGenerator
November 18, 2008 at 12:56 pm
SELECT ([CONTRACT_PRICE]*PCP)+([FF&E_AMT]*[PCP]*[TAPP_CONTRACT])
FROM TableWithValues
But you're probably asking about writing a translator from one language to another.
If that's the case then I don't see what it has to do with T-SQL.
_____________
Code for TallyGenerator
November 17, 2008 at 4:13 am
November 14, 2008 at 1:53 pm
Isn't another topic next to yours just about that?
_____________
Code for TallyGenerator
November 11, 2008 at 2:15 am
Oh, it's so obvious!
I must've been blind! Or drunk.... 😉
SET @flds=''
....
SELECT @flds = @flds + ',' + c.name FROM sysobjects o JOIN syscolumns c ON o.id = c.id WHERE (o.xtype='U')...
_____________
Code for TallyGenerator
November 11, 2008 at 12:53 am
Viewing 15 posts - 2,746 through 2,760 (of 6,036 total)