Is there an easy way to select a random 15,000 from a 100,000 records.
the only fields I want is last, first, email
SELECT FIRST, LAST, upper(EMAIL) FROM ACCOUNT
INNER JOIN MEMBERNAME ON ACCOUNT.ACCOUNTNUMBER = MEMBERNAME.ACCOUNTNUMBER
WHERE MEMBERNAME.TYPE=0
AND EMAIL IS NOT NULL
AND ACCOUNT.CLOSEDATE IS NULL
AND ACCOUNT.ACCOUNTNUMBER IN (SELECT ACCOUNTNUMBER FROM ACCOUNTWARNCODE
WHERE WARNCODE <> 98)
AND DBO.FNGETAGE(BIRTHDATE, GETDATE()) >=18
Thanks Peter