Preparing a report on a SQL Server database

Tags:
SQL Server database
SQL Server Report Builder
SQL Server reporting
SQL Server Reports
I have a SQL Server database of customers that called our company, and now i want to prepare a report that indicates which ones are new to our database. How would I do this?
ASKED: March 3, 2009  7:52 PM
UPDATED: March 4, 2009  8:34 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

i think in your table lets call it CustomerCalls there is the below fields:
CustomerName
CustomerNumber
DateOfCall

and lets say new clients for your company are clients who started calling from Jan 2009
the query will be:

select * from CustomerCalls
where DateofCall>’01-01-2009 00:00:00.000′
and CustomerNumber not in
(select CustomerNumber from CustomerCalls where DateofCall<’01-01-2009 00:00:00.000′)

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following