Viewing 15 posts - 436 through 450 (of 617 total)
It sounds like you just need to join invoice and salesman then do a group on salesman.name and invoice.date and a sum on invoice and another sum on discount.
Give it...
January 29, 2008 at 12:01 pm
I would read the following post, it will help you get the best response for your post.
http://www.sqlservercentral.com/articles/Best+Practices/61537/
January 29, 2008 at 10:14 am
I would read the article below and repost:
http://www.sqlservercentral.com/articles/Best+Practices/61537/
It sounds on the surface like a fairly simple grouping but it would be alot easier to tell if you had some sample...
January 29, 2008 at 10:06 am
Just remember that @@fetch_status contains data based on the last fetch run regardless of which cursor it is.
January 29, 2008 at 9:54 am
viacoboni (1/28/2008)
Gordon Radley (1/28/2008)
Fair Enough!!Obviously my interpretation of the question was a bit off..
Thank you!
Gordon,
Based on the most popular "incorrect" answer, I'd say it was more than just you interpreting...
January 28, 2008 at 12:12 pm
Actually I read an article that said that Microsoft will even provide support for using SQL with VMWare .. as long as the VMWare is their version of it :).
January 28, 2008 at 12:08 pm
True. I've only ever used it on development and test boxes.
It was very nice though when using for test boxes because you could put up a new test box...
January 28, 2008 at 9:40 am
Also just to point it out, part of what I was trying to get at was that you could create a loop in your package to run through a list...
January 28, 2008 at 7:55 am
I've used virtual machines with SQL Server at my last 2 jobs and its worked fairly well. The only thing I can think of off the top of my...
January 28, 2008 at 7:38 am
Gordon Radley (1/28/2008)
January 28, 2008 at 7:19 am
Actually I wouldn't use UNION ALL unless you know you aren't going to get duplicates (or you want to count duplicates)
Also It would probably be easier to do the following
SELECT...
January 24, 2008 at 10:21 am
Matt Miller (1/24/2008)
January 24, 2008 at 10:07 am
Ok someone who is better at how indexes work tell me if this is correct.
If you change the code
isnull(old.avgcostprice,0) <> sub1.cost
to
NOT (old.avgcostprice = sub1.cost)
1) Are these equivalent? (after almost...
January 24, 2008 at 9:58 am
Antares686's solution looks good although I'm somewhat uncomfortable about pulling the where clauses out of the subqueries and into the main one. It certainly makes the solution alot easier...
January 18, 2008 at 12:38 pm
I'm actually in the middle of a project where we are having to remove SYSADMIN rights from anything other than the DBA's. This is in order to meet audit...
January 17, 2008 at 10:18 am
Viewing 15 posts - 436 through 450 (of 617 total)