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

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 177
  • Last Modified:

Calculate the number of days in a date range in SQL 2005

How can I determine how many days are in @StartDate and @EndDate with  a SQL expression?
0
mattkovo
Asked:
mattkovo
1 Solution
 
Aneesh RetnakaranDatabase AdministratorCommented:
SELECT DATEDIFF(dd,@Start, @End )
0
 
Kevin CrossChief Technology OfficerCommented:
Aneesh's suggestion should work for you!
0
 
mattkovoAuthor Commented:
Thanks a bunch!
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now