dayankoven
Programmer
Hi there fellow experts,
I have two table which look like:-
TABLE A
FST_NAME LAST_NAME
ALBERT PETE
ADRIAN JAKE
MARCUS KING
TABLE B
LAST_NAME ROW_ID
ALBERT 1
ALBERT 2
MARCUS 3
What i need to do is to search in TABLE A for FST_NAME and find a corresponding match in TABLE B under column LAST_NAME. The problem, is that TABLE B might contain duplicate entries for LAST_NAME. Therefore, i only need to select the first record ie in this case would be (ALBERT with ROW_ID = 1). I need to return both LAST_NAME and ROW_ID. Does anyone know how i could achieve the above. Thanks in advance.
I have two table which look like:-
TABLE A
FST_NAME LAST_NAME
ALBERT PETE
ADRIAN JAKE
MARCUS KING
TABLE B
LAST_NAME ROW_ID
ALBERT 1
ALBERT 2
MARCUS 3
What i need to do is to search in TABLE A for FST_NAME and find a corresponding match in TABLE B under column LAST_NAME. The problem, is that TABLE B might contain duplicate entries for LAST_NAME. Therefore, i only need to select the first record ie in this case would be (ALBERT with ROW_ID = 1). I need to return both LAST_NAME and ROW_ID. Does anyone know how i could achieve the above. Thanks in advance.