sql work partially done