Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Sir/Ma'am
i have a table
date1
with coloumn and values as

id date1 date2
1 01-04-2013 03-04-2013
2 01-03-2013 <null>


sir i want to fetch the values which have no date2 .
i am using date part with my query but no row find
Posted
Comments
[no name] 2-Apr-13 0:00am    
So select the records where date2 is null... or if it is not null but empty then select the records where date2 is an empty string.
ankur789 2-Apr-13 0:02am    
i use it but find no row
ankur789 2-Apr-13 0:03am    
date1 and date2 is the datetime type field

1 solution

Use This
select * from Datetable where isnull(date2,'') =''
 
Share this answer
 
Comments
ankur789 2-Apr-13 0:52am    
thanx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900