Added sql function EXTRACT.