我有值的数据库样品如何从两个月的日期找到剩余日期?
Leave FromDate ToDate EmpCode
6 2015-01-28 2015-02-02 ABC
我想= 4休假数在2015年1月,离开数= 2在2015年2月 有人帮我...
eg: You applied 4 days leave 2015-01-30 to 2015-02-02. And the end of the
month your company decide to check your January month leave. They just
entered month=1 and year=2015. Then how to get count of January month leaves from these data???
或
If have a date "2015-01-25", then how can I display the remains dates ie,
2015-01-26,2015-01-27,2015-01-28, 2015-01-29,2015-01-30,2015-01-31 etc.
哪个数据库? – 2015-02-07 06:40:38
你应该尝试一下你的逻辑。然后你可以发布你的代码,这会给你任何问题。另外,你的问题是一种悖论,因为你没有提到如何决定哪一个月有多少叶? – 2015-02-07 06:42:20
@MohanLal哪个数据库? 'sqlserver'或'mysql'在后台 – 2015-02-07 06:43:50