select substring_index("buongiorno.ciao",".",1)