Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> From Access to Oracle

From Access to Oracle

From: <Roland.Skoldblom_at_ica.se>
Date: Tue, 11 Sep 2001 23:58:31 -0700
Message-ID: <F001.0038AF1C.20010911234524@fatcity.com>

Hallo,

Anyone who can help me,

I have this query in Ms Access:

How should I write this sql statement in oracle.

SELECT RIK2.LEV.LEVNR, RIK2.VARE.EAN_NR, RIK2.VARE.VARENAVN, RIK2.AVD.KJEDE, Sum(BRT.BRTOMS_DAG.ANT) AS ANT, Sum(BRT.BRTOMS_DAG.UTVERDI) AS UTVERDI, BRT.BRTOMS_DAG.DATO, Left([RIK2.VARE].[HYLLETXT2],12) AS VARUMARKE, RIK2_VARE.STR FROM ((RIK2.LEV INNER JOIN RIK2.VARE ON RIK2.LEV.LEVNR = RIK2.VARE.LEVNR) INNER JOIN BRT.BRTOMS_DAG ON (RIK2.VARE.VARE_SNR = BRT.BRTOMS_DAG.VARE_SNR) AND (RIK2.VARE.VARENR = BRT.BRTOMS_DAG.VARENR) AND (RIK2_VARE.SORTIMENT = BRT_BRTOMS_DAG.SORTIMENT)) INNER JOIN RIK2_AVD ON BRT.BRTOMS_DAG.AVDNR = RIK2.AVD.AVDNR WHERE (((RIK2.LEV.SELSKAP)="11") AND ((RIK2.VARE.SELSKAP)="11") AND ((RIK2.AVD.SELSKAP)="11"))
GROUP BY RIK2.LEV.LEVNR, RIK2.VARE.EAN_NR, RIK2.VARE.VARENAVN, RIK2.AVD.KJEDE, BRT.BRTOMS_DAG.DATO, RIK2.VARE.STR, RIK2.VARE.HYLLETXT2 HAVING (((RIK2.AVD.KJEDE) In (30,31,32,33,34))) ORDER BY RIK2.VARE.EAN_NR; I guess problem with left join, inner join and outer join

Thanks in advance.

Roland

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author:
  INET: Roland.Skoldblom_at_ica.se

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Sep 12 2001 - 01:58:31 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US