Results 1 to 8 of 8
  1. #1
    shabar is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    66

    Query Format change for Access

    Hi All

    I need following query to run on access. But the issue is syntax



    This query runs in Oracle



    SELECT t1.col11, t3.col32, t2.col22, t2.col23FROM t1, t2, t3WHERE t1.col11 = t3.col31AND t3.col32 = t2.col21 (+)


    Cheers

    Shabar

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Did you use Access Query Designer to build query?
    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
    shabar is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    66
    You reckon it's easy way..

    I'll try

    Cheers

    Shabar

  4. #4
    shabar is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    66
    Hi

    How can I create full outer join through Query Designer. I find there only inner and left and right outer join



    Cheers


    Shabar

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    What do you mean by 'full outer join'. I know only INNER, LEFT, RIGHT, or no join specified at all. In the last case every record of each table will join to every record of other table.
    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.

  6. #6
    shabar is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    66
    Hi June7

    I am after something like this

    Tables

    AA BB
    -------- --------
    Item 1 Item 3
    Item 2 Item 4
    Item 3 Item 5
    Item 4 Item 6




    Output


    AA BB
    -------- --------
    Item 1
    Item 2
    Item 3 Item 3
    Item 4 Item 4
    ---- Item 5
    ---- Item 6


    Cheers

    Shabar

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    You don't have a 'master' table that has all possible Items?

    Query1:
    SELECT AA.Item, BB.Item FROM BB RIGHT JOIN AA ON BB.Item = AA.Item;

    Query2:
    SELECT AA.Item, BB.Item FROM AA RIGHT JOIN BB ON AA.Item = BB.Item;

    Query3:
    SELECT * FROM Query1
    UNION SELECT * FROM QUery2;

    or All in One:
    SELECT AA.Item, BB.Item FROM BB RIGHT JOIN AA ON BB.Item = AA.Item
    UNION SELECT AA.Item, BB.Item FROM AA RIGHT JOIN BB ON AA.Item = BB.Item;

    There is no wizard or designer for UNION, must type in SQL VIEW.
    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.

  8. #8
    shabar is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2013
    Posts
    66
    Thax mate

    Cheers

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

Similar Threads

  1. Can't change Binary format to Text
    By fdormoy in forum Database Design
    Replies: 11
    Last Post: 07-17-2014, 06:23 AM
  2. Access query result in excel format
    By Tha-G in forum Queries
    Replies: 1
    Last Post: 01-06-2012, 01:41 PM
  3. How to Change Date Format
    By bulbul4u in forum Queries
    Replies: 1
    Last Post: 04-01-2011, 03:02 PM
  4. Change field format
    By zhshqzyc in forum Access
    Replies: 6
    Last Post: 01-20-2011, 04:07 PM
  5. Can i change the format of DATE () ?
    By Nokia N93 in forum Access
    Replies: 2
    Last Post: 11-27-2010, 01:34 PM

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