Viewing 15 posts - 1 through 15 (of 26 total)
Hi Thom,
I appreciate your response. I found that although the report when viewed within Microsoft Visual Studio shows an extra blank page at the end, when I exported that...
July 7, 2016 at 4:50 pm
Thank you for the answer. I'm sure this will apply to lots of similar issues.
May 26, 2016 at 2:35 pm
I will try changing the #Emps temp table into a @Emps variable table. I have been called to work on another project now, so it may be some time...
December 3, 2015 at 2:08 pm
Thank you both for your help. I found that inside the stored procedure was already code similar to that which you each proposed. When I entered the CREATE...
December 3, 2015 at 1:49 pm
The first INSERT succeeds because both "CTId = 1" is TRUE and "Goal IS NOT NULL" is TRUE.
The second INSERT fails because "CTId = 1" is not TRUE.
The third INSERT...
July 25, 2014 at 2:19 pm
I often need to do the same task as you, working with someone else's SQL statement, usually to create something similar. I like to copy the original SQL statement...
November 14, 2012 at 5:38 pm
I now have found out that the myCalendar table was set up worse than everyone thought. Columns 1 through 182 of the field named CalendarDays represent days January 1...
June 28, 2012 at 2:11 pm
Hi Jeff,
Thank you and everyone for your help. I started using the statements from your posting of 6/23/12 8:37PM and was able to get the data that I wanted....
June 28, 2012 at 1:43 pm
Correction:
--===== Create the test table
CREATE TABLE dbo.Employee
(
EmployeeID INT,
StartDate DATETIME,
CalendarID CHAR(4)
)
;
INSERT INTO dbo.Employee
(EmployeeID, StartDate, CalendarID)
SELECT 1, '20111215', 'A209' UNION ALL
SELECT 2, '20110113', 'L261' UNION ALL
SELECT 3, '20120113', 'S222' UNION ALL
SELECT 4,...
June 26, 2012 at 9:18 am
Hi Jeff,
Let's use this:
--===== Create the test table
CREATE TABLE dbo.Employee
(
EmployeeID ...
June 26, 2012 at 9:16 am
To Jeff Moden -
Thank you for your help. I have used you Tally Table method on several issues that I have had and it always works very well....
June 25, 2012 at 4:34 pm
drew.allen said
I don't think that your sample values are correct. June 22, 2012 is 102 days after Feb 3, 2012. If you only want to count paid days, are you...
June 22, 2012 at 4:36 pm
You can disregard my comment about the Julian date. I believe instead that we can find the Hire Date in the CalendarDays field after calculating the DateDiff in days...
June 22, 2012 at 3:32 pm
I think that part of the solution would involve converting the Hire Date into a Julian value. Is there any function in SSMS that will convert a date to...
June 22, 2012 at 3:12 pm
SJTerrill (1/23/2012)
I'm no finance guru, so could someone explain to me what real-world situations would require me to multiply/divide one currency value by another?
Al says to his friends Bill and...
January 23, 2012 at 11:42 am
Viewing 15 posts - 1 through 15 (of 26 total)