Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Incident Reports » Incident Reports Addressed for Version 3.04 » View Incident Report |
Serious |
Reported By: Yavuz Ozdemir Reported On: 10/23/2001 For: Version 3.03 Build 1 |
Suppose that there are two table: SAMPLES ---------------------- sample integer (observation value list) RANGES --------------- Seq AutoInc (sequence number) LL Integer (low limit for range) HL Integer (high limit for range) SAMPLES RANGES ---------------- --------------- 1 1 1 4 2 2 2 5 3 3 7 8 4 4 8 10 5 6 7 8 9 10 I want to calculate sample range frequance (lowlimit<= sample <HighLimit). select A.sample, count(b.Seq) from Samples A left outer join Ranges on (A.Sample>=B.LL) and (A.Sample<B.HL) group by A.sample RESULT SETS ----------------------- SAMPLE DBISAM BDE 1 1 1 2 2 2 3 2 1 4 1 1 5 1 0 6 1 0 7 1 1 8 1 1 9 1 1 10 1 0 If i use sum(b.seq) instead of count(b.seq) the result sets are equal. If i use count(*) instead of count(b.seq) the result sets are equal. I run below Sql statement too: select A.sample, count(b.Seq) from Samples A, Ranges B where (A.Sample>=B.LL) and (A.Sample<B.HL) group by A.sample The result sets are equal and correct both count(b.seq) and count(*). But the result sets are not include zero frequance samples.
This web page was last updated on Tuesday, April 23, 2024 at 08:39 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |