i have the database as below
Name id Col1
Row1 1 0
Row2 2 1
Row3 3 1
if i submit query...result should be as below
Name id Col1
Row1 1 1
Row2 2 0
Row3 3 1
next
Name id Col1
Row1 1 1
Row2 2 1
Row3 3 0
like so on... finally
Name id Col1
Row1 1 0
Row2 2 1
Row3 3 1
i tired CASE statement in mysql...but not worked