Viewing 15 posts - 241 through 255 (of 305 total)
"Getting on" with people is an important skill, but it's not defined by being able to socialise outside work. I'm currently in a small(ish) department of about 30 people and...
July 29, 2015 at 7:50 am
Try changing p1.City_Name != p2.City_Name to p1.City_Name > p2.City_Name - that way you will only pick up the link in one direction.
July 20, 2015 at 1:27 am
Antares686 (7/13/2015)
Kutang Pan (7/10/2015)
SELECT
SUM(CASE WHEN Type = 4 AND STATUS IN (1, 2, 3) THEN Value ELSE 0 END)
,SUM(CASE...
July 14, 2015 at 4:48 am
I've worked on a similar process; we had to identify clients across multiple 'unique' identifiers who were actually the same person and where some records had more data populated than...
June 3, 2015 at 2:06 am
Yes, use ChrisM's version. Mine would give SalesGrouping according to orderid rather than number of orders.
June 1, 2015 at 7:08 am
You can't use the column aliases in the GROUP BY clause; you would either need to repeat the definitions or wrap them in a CTE as below;
;WITH OrderGroups as
(SELECT [orderid]
...
June 1, 2015 at 4:27 am
Enya? When the database is down? Surely it has to be Motorhead?
May 15, 2015 at 1:55 am
We have code reviews for all languages including SQL. The SQL (DDL and DML) is included largely because we don't have a DBA and a lot of very poor code...
April 24, 2015 at 3:16 am
Update: I tried the J Livingstone solution as a straight SELECT rather than a view definition. It takes about the same time as my solution and has the same duplicates...
April 23, 2015 at 2:21 am
Thanks for your responses to this.
J Livingstone, I got an error message trying to create a view with your code; "The ORDER BY clause is invalid in views, inline functions,...
April 23, 2015 at 1:44 am
Both! We use SSMS for developing/testing. When a project is ready to go into UAT, the changes from development are put into the project in Visual Studio so that they...
March 27, 2015 at 7:48 am
The correct number is zero!
March 23, 2015 at 9:10 am
In case it helps anyone with a similar problem, here is the closing summary from MS support.
Technical Summary : on one of your server, the observed EXECUTE permissions didn’t match...
January 20, 2015 at 1:26 am
As an antidote to Jeff's quick interview technique; the shortest one I ever had was for a contract position. My backside had barely touched the chair when the interviewer asked...
January 9, 2015 at 1:50 am
As I said, we've had to take the stance that we're not going to spend more time on it. This was the latest MS response (they think the problem may...
January 8, 2015 at 2:42 am
Viewing 15 posts - 241 through 255 (of 305 total)