Hi All,
I have a table Employee
______________________
|EmpId | name | Desig |
|---------|---------|---------|
| | | |
--------------------------------
Then OnsiteEmp
______________________
|EmpId| LocationId|Details|
|--------|----------------|---------|
| | | |
|--------|---------------|----------|
Then Location
______________________
|LocationId| LocationName|Details|
|-------------- |--------------------|---------|
| | | |
|---------------|--------------------|---------|
i need Out put like only the employee who are all working in Offshore(india),
i was try like this but it will give dublicate recoud
SELECT a.EmpId,a.EmpName FROM dbo.Employee AS a
JOIN dbo.OnsiteEmp AS b ON a.EmpId != b.OnSiteEmpId
JOIN dbo.LocationTable AS c ON c.LocationId!=b.LocationId.
please help me to get correct record