General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Network:
Windows 2003 Server
I cannot get it into one sql statement but here is a foxpro solution for the Date1 case:
set enginebehavior 70
select pk, max(Date1) from mytable where Flag=1 group by fk into cursor ctemp
update mytable set Flag=0 where NOT pk in (select pk from ctemp)
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only