Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Need a Query... [modified]

Need a Query... [modified]

Scheduled Pinned Locked Moved Database
tutorialdatabasesalesquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jamal Abdul Nasir
    wrote on last edited by
    #1

    --> how to determine that a data (records of two columns) exist in a table? for example:

    CustomerID Customer Name City
    1 John New York
    2 Adam Detroit
    3 Brayan Washington

    --> i want to know if ("Adam" and "Detroit") exist in the same row or not....

    J A Nasir K

    modified on Sunday, April 12, 2009 11:45 AM

    H L 2 Replies Last reply
    0
    • J Jamal Abdul Nasir

      --> how to determine that a data (records of two columns) exist in a table? for example:

      CustomerID Customer Name City
      1 John New York
      2 Adam Detroit
      3 Brayan Washington

      --> i want to know if ("Adam" and "Detroit") exist in the same row or not....

      J A Nasir K

      modified on Sunday, April 12, 2009 11:45 AM

      H Offline
      H Offline
      Henry Minute
      wrote on last edited by
      #2

      This is such a basic operation, that I can only suggest that you do some research on T-SQL. Particularly Select and Where. Try a few things out and come back if what you try fails.

      Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

      1 Reply Last reply
      0
      • J Jamal Abdul Nasir

        --> how to determine that a data (records of two columns) exist in a table? for example:

        CustomerID Customer Name City
        1 John New York
        2 Adam Detroit
        3 Brayan Washington

        --> i want to know if ("Adam" and "Detroit") exist in the same row or not....

        J A Nasir K

        modified on Sunday, April 12, 2009 11:45 AM

        L Offline
        L Offline
        Le centriste
        wrote on last edited by
        #3

        use the exists statement.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups