79738385

Date: 2025-08-18 07:36:30
Score: 1
Natty:
Report link
var sql = "Select * from table b left join Lkp_table2 a on a.col=b.col";

// Regex to find first table name starting with Lkp_
var match = sql.match(/(Lkp_[a-zA-Z0-9_]+)/i);

var lkp_table = "";
if (match != null && match.length > 1) {
    lkp_table = match[1];
}

// return the lookup table name
lkp_table;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: worldgreatestyoutuber FE