Viewing 15 posts - 13,216 through 13,230 (of 13,841 total)
You appear to have ditched my CASE statement, for some reason! That's the way to get zero returned if B is 'no'.
Also, you should prefix your date column selections (tab1.date,...
November 7, 2005 at 9:59 am
I actually typed in your data to test my query, so it should be right ![]()
Please post the actual SQL that is generating the...
November 7, 2005 at 9:34 am
This should do it - uses a co-related subquery:
select t.b, t.d, t.c,
Calc = case t.b
when 'yes' then t.c / (select cast(sum(t2.c) as decimal(19)) from A t2 where t2.d =...
November 7, 2005 at 9:07 am
Have you tried a full reboot of the server?
Has anything been installed on the server recently?
November 3, 2005 at 2:43 am
Assuming that's all you want ...
SELECT MIN([DATE]) FROM STOCK_MOVEMENT_HISTORY
If you actually want more than that, please post an example of your required results.
November 3, 2005 at 2:41 am
Check this article & see whether it's relevant:
November 2, 2005 at 1:30 pm
No it doesn't.
From BOL:
COUNT(*) returns the number of items in a group, including NULL values and duplicates.
COUNT(ALL expression) evaluates expression for each row in a group and returns the number...
November 2, 2005 at 1:26 pm
This is a weird one. Have you run dbcc checkdb?
Also, if you run the statement directly through QA (rather than as part of a stored proc), do you get the...
November 2, 2005 at 12:20 pm
As soon as you put a count() in your query, SQL Server assumes that you are attempting to summarise your data in some way. In particular, it assumes that you...
November 2, 2005 at 10:30 am
Have you tried using DTS? That should do it.
November 2, 2005 at 10:23 am
If you are using QA, check out the value of Tools/Options/Results/Maximum characters per column.
November 2, 2005 at 10:12 am
I am not familiar enough with Access projects to give you a definitive answer here.
Is the selection method something which you have control of? Or is it an off-the-shelf Access...
November 1, 2005 at 8:13 am
Even though they are sharing the program, they are not sharing processes. Is the selection you are talking about performed at run time, or is it driven by data which...
November 1, 2005 at 7:56 am
Are you concerned that multiple user access will cause locking problems?
When you talk of a user's records showing up on other users' reports, what do you mean? Do users own certain...
November 1, 2005 at 7:39 am
Viewing 15 posts - 13,216 through 13,230 (of 13,841 total)