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. how to check " is not null condition" in a field of single select query

how to check " is not null condition" in a field of single select query

Scheduled Pinned Locked Moved Database
databasetutorial
5 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.
  • A Offline
    A Offline
    anushh
    wrote on last edited by
    #1

    how to check "is not null condition" in a field of single select query

    W 1 Reply Last reply
    0
    • A anushh

      how to check "is not null condition" in a field of single select query

      W Offline
      W Offline
      WoutL
      wrote on last edited by
      #2

      select *
      from table
      where column is not null

      Wout Louwers

      A 1 Reply Last reply
      0
      • W WoutL

        select *
        from table
        where column is not null

        Wout Louwers

        A Offline
        A Offline
        anushh
        wrote on last edited by
        #3

        Thanks for your reply. but i didn't mention like this. There is any possibilities to check the field as not null that which is to be selected using select query (not in where condition)

        W B 2 Replies Last reply
        0
        • A anushh

          Thanks for your reply. but i didn't mention like this. There is any possibilities to check the field as not null that which is to be selected using select query (not in where condition)

          W Offline
          W Offline
          WoutL
          wrote on last edited by
          #4

          You can use select IsNull(Column, 'Value') from table. But I am not sure if this is what you mean.

          Wout Louwers

          1 Reply Last reply
          0
          • A anushh

            Thanks for your reply. but i didn't mention like this. There is any possibilities to check the field as not null that which is to be selected using select query (not in where condition)

            B Offline
            B Offline
            Blue_Boy
            wrote on last edited by
            #5

            select isnull(column,'N/A') from tablename where column='condition' Hope this will help you.


            I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com

            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