Viewing 15 posts - 991 through 1,005 (of 1,217 total)
Nice stuff, Damien... well, I suppose that's the question that should have been asked first. I only tried to optimize existing code, without venturing deeper into the idea.
What do YOU...
May 11, 2005 at 2:32 am
Well, yes, but he is doing divide by SUM... so the error should occur only if the entire SUM = 0. This could occur either if there are no records...
May 11, 2005 at 2:13 am
As I understand it, you have problems when there are no records to be summed in the rep table. If so, then I would propose to check only after the...
May 11, 2005 at 1:54 am
If your table has a single-column primary key (column pk in the following SQL), then it should be simple:
/*fictitious table for testing*/
CREATE TABLE tbl (pk int identity primary key, category int,...
May 9, 2005 at 1:44 am
... or maybe a simple LEFT(mrwid,1) <> 'R' would do the trick? Possibly with some treatment of NULL values, depending on what your needs are and whether NULLs are allowed.
/edit/...
May 6, 2005 at 1:42 am
You can use NOT in queries, especially in connection with other keywords: IS NOT NULL, NOT EXISTS, NOT BETWEEN. But if you simply want to say "is not equal to",...
May 5, 2005 at 3:13 am
If you can't use triggers and want to record all changes to Employer, you could first record current values of ClientNo/RespEmployer - for ALL clients - in the table B as a...
May 5, 2005 at 1:50 am
Hello,
it would be much easier to help you if you state what is the desired result, and in which way your SQL "does not work" in cases where the line...
May 5, 2005 at 1:11 am
... oh, and one question.. What is result of this :
SELECT count(*) FROM ft WHERE fno=6096
SELECT count(*) FROM ml WHERE adoc=6096
I supposed that adoc may occur twice, but fno is unique...
May 4, 2005 at 9:24 am
Hi Luis, Bookkeeping means the same as Accounting... well, maybe there are some differences, but I don't speak English good enough to know them.
It would really help a lot if...
May 4, 2005 at 8:51 am
Bookkeeping is a strange thing and I never really understood it... but one thing I remember: most bookings are in pairs. That could be the reason of doubling 2554.51 to...
May 4, 2005 at 6:52 am
To retrieve the entire row which has longest name:
SELECT *
FROM YourTable YT
WHERE LEN(YT.Column_1) = (SELECT MAX(LEN(Column_1)) FROM YourTable)
It will display all matching rows, if several rows have the same length...
May 3, 2005 at 4:22 am
Remi, I absolutely agree with you that this would be the right thing to do... and somehow I'm afraid that not only this one table requires normalization.
So, to make sure...
April 28, 2005 at 8:44 am
Hmm.. I don't know, Remi... it seems they have their own business logic, with months absolutely independent on real calendar maybe setting things...
April 28, 2005 at 8:19 am
I understand a bit more now... it is rather unfortunate solution to have "issue" instead of a simple datetime column. Is it the same in every year, that is, the...
April 28, 2005 at 7:54 am
Viewing 15 posts - 991 through 1,005 (of 1,217 total)