Click here to Skip to main content
15,893,381 members

Comments by SruthiR (Top 28 by date)

SruthiR 24-Jun-13 6:34am View    
this checks only if the string is datestring. But i need to find the format YYYYMMDD.
SruthiR 14-May-13 1:49am View    
it did not work. But I used a right join then it worked.
DELETE ObjectsLog.*
FROM ObjectsLog
right join Objects on Objects.ObjectID = ObjectsLog.ObjectID
WHERE CreatedDate <= GETDATE() - 30
SruthiR 14-May-13 1:12am View    
CreatedDate is not a column in ObjectsLog table. It is a column in Objects table. Thats why i need another level.
SruthiR 14-May-13 1:04am View    
There is no error. But it deletes only the records with ObjectID 1. It has to delete records with ObjectID 2 also.
SruthiR 15-Mar-13 2:48am View    
Yes. There are indexes in both the tables. I think the third join is required for their logic which we are completely unaware of.. :( think its tough...