Viewing 15 posts - 6,151 through 6,165 (of 8,731 total)
Could a second parameter be added to ISNUMERIC to determine a specific numeric type?
I'd love a wildcard REPLACE as well.
July 10, 2014 at 2:23 pm
SQLRNNR (7/9/2014)
Koen Verbeeck (7/9/2014)
GilaMonster (7/9/2014)
WHERE Coalesce(NotNullableColumn,-1) = 0and CategoryID = @CategoryID
Group By CategoryID
......
Imo there is not necessarily something wrong with the group by.
The coalesce on the other hand is for...
July 9, 2014 at 11:38 am
That's one select statement 🙂
Do you mean something like this?
SELECT 'ClassSize' = CASE
WHEN COUNT(studentid) < 10
...
July 9, 2014 at 10:56 am
Hardy21 (7/9/2014)
Luis Cazares (7/8/2014)
Are we supposed to do your work?
+1
Or do you have something done already?
Please share if you have already done something.
There are options like CTE, Self -...
July 9, 2014 at 9:06 am
GilaMonster (7/9/2014)
WHERE Coalesce(NotNullableColumn,-1) = 0and CategoryID = @CategoryID
Group By CategoryID
......
What where they thinking? They need to use ISNULL to preserve the data type from the column. :hehe:
July 9, 2014 at 9:03 am
I'm Batman shhh.... No, really, I'm a billionaire and philanthropist called Bruce Wayne. 😀
I just found that helping in here keeps me learning and practicing to become better each day....
July 9, 2014 at 8:59 am
It seems that you need joins or semi-joins (EXISTS).
I can't see the complexity and you didn't even provide sample data and expected results. You've been here for some time and...
July 8, 2014 at 5:08 pm
Are we supposed to do your work? Or do you have something done already?
July 8, 2014 at 4:52 pm
I assume that you didn't read the article proposed by Craig. Read it and find out a way to improve the performance.
July 8, 2014 at 4:44 pm
I came up with 2 solutions, but I changed the pivot to a cross tabs approach. I prefer cross tabs because they give more flexibility and with more than one...
July 8, 2014 at 4:05 pm
How does the different name for Server, instance or database affect you? Do you make reference to them in your code/object definitions?
July 8, 2014 at 2:06 pm
This seems to give the same results as your query. The problem is that you need a single row number, instead of having to calculate a different row number for...
July 8, 2014 at 12:35 pm
The reason might be the DISTINCT which has to sort all the values to eliminate duplicates. Another reason might be the OR you have in there which might be causing...
July 8, 2014 at 10:52 am
I might be wrong, but this is a shot in the dark. Aggregate functions (including MAX) exclude null values. If you're using MAX() and replacing it with '1900-01-01' the most...
July 8, 2014 at 9:48 am
Viewing 15 posts - 6,151 through 6,165 (of 8,731 total)