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. Other Discussions
  3. The Weird and The Wonderful
  4. High end SQL

High end SQL

Scheduled Pinned Locked Moved The Weird and The Wonderful
database
3 Posts 3 Posters 1 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.
  • B Offline
    B Offline
    Bernard Laplace
    wrote on last edited by
    #1

    Found in a stored procedure... Declare @IsClosed bit SET @IsClosed = (SELECT ISNULL(Closed,0) FROM TimeRegHeader WHERE TSID = @TSID) If @IsClosed Is Null BEGIN Select 0 END else BEGIN Select @IsClosed END

    _ N 2 Replies Last reply
    0
    • B Bernard Laplace

      Found in a stored procedure... Declare @IsClosed bit SET @IsClosed = (SELECT ISNULL(Closed,0) FROM TimeRegHeader WHERE TSID = @TSID) If @IsClosed Is Null BEGIN Select 0 END else BEGIN Select @IsClosed END

      _ Offline
      _ Offline
      _Damian S_
      wrote on last edited by
      #2

      Well, you really have to be sure about these things!! :rolleyes:

      Knowledge is knowing that the tomato is a fruit. Wisdom is not putting it in fruit salad!! Booger Mobile - Camp Quality esCarpade 2010

      1 Reply Last reply
      0
      • B Bernard Laplace

        Found in a stored procedure... Declare @IsClosed bit SET @IsClosed = (SELECT ISNULL(Closed,0) FROM TimeRegHeader WHERE TSID = @TSID) If @IsClosed Is Null BEGIN Select 0 END else BEGIN Select @IsClosed END

        N Offline
        N Offline
        Nagy Vilmos
        wrote on last edited by
        #3

        Arnaud Lhopiteau wrote:

        ISNULL(Closed,0)

        belts...

        Arnaud Lhopiteau wrote:

        If @IsClosed Is Null

        and braces. What more do you want?


        Panic, Chaos, Destruction. My work here is done.

        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