Ramon Quintana

Ramon Quintana

  • NA
  • 404
  • 65.3k

want to do Excel "=VLOOKUP(B3;$E$3:$G$11;3;1)" but in SQL

Apr 30 2019 10:01 AM
Hi, i need to do what =VLOOKUP(B3;$E$3:$G$11;3;1) in Excel do, i mean i need to return a value depending from another.
 
For ejample:
 
 
Algorithm:
 
if "AD" = 09 and it's between "AG-AH" range then "AI = AF and AA and Z"
 
some code en sql server to o this??
 
Thank for your help u guys. 
 

Answers (3)