From abiy.alemu@criltechnology.com Sun, 01 Jul 2001 23:48:45 -0700 From: ALEMU Abiy Date: Sun, 01 Jul 2001 23:48:45 -0700 Subject: Simple SQL Query Question Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary..31565.1077462890.multipart/mixed" --Boundary..31565.1077462890.multipart/mixed Content-Type: text/plain Content-Transfer-Encoding: 7bit I've a table with the following structure and sample data :   Station        Emission_Freq        Reception_Freq --------        -----------------        ------------------ STAT1        192.5                        193.5 STAT2        193    STAT2        194 STAT2        193.5                        194.5 STAT2        195     And I would like to select the number of frequencies, sort of count(*), for a given station and multiply that value by 2 if the station has Emission frequency and reception frequency and multiply by one if the station has only the emission frequency or only the reception frequency.  I don't know how to use a condition in SQL.  I'm sure that it's possible to do it but I don't know how.  Can anybody help me ? ------------------------------------------------------------------------------------ @biy @lemu abiy.alemu@criltelecom.com Database Administration Engineer Groupe CRIL TECHNOLOGY France   cril.gif --Boundary..31565.1077462890.multipart/mixed Content-Type: application/octet-stream; name="msg15767" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="msg15767" Content-Description: "" --Boundary..31565.1077462890.multipart/mixed--