SELECT Left([fio],InStr(1,[fio]," ")-1) AS LastName, Mid([fio],InStr(1,[fio]," ")+1,InStr(InStr(1,[fio]," ")+1,[fio]," ")-InStr(1,[fio]," ")-1) AS FirstName, Mid([fio],InStr(InStr(1,[fio]," ")+1,[fio]," ")+1,Right([fio],Len([fio])-InStrRev([fio]," ") AS MiddleName FROM tblFIO;
|