6
Answers

SQL Query to get multiple records

Rakesh reddy

Rakesh reddy

6y
583
1
Declare @rightId int = 1405; 

SELECT RouteID, @rightId FROM Route
WHERE RouteURI IN
(
'/api/ledger/payment/paymentInfo'
)

for above query i will get one record in result.
 
But my requirement is if i have @rightId = '1405,23.999' 
then i want the three records in result with the above query. 
How to implement query for that ? 
Answers (6)