In SQL Server, I have an employee table and I created a function that returns data from the table.
I want to bind a function with a table to prevent delete The table because the function depends on it
Here is the function :
Create Function [dbo].[EmployeeGender] (@Gender Nvarchar (10))
Returns Table
As
Return (Select ID,Name,Gender from Employee where Gender = @Gender )