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. Combine Like and In Operator in sql-2005

Combine Like and In Operator in sql-2005

Scheduled Pinned Locked Moved Database
databasehelp
6 Posts 4 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.
  • A Offline
    A Offline
    Anudeep Jaiswal
    wrote on last edited by
    #1

    i want to combine like and in operator in sql query... any one help me.................

    modified on Monday, August 4, 2008 7:01 AM

    A P 2 Replies Last reply
    0
    • A Anudeep Jaiswal

      i want to combine like and in operator in sql query... any one help me.................

      modified on Monday, August 4, 2008 7:01 AM

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      Whats difficult? Show us your code and someone will point out your error.

      Bob Ashfield Consultants Ltd

      A 1 Reply Last reply
      0
      • A Ashfield

        Whats difficult? Show us your code and someone will point out your error.

        Bob Ashfield Consultants Ltd

        A Offline
        A Offline
        Anudeep Jaiswal
        wrote on last edited by
        #3

        suppose u have a table with employee details.. there is a column address. which consist city name too. now i want to search employee detail which live in city1 or city2 or city3 now here also a problem ' how many cities user want to search . this is not decide.. now sir , the ball is in your court... face the problem.. good luck...

        A G 2 Replies Last reply
        0
        • A Anudeep Jaiswal

          suppose u have a table with employee details.. there is a column address. which consist city name too. now i want to search employee detail which live in city1 or city2 or city3 now here also a problem ' how many cities user want to search . this is not decide.. now sir , the ball is in your court... face the problem.. good luck...

          A Offline
          A Offline
          Ashfield
          wrote on last edited by
          #4

          Firstly, you asked how to combine like and in - thats not what you are asking really. As I said, its easy enough. This is the sort of 'problem' faced daily, and there are several ways of doing it.

          Anudeep Jaiswal wrote:

          now sir , the ball is in your court... face the problem..

          No, the ball is in YOUR court. Post your attempt and I will point out your errors, but I will not write your code for you - its you being paid to do it, not me.

          Bob Ashfield Consultants Ltd

          1 Reply Last reply
          0
          • A Anudeep Jaiswal

            suppose u have a table with employee details.. there is a column address. which consist city name too. now i want to search employee detail which live in city1 or city2 or city3 now here also a problem ' how many cities user want to search . this is not decide.. now sir , the ball is in your court... face the problem.. good luck...

            G Offline
            G Offline
            GuyThiebaut
            wrote on last edited by
            #5

            Anudeep Jaiswal wrote:

            now sir , the ball is in your court... face the problem..

            A little courtesy might go a long way in getting answers to your questions on CP ;)

            Continuous effort - not strength or intelligence - is the key to unlocking our potential.(Winston Churchill)
            1 Reply Last reply
            0
            • A Anudeep Jaiswal

              i want to combine like and in operator in sql query... any one help me.................

              modified on Monday, August 4, 2008 7:01 AM

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #6

              Avoid IN; use JOIN.

              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