I have a table
ID(int auto) MemberCount(int ) Rate(decimal(8, 2))
1 0 150.00
2 21 175.00
3 31 200.00
4 41 225.00
I need a query where I will pass in @membercount and get back the closest matching row.
Say member count is actually 25 when this is passed to the query I want to get back the row with id = 2.
Thanks in advance
ID(int auto) MemberCount(int ) Rate(decimal(8, 2))
1 0 150.00
2 21 175.00
3 31 200.00
4 41 225.00
I need a query where I will pass in @membercount and get back the closest matching row.
Say member count is actually 25 when this is passed to the query I want to get back the row with id = 2.
Thanks in advance
Comment