Results 1 to 6 of 6
  1. #1
    vikram is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2011
    Posts
    4

    SQL query help please

    no place
    1 hyd
    2 nzb
    1 nzb
    3 abc
    1 bbc
    3 xyz

    i want output
    no place
    1 hyd
    1 nzb
    1 bbc
    3 abc


    3 xyz

  2. #2
    SltPhx is offline Advanced Beginner
    Windows Vista Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    41
    Hey Vikram,
    Is there any reason why you eliminated
    2 nzb
    in the output?
    I am assuming that here, place is a unique field, and can be in the output only once?

  3. #3
    vikram is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2011
    Posts
    4
    Quote Originally Posted by SltPhx View Post
    Hey Vikram,
    Is there any reason why you eliminated
    2 nzb
    in the output?
    I am assuming that here, place is a unique field, and can be in the output only once?
    Place is NOT a unique field, it can be in the output more than once.
    i want to display numbers(no) in more than one place.

    no place
    1 hyd
    2 nzb
    1 nzb
    3 abc
    1 bbc
    3 xyz
    1 nzb

    i want output
    no place
    1 hyd
    1 nzb
    1 nzb
    1 bbc
    3 abc
    3 xyz

  4. #4
    vikram is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2011
    Posts
    4
    some one please reply ...

  5. #5
    SltPhx is offline Advanced Beginner
    Windows Vista Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    41
    Vikram,
    Could you please explain based on what criteria you want to display your result?
    Why is it that you eliminated 2 NZB?

  6. #6
    vikram is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2011
    Posts
    4
    Hi SltPhx ...

    Quote Originally Posted by SltPhx View Post
    Vikram,
    Could you please explain based on what criteria you want to display your result?
    Why is it that you eliminated 2 NZB?
    No - Field / Integer
    Place - Field / Text
    query should display all NO and PLACE

    Condition
    - if NO is present in more than one PLACE

    * 2 NZB => [NO] 2 is only present at one particular [PLACE] NZB. Other numbers are present in more than one place.

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