thejeraldo
Well-known member
hey guys is there any way on how to know which column a result from an SQL Like statement belongs to. say for example my SQL is:
SELECT lastname,firstname from EMPLOYEES where lastname LIKE 'Ro%' or firstname LIKE 'Ro%'
then if the results are: Rooney, Ronaldo, Roberto
from a table that looks like this
lastname | firstname
--------------------
Rooney | Wayne
Ronaldo | Cristiano
Carlos | Roberto
i wanna my program to know that the results
Ronaldo & Rooney is from the column from my dataset Lastname
Roberto is from the column from my dataset Firstname.
thanks guys!
SELECT lastname,firstname from EMPLOYEES where lastname LIKE 'Ro%' or firstname LIKE 'Ro%'
then if the results are: Rooney, Ronaldo, Roberto
from a table that looks like this
lastname | firstname
--------------------
Rooney | Wayne
Ronaldo | Cristiano
Carlos | Roberto
i wanna my program to know that the results
Ronaldo & Rooney is from the column from my dataset Lastname
Roberto is from the column from my dataset Firstname.
thanks guys!