Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Date formula for showing last 2 days

Posted on 2011-02-24
2
Medium Priority
?
383 Views
Last Modified: 2012-05-11
I would like to show in a query data for the previous 2 days when the report runs. Any ideas? New to SSRS usually use Crystal. Not to proficient in writing queries yet, more drag and drop.

Thanks
Date Query
0
Comment
Question by:srodgers45
2 Comments
 
LVL 16

Accepted Solution

by:
santoshmotwani earned 2000 total points
ID: 34975557
select * from dbo.completion_status
where

dbo.completion_status.tdate > = getdate () - 2
0
 

Author Closing Comment

by:srodgers45
ID: 34975596
Perfect, Thanks for the help and quick response
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Written by Valentino Vranken. A while ago I wrote an article called Chart Optimization Tips (http://www.experts-exchange.com/articles/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Chart-Optimization-Tips.html).  This article explained how …
Introduction Earlier I wrote an article about the new lookup functions (http://www.experts-exchange.com/A_3433.html) that ship with SQL Server 2008 R2.  In this article I’m going to show you another new feature of SSRS 2008 R2, this time in the vis…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

772 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