first version sql