Viewing 15 posts - 211 through 225 (of 284 total)
hoolash (12/3/2013)
I am still a bit confused at the final solution proposed by ben.brugman.
If I understand well,...
__________________________________________________________________________________________________________
How to Post to get the most: http://www.sqlservercentral.com/articles/Best+Practices/61537/
December 3, 2013 at 1:10 am
This link should explain what needs to be done.
http://www.sqlservercentral.com/Forums/Topic558696-338-1.aspx
However, you may need an additional cast since your numerics are stored in a non-numeric datatype.
Also, if you look at the solution,...
__________________________________________________________________________________________________________
How to Post to get the most: http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 28, 2013 at 9:52 am
DaveDB (11/25/2013)
I am having issues rounding this number. I have a number that is a float (0.981) and I need to convert it to read (98.1) or (98.10). I have...
__________________________________________________________________________________________________________
How to Post to get the most: http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 25, 2013 at 8:08 am
pmscorca (11/19/2013)
Ultimately, the batch approach seems the better solution ..., isn't it?
Test, test, and test!!
There are a number of techniques to populate a test table with millions of rows in...
__________________________________________________________________________________________________________
How to Post to get the most: http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 19, 2013 at 2:42 pm
This was discussed just recently.
http://www.sqlservercentral.com/Forums/Topic1511574-3412-1.aspx#bm1511578
If you are deleting more than you are keeping you can populate a duplicate empty table with the rows you want to keep, delete the old...
__________________________________________________________________________________________________________
How to Post to get the most: http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 19, 2013 at 11:16 am
rlindstrom 38273 (11/6/2013)
__________________________________________________________________________________________________________
How to Post to get the most: http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 6, 2013 at 9:42 am
Tej_7342 (11/5/2013)
i have to delete data from a table which is older than 2 weeks, how can i use a cursor to do it.
Why does it have to be a...
__________________________________________________________________________________________________________
How to Post to get the most: http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 5, 2013 at 11:42 am
To make sure any answer is correct, please read the link under the signature line on how to post questions.
Can't you just do the following to pick up the null...
__________________________________________________________________________________________________________
How to Post to get the most: http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 4, 2013 at 10:41 am
Briceston (11/2/2013)
LinksUp (11/2/2013)
INNER JOIN cte2 b ON a1.AdmitCCYYMM = b.EffectiveCCYYMM
LEFT...
__________________________________________________________________________________________________________
How to Post to get the most: http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 2, 2013 at 11:09 pm
Just an extra closing paren.
INNER JOIN cte2 b ON a1.AdmitCCYYMM = b.EffectiveCCYYMM
LEFT JOIN cte1 a2 ON a1.AdmitCCYYMM = SubString(CONVERT(varchar, DATEADD(Month,1,a2.AdmitCCYYMM + '01'), 112), 1, 6)
...
__________________________________________________________________________________________________________
How to Post to get the most: http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 2, 2013 at 9:12 pm
This does not seem be a difficult problem. But as was mentioned, a lack of DDL for the tables and Indexes makes this very difficult to understand. This is an...
__________________________________________________________________________________________________________
How to Post to get the most: http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 1, 2013 at 5:20 pm
Briceston (10/31/2013)
I tried casting the date, but still had issues. My date field format is: YYYYMM
SELECT
(COALESCE(a1.Cost,0) + COALESCE(a2.cost,0) + COALESCE(a3.cost,0))/(3.0*b.numberofMembers)
FROM
cte1 a1
INNER JOIN cte2 b ON a1.AdmitCCYYMM = b.EffectiveCCYYMM
LEFT JOIN cte1...
__________________________________________________________________________________________________________
How to Post to get the most: http://www.sqlservercentral.com/articles/Best+Practices/61537/
November 1, 2013 at 1:22 pm
This may help in getting you started in the right direction:
select *, DENSE_RANK() over(order by id) DRank
from #tester
The rnk column is not even needed. In can be generated at any...
__________________________________________________________________________________________________________
How to Post to get the most: http://www.sqlservercentral.com/articles/Best+Practices/61537/
October 29, 2013 at 3:20 pm
Jeff Sims-413169 (10/29/2013)
Getting errors that the ta.team could not be bound.
You are getting that error because the 2nd exists query knows nothing about the alias ta at the time...
__________________________________________________________________________________________________________
How to Post to get the most: http://www.sqlservercentral.com/articles/Best+Practices/61537/
October 29, 2013 at 10:39 am
aeri_q (10/26/2013)
CHECK (LIST IN (SELECT NO_RANGE FROM RANGE WHERE ACCNT_TYP...
__________________________________________________________________________________________________________
How to Post to get the most: http://www.sqlservercentral.com/articles/Best+Practices/61537/
October 28, 2013 at 9:51 am
Viewing 15 posts - 211 through 225 (of 284 total)