The FILE_BASENAME function returns the basename of a file path. A file path is a string containing one or more segments consisting of names separated by directory delimiter characters (slash (/) under UNIX, or backslash () under Microsoft Windows). The basename is the final rightmost segment of the file path; it is usually a file, but can also be a directory name. See Rules used by FILE_BASENAME for additional information.