Try this:
You give it a year and a month and it tells you the number of days. The concept is add 1 month to the first day of the month then subtract a day. You then have the last day of the given month, just take the day field out of that day...
DECLARE @Y varchar(4)
DECLARE @M varchar(2)
SET...
Please Copy/Paste this question into NOTEPAD or a word processor with fixed-width fonts if you have problems seeing the table lines, etc.
table 'service':
+----------------+-------------+--------+
| effdate | status | units |
+----------------+-------------+--------+
| 2002-11-28...
I've created some decently complex SQL in another application (MS Query Analyzer) and I'd like to use it as a base for my Crystal Report. The only catch is, I can't use a .qry file created with Seagate SQL Designer because the report won't be able to find the external file when imported into an...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.