Question : Need to return  " "

if this
   SELECT AboutME FROM tbl_Profile
   WHERE  UserID = @sUserId
returns null then I would like to return " "
a space textbox.

ALTER PROCEDURE [dbo].[sprGetAboutMeName]
(
   @sUserId nvarchar(50)
   
)
AS
BEGIN

   -- Unique Columns to check whether already exists
   SELECT AboutME FROM tbl_Profile
   WHERE  UserID = @sUserId
RETURN
END

Answer : Need to return  " "

you will need these things:

SYSDATE returns the current date+time.

TRUNC(your_date, 'MM') to give you the date of the first day of the month

NEXT_DAY(some_date, 'SUNDAY')   to give you the next sunday as from that date

some_Date + 14  to add up 2 weeks (for the third)

this are all the "bricks" you need

Random Solutions  
 
programming4us programming4us