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
 Delete record from table which start with 0 and 1.

Author  Topic 

hspatil31
Posting Yak Master

182 Posts

Posted - 2011-08-17 : 01:53:08
Dear All,

In my table i having following data, I want to delete record from table which digit start with 0 and 1 from column2.
Can anybody please tell me query for this ?

Column1 Column2
1 007
2 078
3 105
4 199
5 201
6 205

Thanks and Regard's
Harish Patil

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2011-08-17 : 01:58:41
[code]
DELETE yourtable
WHERE LEFT(Column2, 1) in ('0', '1')
[/code]


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page

hspatil31
Posting Yak Master

182 Posts

Posted - 2011-08-17 : 03:36:33
Thnks, This one work for me.
Go to Top of Page
   

- Advertisement -