Results 1 to 3 of 3
  1. #1
    doci4a is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2011
    Posts
    20

    What is the meaning of this query?

    Hi guys,

    As I have limited experience in SQL, I would like to know what does the following query mean?

    SELECT ASSOCIATE_ID FROM HR_ASSOCIATE_DATA
    WHERE CCID = " & cc & "
    AND GROUP_CODE = '" & cg & "'
    AND FIRM = " & fr & ";"

    I know what "cc", "cg" and "fr" represent.
    What I don't understand is what the "&" symbol does.


    And why in the CCID line there are double quotes only and in the GROUP_CODE row there are single quotes and then double quotes.

    Thank You for your time

  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,726
    I don't recognize the format/syntax. It almost looks like someone building a query in vba, but it isn't that either.

    Where did this query come from? What is the context?
    What do "cc", "cg" and "fr" represent?

  3. #3
    doci4a is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2011
    Posts
    20
    Quote Originally Posted by orange View Post
    I don't recognize the format/syntax. It almost looks like someone building a query in vba, but it isn't that either.

    Where did this query come from? What is the context?
    What do "cc", "cg" and "fr" represent?

    It was out of the context sorry...irrelevant topic.

    Thank You

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

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