Viewing 15 posts - 1,396 through 1,410 (of 1,492 total)
ChrisM@Work (5/21/2014)
UPDATE h SETPhone1 = CASE WHEN d1.Phone IS NOT NULL THEN NULL ELSE Phone1 END,
Phone2 = CASE WHEN d2.Phone IS NOT NULL THEN NULL ELSE Phone2 END,
Phone3 =...
May 21, 2014 at 7:19 am
Was not sure if it would help as it was not exactly what you wanted but thought it might spark an idea.
May 19, 2014 at 6:44 am
Wanted to count the connections yesterday and came up with this:SELECT distinct
Cses.host_name ...
May 16, 2014 at 12:36 pm
Create an intermediate table for the data from Excel then use UNPIVOT.
May 14, 2014 at 12:39 pm
Thanks!
Only one value is expected.
I was reviewing a developers code that had a cursor and thought my way would be better.
May 14, 2014 at 10:24 am
Luis C., when I looked at the code I thought I was missing something about Avg, now I know.
May 9, 2014 at 12:55 pm
mickyT (5/9/2014)
I guessing that the type is the main part of this, so something like
CASE
WHEN Type = 'Type 1' THEN
...
May 9, 2014 at 12:01 pm
Notice that they have not logged in since 2011
May 7, 2014 at 10:58 am
My first thought was you need to check the max memory setting, make sure it is NOT the default. However the limited SAN space may be the problem.
May 6, 2014 at 4:45 am
1) what have you tried?
2) do you just have the five columns?
May 5, 2014 at 8:45 am
Thanks Lois. I said it was not tested. 😀
That is two wrong in about ten minutes. Time to go home.
May 2, 2014 at 12:46 pm
I believe you are looking for CHARINDEX with [0-9][0-9][0-9].
Something like:
SUBSTRING(yourvalue, CHARINDEX('[0-9][0-9][0-9]',yourvalue), lengthyourvalue)
Note this is not tested.
May 2, 2014 at 12:39 pm
What do you get if you run?
SELECT
SUM(ISNULL([Share_Invest],0)) [Investment],
SUM(ISNULL([Profit_Share],0)) [Profit Amount],
[Variance] = SUM(ISNULL([Share_Invest]-[Profit_Share],0))
FROM Finance
May 2, 2014 at 9:22 am
Thanks. Since the MS default is to append I did not know, even though I always do the full backups into separate files.
We have grown and I was wondering...
April 29, 2014 at 5:15 am
Viewing 15 posts - 1,396 through 1,410 (of 1,492 total)