SQL Expression

Hi All

I am Building a report in Report Builder i am using a table that displays all Outstanding Orders based on a column in the table called Due Date. there is also a column for the value of that order.

What i would like to be able to do is to display Total values for Late Orders and all Forward Orders.

So i would like the report to show all orders prior to CURRENT DATE and then another seperate query to show all forward orders from CURRENT DATE

can anybody help i am very new to Report Builder And SQL In general
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You need to do this in your query.
It is best to have a begin and end date to control the output from the sql server to the report.
pepps11976Author Commented:
can you give me some help in acheiving it in the query?
Here is a sample of how to use a start and end date in a stored procedure. You can use it as a query also. You will have to change it of course it fit your needs.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.