Viewing 15 posts - 2,881 through 2,895 (of 3,544 total)
Either
a) Install email client (Outlook 2000 or greater), create profile (under account running sql server) that uses a mailbox on exchange, set up sqlmail to use profile, use xp_sendmail to...
Far away is close at hand in the images of elsewhere.
Anon.
Sqlmail will only work with mapi profile and you need email client installed (Outlook 2000 or greater) although I believe SQL2000 SP3 allows the use of Outlook Express. Otherwise you...
Far away is close at hand in the images of elsewhere.
Anon.
Agree with Frank.
(Wow did I really say that
)
But if you do want to put the results in another table then
INSERT...
Far away is close at hand in the images of elsewhere.
Anon.
quote:
The outer join should be faster than the Not Exists
Hmmm, interesting. I thought...
Far away is close at hand in the images of elsewhere.
Anon.
quote:
Am I wrong or are you much older than me
Age is relative my...
Far away is close at hand in the images of elsewhere.
Anon.
SELECT s.id, s.item,
SUM(ISNULL(e.in,0)) as 'total_in',
SUM(ISNULL(e.out,0)) as 'total_out',
SUM(ISNULL(e.in,0)-ISNULL(e.out,0)) as 'total_stock'
FROM stock s
LEFT OUTER JOIN event e
ON s.id = e.item_id
GROUP BY...
Far away is close at hand in the images of elsewhere.
Anon.
Congrats and well done Frank, you sentimental sycophantic old fool. ![]()
![]()
quote:
Now, can a moderator please...
Far away is close at hand in the images of elsewhere.
Anon.
quote:
From OP's code, it doesn't appear that Cust is in the primary key, so perhaps that shouldn't be in the join.
Far away is close at hand in the images of elsewhere.
Anon.
Viewing 15 posts - 2,881 through 2,895 (of 3,544 total)