So basically this would be the psuedo code, but I don't know how to do this in SQL, please help.So basically this would be the psuedo code, but
So basically this would be the psuedo code, but I don't know how to do this in SQL, please help.So basically this would be the psuedo code, but