Results 1 to 3 of 3
  1. #1
    jas0214 is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2012
    Posts
    1

    Convert QUERIES from ORACLE to ACCESS!?!

    I created a database in Oracle iSQL, but now I have to make it work in Access. I was able to move everything over fine except for two queries. I know Access doesn't allow NATURAL JOIN or (+) but I'm not sure how to rewrite the statements to make them work.



    First One:

    select EMP_SSN, EMP_FNAME &" "& EMP_LNAME as "Employee Name",ins_dep_fname,ins_dep_dob

    from employee e, insured_dependent i
    WHERE e.EMP_ID = i.EMP_ID(+)
    ORDER by EMP_FNAME;



    Second One:

    select EMP_FNAME &" "& EMP_LNAME as "Employee Name", EMP_SSN, EMP_ID_MANAGER

    from employee NATURAL JOIN department;


    Any help would be greatly appreciated!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,597
    Something like:

    SELECT EMP_SSN, EMP_FNAME &" "& EMP_LNAME as "Employee Name", ins_dep_fname, ins_dep_dob
    FROM employee INNER JOIN insured_dependent ON employee.EMP_ID = insured_dependent.EMP_ID
    ORDER by EMP_FNAME;

    SELECT EMP_FNAME &" "& EMP_LNAME as "Employee Name", EMP_SSN, EMP_ID_MANAGER
    FROM employee INNER JOIN department ON employee.department=department.department;

    Don't know if the INNER join is correct for your situation. Maybe LEFT or RIGHT will be more appropriate.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Load csv data to Oracle through Access
    By acces2oracle in forum Access
    Replies: 1
    Last Post: 10-24-2011, 02:41 PM
  2. Converting access to oracle
    By wthoffman in forum Access
    Replies: 0
    Last Post: 03-08-2011, 11:05 AM
  3. Importing data from Oracle to access
    By indira in forum Access
    Replies: 3
    Last Post: 11-18-2010, 02:58 PM
  4. Oracle CLOB not accessible in ACCESS
    By saccitylocal in forum Import/Export Data
    Replies: 0
    Last Post: 08-31-2010, 10:29 AM
  5. Oracle Discoverer to MS Access
    By money_213 in forum Import/Export Data
    Replies: 0
    Last Post: 06-27-2006, 12:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums