79586997

Date: 2025-04-22 16:18:02
Score: 0.5
Natty:
Report link

If you're only expecting a single record back, can use an approach like the following. Will get you the available rate that equals the desired rate or the next highest.

SELECT TOP(1) *
FROM AvailableRatesTable
WHERE 1=1
    AND State = @State
    AND Rate >= [Desired Rate]

ORDER BY
    Rate
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: cod3-jr