I have a list of file names in a table; I'm only trying to query the report name starting at the last forward(\) slash. So anything starting at the last slash will be the report name.
k:\documents\myfolder1\reports\analysis\march\04\ordersReports.xls
It should look like this. Any example sql to parse this and/or use a substring to show what's left after that last slash.
ordersReports.xls
SELECT filename, RIGHT(reportname, len(reportname) -50)
FROM tblReportsProcess group by reportname
This worked partially but I discover not all the reports names ends with the same length.
k:\documents\myfolder1\reports\analysis\march\04\ordersReports.xls
It should look like this. Any example sql to parse this and/or use a substring to show what's left after that last slash.
ordersReports.xls
SELECT filename, RIGHT(reportname, len(reportname) -50)
FROM tblReportsProcess group by reportname
This worked partially but I discover not all the reports names ends with the same length.