I have sql script as
select E.EmployeeId, E.Name, A.FromDate, A.SPDays from
EEmployee E
cross join [dbo].[GetAppointmentDateAndServicePeriodDays](E.EmployeeId) A
where [dbo].[GetAppointmentDateAndServicePeriodDays] is a table valued function which
returns FromDate, SPDays. But I am getting error
The multi-part identifier "E.EmployeeId" could not be bound.
Can someone help me to correct this script? I would be grateful for any proper solution. Thank you.