Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Is this query correct

Author  Topic 

ServerTeam
Yak Posting Veteran

83 Posts

Posted - 2008-09-04 : 12:46:14
DELETE from table1 Where Date =
(select max(Date) from table)


Please help me

Thanks,
ServerTeam

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-09-04 : 12:50:01
its correct. did you try running it?
Go to Top of Page

ServerTeam
Yak Posting Veteran

83 Posts

Posted - 2008-09-04 : 13:16:13
yes i tried this and i got expected output.

I am looking for better query
As i am not sure if this effects on any performance issue

Thanks,
ServerTeam
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-09-04 : 13:18:43
quote:
Originally posted by ServerTeam

yes i tried this and i got expected output.

I am looking for better query
As i am not sure if this effects on any performance issue

Thanks,
ServerTeam


how much time does it take?
Go to Top of Page
   

- Advertisement -