Solved

Date sql question

Posted on 2013-12-05
1
181 Views
Last Modified: 2013-12-05
I am running a query for dates, but for those records in which the date is NULL the record will not be displayed.
How can I make it display when the record is null  ?

---
 Select * from table when
   ISNULL(D.PPIssuedate, '') BETWEEN '01/01/1900'   AND     '01/01/2070'

--

When PPIssuedate is not null the results come up, but if PPIssuedate is null nothing comes up. How can I make null PPIssuedates that are NULL be displayed
0
Comment
Question by:amucinobluedot
1 Comment
 
LVL 11

Accepted Solution

by:
John_Vidmar earned 500 total points
ID: 39698785
select	*
from	table
where	(	PPIssuedate IS NULL
	OR	PPIssuedate BETWEEN '01/01/1900' AND '01/01/2070'
	)

Open in new window

0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
the whoisactive update 12 46
Getting same value for every field in SQL 2 44
SQL Server 2012 rs - Field1 and Field2 add 1 to Total 4 17
sql server computed columns 11 29
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Composite queries are used to retrieve the results from joining multiple queries after applying any filters. UNION, INTERSECT, MINUS, and UNION ALL are some of the operators used to get certain desired results.​
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now