Viewing 5 posts - 1 through 5 (of 5 total)
try this:
begin tran
Update Parent
Set ParentMaxDate = ISNull((Select Max(ChildDate) from Child where Child.FKParentID = Parent.ParentID),Null),
ParentMinDate = ISNULL((Select Min(ChildDate) from Child where Child.FKParentID = Parent.ParentID),NULL)
October 16, 2003 at 10:58 am
At my previous job, among many other things, I was responsible for creating reports. I learned early on that what people asked for wasn't really what they wanted. ...
August 11, 2003 at 7:11 am
Thanks for the additional information. Posting your sql statement was helpful.
Best regards,
Doug
June 27, 2003 at 7:23 am
Sorry to resurrect this topic however I’d like to ask a follow-up question. I need to copy a database to another database on the same server (MSSQL 7) also;...
June 26, 2003 at 9:07 am
That did it, thank you so much!
Doug
quote:
I think instead of doing a max() function in your "not exists" function you need to...
April 24, 2003 at 1:40 pm
Viewing 5 posts - 1 through 5 (of 5 total)