Viewing 15 posts - 211 through 225 (of 275 total)
abhishek_300 (7/28/2015)
Thanks Gila monster for your comments .However for interviews people do not ask simple question on SQL hence you are seeing unrealistic example.
People don't (always) ask simple questions, but...
July 29, 2015 at 7:59 am
"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
Viewing 15 posts - 211 through 225 (of 275 total)