select emp_id,employee_name from employee_master where emp_id >= 100 and emp_id <= 200;
Select emp_id,employee_name from employee_master where designation = 'Software Engg' OR designation = 'B.A.' OR designation = 'Programmer';
Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '10,20' to data type int.
If Object_Id('Table_Name','U') Is Not Null Print 'Table Exists'; Else Print 'Table does not Exists';
Select [Text] as Sql_Statement,Status as [Running_Info] From sys.dm_exec_requests Cross Apply sys.dm_exec_sql_text(sql_handle)
declare @Url as nvarchar(1000) = 'http://www.dotnetfunda.com/interviews/postexamquestion.aspx?'; select substring(replace(@Url,'http://www.',''),0,charindex('/',replace(@Url,'http://www.',''))) as [Website Only]