I have a set of aggregate records for which I need to join with another table that has columns with & without null values and pull a record with highest priority when there is a multiple match. Table 2 Columns can have null values.
Table 1
col1 col2 col3 col4
Table 2
col1 col2 col3 col4 col5 col6 col7 priority