Results 1 to 2 of 2
  1. #1
    hklein is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    15

    Sub-query question

    Hello,



    I would like to make a query, but cannot figure out, how.
    So, I have a table, which contains persons, indicated their departments and sex, like this
    Id,name, Dept, sex(male, female)

    I would like to have the depts, where everybody is female.

    I think, it should be a sub-query, but I cannot solve it.

    I appreciate any help,

  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
    Select Id,name, Dept, sex
    FROM YourTableName
    Where Sex = "Female"

    It seems that your table structure may need some redesign depending on the application.

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

Similar Threads

  1. vba query question
    By jscriptor09 in forum Programming
    Replies: 2
    Last Post: 10-08-2011, 07:22 PM
  2. Query Question
    By starhannes in forum Queries
    Replies: 13
    Last Post: 05-06-2010, 04:05 PM
  3. Query Question
    By Guiseppe in forum Queries
    Replies: 5
    Last Post: 03-23-2010, 04:32 PM
  4. Query with a question
    By sagit3 in forum Queries
    Replies: 0
    Last Post: 06-11-2009, 07:10 AM
  5. Query Question
    By blewis in forum Queries
    Replies: 0
    Last Post: 04-16-2009, 01:37 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