I am looking to grab some totals from an Oracle SQL database but my problem is that the Server name is listed in the database under both its name and its dns name. I want to total the GB Backed up whether it was recorded under its simple name or DNS name.
Simplified sample of the server table:
server Backed Up
server01.myplace.com 20
server01 14
server32 12
server32 10
server99 30
server231 30
server231.yourplace.com 20
If I want to query this server table and treat the server01 and server01.myplace.com as the same servers(they are) and the server231 and server231.yourplace.com as the same servers(they are) so that the totaled results would result in the list below, how would I ? I hope I can but lack the knowledge of how to do so. Thanks for any direction or help.
Note...I want to lose the DNS server name in the query results and total all the Backed up numbers.
Query result:
server Total Backed Up
server01 34
server32 22
server99 30
server231 50
Simplified sample of the server table:
server Backed Up
server01.myplace.com 20
server01 14
server32 12
server32 10
server99 30
server231 30
server231.yourplace.com 20
If I want to query this server table and treat the server01 and server01.myplace.com as the same servers(they are) and the server231 and server231.yourplace.com as the same servers(they are) so that the totaled results would result in the list below, how would I ? I hope I can but lack the knowledge of how to do so. Thanks for any direction or help.
Note...I want to lose the DNS server name in the query results and total all the Backed up numbers.
Query result:
server Total Backed Up
server01 34
server32 22
server99 30
server231 50