DECLARE @EMP_ID BIGINT=NULL
IF(@EMP_ID = NULL)
BEGIN
PRINT 'PLEASE ENTER VALID EMPLOYEE ID'
END
ELSE
BEGIN
PRINT 'VALID EMPLOYEE ID'
END
Practical tips, tutorials & insights from the .NET Ecosystem 🚀 { C# • ASP.NET Core • Azure • Angular • AI-Assisted Dev } Building smarter with Cursor AI & GitHub Copilot ⚡
DECLARE @EMP_ID BIGINT=NULL
IF(@EMP_ID = NULL)
BEGIN
PRINT 'PLEASE ENTER VALID EMPLOYEE ID'
END
ELSE
BEGIN
PRINT 'VALID EMPLOYEE ID'
END
- COUNT always returns an int data type value.
- COUNT(*) returns the number of items in a group. This includes NULL values and duplicates.
If you want to edit only SQL Queries. Then you can use in-built editor like "Notepad". There is no specific SQL Query editor pre installed in window OS.
There is many SQL Editor's are available now days. But I prefer to use "SQL Server Management Studio (SSMS) Query Editor" to edit quires.