Viewing 15 posts - 3,991 through 4,005 (of 15,381 total)
Ed Wagner (8/20/2014)
Sean Lange (8/20/2014)
August 20, 2014 at 10:33 am
cajun_sql (8/20/2014)
Sean Lange (8/20/2014)
cajun_sql (8/20/2014)
Sean Lange (8/20/2014)
Why not just change your hidden field to be strSP_VersionYear="2014-01-01"? That should work for you.
Thanks.
Why does the SQL INSERT statement succeed where the Recordset...
August 20, 2014 at 10:02 am
Are others having problems with SSC today? It seems that almost every topic has some bizarre html comment added to the title. The forums list stops part way through. The...
August 20, 2014 at 9:53 am
cajun_sql (8/20/2014)
Sean Lange (8/20/2014)
Why not just change your hidden field to be strSP_VersionYear="2014-01-01"? That should work for you.Thanks.
Why does the SQL INSERT statement succeed where the Recordset AddNew fails?
It is...
August 20, 2014 at 9:49 am
Why not just change your hidden field to be strSP_VersionYear="2014-01-01"? That should work for you.
August 20, 2014 at 9:32 am
dirk.dromgoole (8/20/2014)
I agree, thank you very much for your time on this matter. I am going to revise the query instead.
Let me know if you run into any issues...
August 20, 2014 at 8:58 am
dirk.dromgoole (8/20/2014)
August 20, 2014 at 8:24 am
dirk.dromgoole (8/20/2014)
WHERE (GETDATE() - 1 <= EndDate)
If EndDate has a time...
August 20, 2014 at 8:22 am
dirk.dromgoole (8/20/2014)
August 20, 2014 at 7:57 am
Let's start by formatting this sql so we can read it.
SELECT COALESCE(sum(A.AmountGiven), 0) AS AmountGiven
,A.YearToDate
,A.EndDate
FROM (
SELECT (
SELECT SUM(AmountGiven)
FROM [Production].[dbo].[DB1]
WHERE Year(DATE) = Year(Startdate)
AND EmployeeID = rf.EmployeeID
) AS 'AmountGiven'
,(
SELECT MAX(DATE)
FROM [Production].[dbo].[DB1]
) AS...
August 20, 2014 at 7:55 am
JKSQL (8/20/2014)
That is kind of what I thought. I appreciate the help
You're welcome. Hope it makes sense. 🙂
August 20, 2014 at 7:47 am
JKSQL (8/19/2014)
August 20, 2014 at 6:58 am
JKSQL (8/19/2014)
BEGIN
;with tree(Id) as
(
...
August 19, 2014 at 2:28 pm
Here is yet another way. I have a view in my system called cteTally. It is nothing but a view that has the numbers 1 - 10,000. Makes this kind...
August 19, 2014 at 2:07 pm
djj (8/19/2014)
WITH cte AS (SELECT DogBreed, COUNT(*) as HowMany FROM myTable)
SELECT a.DogBreed, b.HowMany, ROW_NUMBER() (PARTITION BY a.DogBreed ORDER BY a.DogBreed) AS cnt
FROM myTable a
INNER JOIN cte b ON...
August 19, 2014 at 1:53 pm
Viewing 15 posts - 3,991 through 4,005 (of 15,381 total)