Viewing 15 posts - 46 through 60 (of 898 total)
Ed Wagner (9/14/2016)
Hugo Kornelis (9/14/2016)
Eirikur Eiriksson (9/14/2016)
Kingston Dhasian (9/14/2016)
How would somebody respond to this? The last statement of the OP is a cruel joke.http://www.sqlservercentral.com/Forums/Topic1817507-3739-1.aspx
Makes you wonder what the purpose is...
September 14, 2016 at 6:57 am
How would somebody respond to this? The last statement of the OP is a cruel joke.
http://www.sqlservercentral.com/Forums/Topic1817507-3739-1.aspx
September 14, 2016 at 3:29 am
You are probably missing a set of parenthesis in the 3rd line of your pasted code
AND LessonPlanActivity.[weight] IS NULL OR LessonPlanActivity.[weight] <> 1)
should be
AND ( LessonPlanActivity.[weight] IS NULL OR LessonPlanActivity.[weight]...
September 13, 2016 at 11:58 pm
Anandkumar-SQL_Developer (9/9/2016)
really your coding is really fantastic. (i was...
September 11, 2016 at 10:45 pm
The below code should work on any version starting from 2005.
; WITH cte_diff AS
(
SELECT ROW_NUMBER() OVER( PARTITION BY model_key, brand, model ORDER BY created_date DESC...
September 9, 2016 at 6:55 am
This should help..
; WITH cte_diff AS
(
SELECT ROW_NUMBER() OVER( PARTITION BY model_key, brand, model ORDER BY created_date DESC ) AS RN,
...
September 9, 2016 at 1:25 am
Something like this..
SELECT Column2, SUM( CASE WHEN Column1 IS NULL THEN 1 ELSE 0 END ) AS NullCount
FROM TableName
GROUP BY Column2
HAVING SUM( CASE WHEN...
September 9, 2016 at 1:04 am
I am not sure what you mean by 35 combinations and your description is not detailed enough either.
Your request doesn't seem too complex and I am sure you will get...
July 25, 2016 at 12:10 am
For Period = 1 and Debnr = 1001, how do you decide that "Article A" should come under Summary1 and not Summary2 or something else?
Do you have any other column(...
July 5, 2016 at 1:00 am
You can use a CROSS APPLY as well
SELECT M.member_name,
M.member_plan,
LS.ncqa_code
FROM #member M
CROSS APPLY (
...
June 16, 2016 at 12:14 am
As John said above, this looks pretty straight-forward
I will give you some hints to get you started though
1. Have a look at INNER JOIN's and LEFT OUTER JOIN's in BOL...
June 15, 2016 at 11:52 pm
llouw1 (6/14/2016)
hi Kingston,my web browser is prohibiting me from getting into the code of the DelimitedSplit8K function...for some weird reason.
May you please embed in your reply?
thank you
Actually its an article...
June 14, 2016 at 5:55 am
Change MAX(transactionid) to MAX( Value ) in your query
The below method is another way to accomplish the same
SELECT TT.TransactionId,
MAX(...
June 14, 2016 at 5:01 am
You will need a string splitting function.
I am assuming the existence of one such function, "DelimitedSplit8K" whose script in given below for reference.
http://www.sqlservercentral.com/articles/Tally+Table/72993/
DECLARE @String VARCHAR(1000)
SET @String =...
June 14, 2016 at 4:45 am
Something like this. The below mentioned link has a good explanation on the method used.
http://www.sqlservercentral.com/articles/comma+separated+list/71700/
SELECT E.StaffNumber,
STUFF( (
...
May 31, 2016 at 6:51 am
Viewing 15 posts - 46 through 60 (of 898 total)