I want to generate a random id that uses table first and last name and a random number at the end of the login. I am not able to figure out how to use RAND function to add single random number at the end of name. Please help me. It will be appreciated. Thanks
DECLARE CUSTOMER_ID_CURSOR CURSOR
STATIC
FOR
SELECT [first_name]+[last_name] as [ADMINISTRATOR ID] from administrators ;
OPEN CUSTOMER_ID_CURSOR;
FETCH NEXT FROM CUSTOMER_ID_CURSOR;
WHILE @@FETCH_STATUS=0
FETCH NEXT FROM CUSTOMER_ID_CURSOR;
CLOSE CUSTOMER_ID_CURSOR
DEALLOCATE CUSTOMER_ID_CURSOR