How many times will the following T-SQL query print the text: hi ?

How many times will the following T-SQL query print the text: hi ?

 SET ANSI_NULLS ON;
  DECLARE
      @x INT,
      @y INT = NULL;
  IF @x = @y
      PRINT 'hi';
  IF @x = NULL
     OR @y = NULL
      PRINT 'hi';
  IF NULL = NULL
     OR NOT NULL = NULL
      PRINT 'hi';
  IF NOT (NULL IS NOT NULL)
      PRINT 'hi';
Asked on September 12, 2017 in PostgreSQL.
Add Comment