sql in edit