bottasergio
Valued Member
Points: 50
More actions
January 4, 2019 at 5:34 am
#373454
I have a field named "numbers" with values like(1) 1,6,9,10,200(2) 5,9,20(3) 6,10,20(4) 1,3,6
I need to find all record that match number 6.. for example records (1), (3) and (4)Thanks!
Jonathan AC Roberts
SSCoach
Points: 18407
January 4, 2019 at 6:30 am
#2017964
bottasergio - Friday, January 4, 2019 5:34 AMI have a field named "numbers" with values like(1) 1,6,9,10,200(2) 5,9,20(3) 6,10,20(4) 1,3,6I need to find all record that match number 6.. for example records (1), (3) and (4)Thanks!
SELECT * FROM myTable x WHERE ',' + x.numbers + ',' LIKE '%,6,%'
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply