Viewing 10 posts - 1 through 10 (of 10 total)
I got the solution. Hope it helps someone else.
select
CollectionUrl
, MAX(LastAccessedDate)
from dbo.tracking
group by CollectionUrl
having DateDiff(dd, MAX(LastAccessedDate), GETDATE()) > 60
May 11, 2010 at 2:07 pm
Thanks. Somehow I missed thinking from that angle. The following query worked fine for me.
Insert Into courseProgress (userId, classId, classParamId, status)
select empTraining.userId, empTraining.classId, classParamDetails.classParamId, (CASE WHEN appCategory = 'Eq....
April 14, 2009 at 7:45 am
Thanks, Maxim. It worked. I wrote sql joins before and I never encountered this issue with condition in where clause. As far as I remember, Left Join and Right Join...
March 24, 2009 at 1:34 pm
My mistake. The column title is from the query, itemId (not categoryId).
March 24, 2009 at 1:15 pm
I gave more thought on this and came up with some ideas.
The material expression would be evaluated as follows [where op is AND/OR].
((((m1 op1 m2) op2 m3) op3 m4) op4...
March 22, 2008 at 8:31 am
I am not using any Stored Procedures.
Its because of the SQL Server behavior. If you try to put '' into a column of int datatype, SQL Server puts a default...
April 19, 2007 at 11:11 am
Here is the whole Insert statement
Insert Into catalogItems (categoryId, itemPrice, supplierCompanyId, itemDeliveryDays, itemLimit) Values ('${param.category}', NULLIF('${param.itemPrice}',''), '${param.splrCompany}', '${param.delDays}', NULLIF('${param.itemLimit}',''))
itemPrice is of float datatype and itemLimit is of int datatype. If user did not...
April 19, 2007 at 6:41 am
Used NULLIF(column-name, '') and that helped in converting '' to NULL.
April 18, 2007 at 11:38 am
I was able to resolve my problem using NULLIF. Thanks.
April 18, 2007 at 9:35 am
The Column allows NULLs and there is a default value of (null) for the column. There are no triggers. Also, There is no default value in the insert statement. I...
April 18, 2007 at 8:45 am
Viewing 10 posts - 1 through 10 (of 10 total)