SELECT uid, fname FROM login WHERE uid NOT IN (SELECT fid FROM friend WHERE uid = @uid) AND uid <> @uid '@uid = value stored in Session["uid"]
select lg.uid, lg.fname, fr.fid from [login] lg join [friend] fr on fr.uid<>lg.uid where lg.uid = @uid
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)