Check and map IP address to subnet lookup table with SQL
问题 I have a table that shows IP addresses assigned to equipment belonging to a customer. This table is used to measure user's activity and performance and generated on a regular basis. I would like to map the IP addresses of these customers to customer ID or name. Due to size and multiple IP addresses that can be assigned to the same customer we have to use subnet instead of individual IP addresses. The report table contains an IPaddress field and the subnet mapping table is something like below