brad12345 Posted May 8, 2008 Share Posted May 8, 2008 I have a column of UmpireID from Umpire table and would like to randomly select a new umpire that isnt the @UmpireID the user puts in as return value anyone help my atempt below create function dbo.getSecondUmpire (@UmpireID) returns int as begin return (select rand(UmpireID) from Umpire having rand(UmpireID) != @UmpireID) end Link to comment https://forums.phpfreaks.com/topic/104770-udf-question-urgent/ Share on other sites More sharing options...
fenway Posted May 9, 2008 Share Posted May 9, 2008 Don't double-post! Link to comment https://forums.phpfreaks.com/topic/104770-udf-question-urgent/#findComment-536691 Share on other sites More sharing options...
Recommended Posts