धन्यवाद @twoleggedhorse।
यहाँ समाधान है।
-
पहले हमने एक फंक्शन बनाया
CREATE FUNCTION GetAIntFromStoredProc(@parm Nvarchar(50)) RETURNS INTEGER AS BEGIN DECLARE @id INTEGER set @id= (select TOP(1) id From tbl where example@sqldat.com) RETURN @id END -
फिर हम चुनिंदा क्वेरी करते हैं
Select col1, col2, col3, GetAIntFromStoredProc(T.col1) As col4 From Tbl as T Where example@sqldat.com