360degreehosting
IS-IT--Management
I need help with a select statement please that deals with combining some columns and a range
I have 2 tables that contain phone numbers:
Table1 has the following columns
AreaCode
Prefix
Suffix
Table2 has the following columns
AreaCode
Prefix
LowRangeSuffix
HighRangeSuffix
How do i write the select/join that will return all rows from Table1 that both the AreaCode and Prefix match, as well as the Suffix is between (and including) the LowRangeSuffix and HighRangeSuffix.
I do appologize I usually provide my effort up to the point i need help. But I don't even know where to start on this one.
Warmest Regards,
Steve
I have 2 tables that contain phone numbers:
Table1 has the following columns
AreaCode
Prefix
Suffix
Table2 has the following columns
AreaCode
Prefix
LowRangeSuffix
HighRangeSuffix
How do i write the select/join that will return all rows from Table1 that both the AreaCode and Prefix match, as well as the Suffix is between (and including) the LowRangeSuffix and HighRangeSuffix.
I do appologize I usually provide my effort up to the point i need help. But I don't even know where to start on this one.
Warmest Regards,
Steve