How can I replicate the function of VLOOKUP in sql? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I replicate the function of VLOOKUP in sql?

I habe a table where i am using vlookup in excel but if i want to do it in sql how can i do it? For example { In Collum 1 i have the data "a", "c", "e", "g", "i", "k", "m", "o", "q" & in Collum 2 I have "b", "d", "f", "h", "j", "l", "n", "p", "r". In another cell with vlookup when I type "a" On this row it's shows a b c d e f g h i j k l m n o p q r the whole link.

7th May 2020, 7:01 PM
Purushottam Dey
Purushottam Dey - avatar
1 Answer
+ 1
The vlookup function on Excel equals executing a join in SQL , but if you want row by row and data by data to compare the only thing you should do is an inner join . try reviewing documentation about joins between tables
16th May 2020, 7:05 AM
Pablo Quintana
Pablo Quintana - avatar