Quantcast
Channel: conditions in where clause
Browsing latest articles
Browse All 5 View Live

conditions in where clause

Simply this is enoughSelect * from @tempTable WHERE (Strtdate is not null and enddate is not null) or status <> 'CLRSM'Please Mark This As Answer if it helps to solve the issue Visakh...

View Article


conditions in where clause

Select * from @tempTable WHERE (status='CLSRM' AND strtdate IS NOT NULL AND enddate IS NOT NULL ) OR status='ELRN'Please use Mark as Answer; if my reply solved your problem. Use Vote As Helpful if a...

View Article


conditions in where clause

Are you looking for the below?Declare @tempTable table (id int, name varchar(50), status varchar(50), strtdate datetime, enddate datetime) insert into @tempTable values ( 1, 'A', 'CLSRM', '2-Feb-14',...

View Article

conditions in where clause

Try the Below Query if you want only the records that have start date and end date as null for status other than that of CLSRM and all the records with CLSRM excepth those with null start date and end...

View Article

conditions in where clause

HiDeclare@tempTabletable (id int,name varchar(50),statusvarchar(50),strtdatedatetime,enddatedatetime)insertinto@tempTable values (   1,    'A',  'CLSRM',     '2-Feb-14',         '5-Feb-14'...

View Article

Browsing latest articles
Browse All 5 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>