Results 1 to 3 of 3
  1. #1
    noviceUser is offline Novice
    Windows XP Access 2002
    Join Date
    Sep 2010
    Posts
    2

    Equivalent MsAccess Query


    Below is the oracle query which I am trying to convert into msaccess equivalent.I am getting confused by joins guide me to the equivalent query.
    Code:
    select  dv.*  
     from  GC_DONATION_DETAIL_VW dv,  SJ_CATALOG.topva  opva4,  SJ_CATALOG.topva  opva6,  SJ_CATALOG.topva  opva7
     where
          opva4.ORDERPRODUCTVARIATIONUID  =  DV.OPV_ID
          AND  opva4.ATTRIBUTEKEY  =  'tributeType'
          AND  opva6.ORDERPRODUCTVARIATIONUID  =  DV.OPV_ID
          AND  opva6.ATTRIBUTEKEY  =  'multipleRecipients'
          AND  DECODE  (opva4.VALUE,  'Holiday',  DECODE  (opva6.VALUE,  NULL,  'Y',  'B'),'N')  =  'B'
          AND  opva7.ORDERPRODUCTVARIATIONUID(+)  =  dv.opv_id
          AND  opva7.ATTRIBUTEKEY(+)  =  'TADonorID'  
          AND  OPVA7.VALUE  IS  NULL
          and  DV.DATE_INSERTED  >=  sysdate  -3

  2. #2
    pkstormy's Avatar
    pkstormy is offline Access/SQL Server Expert
    Windows XP Access 2003
    Join Date
    Mar 2010
    Location
    Madison
    Posts
    682
    Why not just do this in the query designer? You could then change the view from Design view to SQL view (upper left corner dropdown). And that would be your SQL statement with the joins.

    I'm a graphical/gui type of person and always use the designer first. Otherwise I could end up spending hours creating a sql statement that I can do in a couple of minutes using the query designer.

  3. #3
    noviceUser is offline Novice
    Windows XP Access 2002
    Join Date
    Sep 2010
    Posts
    2
    I donot use any gui inteface.That is the biggest drawback.

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

Similar Threads

  1. Learn MSAccess by playing MSAccess Jeopardy
    By pkstormy in forum Sample Databases
    Replies: 4
    Last Post: 11-17-2016, 07:27 AM
  2. Is there equivalent code in VBA?
    By techneophyte in forum Programming
    Replies: 4
    Last Post: 08-02-2010, 07:11 AM
  3. WeekdayName equivalent in 2000
    By sunnybrook in forum Queries
    Replies: 8
    Last Post: 07-14-2010, 10:47 PM
  4. MSACCESS Query with calculations?
    By Masterfinn in forum Queries
    Replies: 10
    Last Post: 02-24-2010, 10:51 AM
  5. MSACCESS Query
    By saa18 in forum Access
    Replies: 0
    Last Post: 11-14-2008, 05:12 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