I didn't know what to put in the Title to be more precise but I will explain my question/problem.
I'm doing an API and writing a method that gets me all data inside a table.
Example:
Table1 = Department
ID_Department
Name_Department
Table 2 = Employees Id_Employee Name_Employee ID_Department ...
I'm trying to write a lambda expression that gets me all the data from employee through the Name_Department I'm passing in the program to the API. where ID_department in table 1 equals ID_Department in table 2 without knowing the ID_department itself.
To make it more understandable here is an example query (made from head since the attributes and tables are not these).
SELECT EMPLOYEE.ID_EMPLOYEE, EMPLOYEE.NAME_EMPLOYEE, (OTHER EMPLOYEE ATTRIBUTES), DEPARTMENT.NAME_DEPARTMENT
FROM EMPLOYEE INNER JOIN DEPARTMENT ON
EMPLOYEE.ID_DEPARTMENT = DEPARTMENT.ID_DEPARTMENT
WHERE DEPARTMENT.NAME_DEPARTMENT LIKE '%FINANCE%'
Thanks in advance