Function Question
Could someone offer a simple example of a function which takes an input parameter, such as a NAME and returns the appropriate ID for the value from a table:
ID NAME
1 Dave
2 Brian
3 Charles
But, where the NAME is not present, add it to the list and return the new ID
function "Dave" = 1
function "Brian" = 2
function "Robert" = 4 (and "Robert" added to the table)
__________________
Regards,
Sean
|