Viewing 13 posts - 1 through 13 (of 13 total)
Chris,
I tested your latest post and yes, it does indeed calculate all sums correctly using the same test data set. There was one minor typo I wanted to mention...
February 28, 2014 at 8:33 am
Chris,
After some further experimentation I appear to have a working solution as shown below. Basically I adopted an inner query that I had tried from a previous attempt to...
February 27, 2014 at 4:17 pm
Chris,
Thank you very much for your posted query. Unfortunately it overlooks one condition that I may not have made as clear as I should have. In the overall...
February 27, 2014 at 12:21 pm
After some further experimentation I've gotten close (or so it seems) but not quite there. My latest attempt at this is shown below. The inner query (starting with...
February 26, 2014 at 6:13 pm
Doug,
Thank you for your reply. The SQL compiler was not happy with the join clause movement that you had proposed. Nonetheless, your suggestion got me to thinking about...
February 25, 2014 at 5:40 pm
Ken,
No problem. I actually learned more wrestling with that last query trying to make it work than I would have if it worked out of the box. Anyhow,...
January 17, 2008 at 7:04 am
Ken,
Thanks for the optional solution. I spent some time studying it and like it in that it seems conceptually fairly straightforward. I have not previously used the HAVING...
January 16, 2008 at 4:40 pm
Thank you very much for your responses,
Ken, I tried your solution against my tables and it worked perfectly - the first time. I had never used derived tables, but...
January 15, 2008 at 9:41 am
Hello,
I had a chance to try out the suggestions. Here's what I found...
Matt - the query you suggested below works.
UPDATE
inv
SET inv.
August 28, 2007 at 12:19 pm
Hello,
Thank you all for all the feedback.
I had hoped to be able to try some of your suggestions this evening, but got derailed by other things.
I will have a go...
August 27, 2007 at 6:37 pm
Matt,
Basically it is posting to too many records in the INV table.
In the final where clause,
WHERE inv.class IN (SELECT class FROM issue_dx) AND inv.PartNumber IN (SELECT PartNumber...
August 27, 2007 at 2:02 pm
Sorry - I managed to post before completing the message,
The above query fails in the WHERE clause of the main query. The problem I am having is dealing with the...
August 27, 2007 at 1:35 pm
John,
Thanks for the response. I did some further rummaging around the SQL Server online help and ended up doing a complete rewrite of my query. I came up with the...
March 2, 2007 at 1:43 pm
Viewing 13 posts - 1 through 13 (of 13 total)