complete sql