Results 1 to 5 of 5
  1. #1
    Soda_data is offline Novice
    Windows 8 Access 2013
    Join Date
    Nov 2015
    Posts
    2

    Access SQL how to use a Subquery in from like you can do in Oracle

    I am familiar with Oracle SQL where I am allowed to use a subquery in my from clause as a virtual table of my own making or a view of data from the real database as a virtual sql table. However, I can't figure out how to do the same thing using Access SQL in MS Access 2013. This is an example of what runs fine in Oracle SQL but I can't get the technique to work in Access SQL:

    Select
    mytable.one
    from
    (Select database_table1.field1 as one from database_table1 where database_table1.field1 = 'Apple') as mytable,
    database_table2
    where


    mytable.one = database_table2.one

  2. #2
    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,848
    Msaccess and subqueries see allen browne 1 and 2

  3. #3
    Soda_data is offline Novice
    Windows 8 Access 2013
    Join Date
    Nov 2015
    Posts
    2

    thank you Orange!

    Quote Originally Posted by orange View Post
    Msaccess and subqueries see allen browne 1 and 2
    Thank you, orange.
    In the Allen Browne 1 thread I was able to use the example given for aggregation and sub query in the from.
    It was a little tricky for me but it worked and I'm starting to catch on.
    I appreciate your advice and this forum as well.
    Today was my first time to use it.

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 8 Access 2013
    Join Date
    Aug 2013
    Posts
    7,862
    Quote Originally Posted by Soda_data View Post
    ...
    Today was my first time to use it.
    Welcome to the forum.

  5. #5
    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,848

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

Similar Threads

  1. SQL Server vs. Oracle as a Back End to Access
    By Aaron5714 in forum Access
    Replies: 1
    Last Post: 03-27-2015, 12:13 PM
  2. Help Converting Oracle PL/SQL Query into Access
    By RThomas321 in forum Queries
    Replies: 5
    Last Post: 11-15-2014, 12:35 PM
  3. Converting access to oracle
    By wthoffman in forum Access
    Replies: 0
    Last Post: 03-08-2011, 11:05 AM
  4. Importing data from Oracle to access
    By indira in forum Access
    Replies: 3
    Last Post: 11-18-2010, 02:58 PM
  5. Oracle Discoverer to MS Access
    By money_213 in forum Import/Export Data
    Replies: 0
    Last Post: 06-27-2006, 12:43 AM

Tags for this Thread

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