@lindsey.homenick
To separate a range of years in Oracle, you can use the SUBSTR function along with the INSTR function to extract the specific year or range of years from a given string. Here is an example of how you can separate a range of years from a string in Oracle:
1 2 3 4 5 6 7 |
SELECT SUBSTR(year_range, INSTR(year_range, '-') + 1, LENGTH(year_range) - INSTR(year_range, '-')) AS start_year, SUBSTR(year_range, 1, INSTR(year_range, '-') - 1) AS end_year FROM your_table_name WHERE condition; |
In the above query:
By running the above query, Oracle will separate the range of years into individual start and end years, which can then be used for further analysis or formatting.