gunslingor
Registered User.
- Local time
- Today, 10:42
- Joined
- Jan 13, 2009
- Messages
- 50
Problem:
I have one table with 10,000 records. The table lists a hostname (i.e. computer name) and all the associated "windows services" running on that machine along with fields related to description of service and setting of service. So the relevant fields in the table looks like this:
HOSTNAME SERVICE NAME UNOFFICIAL DESCRP OFFICIAL DESCRIP
host1 service1 memo memo
host1 service100 memo memo
host1 service56 memo memo
host2 service56 memo memo
host2 service93 memo memo
host2 service10 memo memo
host3 service1 memo memo
host3 service245 memo memo
host3 service382 memo memo
The "official description" has been inputed into the DB automatically. At this point, I need to enter my "unofficial descriptions". I have created a query that tells me I have about 400 unique "service names" which require the unique "unofficial descriptions". The problem is that I need to apply these "unofficial descriptions" to all occurances of that service name. I cannot seem to do this in a quiery, probably because the "DISTINCT" keyword only pulls distinct records and leaves duplicates behind. I need DISTINCT to pull the distinct records, then when I enter the "unofficial description" it needs to enter this at each place the service is listed. Any suggestions?
I have one table with 10,000 records. The table lists a hostname (i.e. computer name) and all the associated "windows services" running on that machine along with fields related to description of service and setting of service. So the relevant fields in the table looks like this:
HOSTNAME SERVICE NAME UNOFFICIAL DESCRP OFFICIAL DESCRIP
host1 service1 memo memo
host1 service100 memo memo
host1 service56 memo memo
host2 service56 memo memo
host2 service93 memo memo
host2 service10 memo memo
host3 service1 memo memo
host3 service245 memo memo
host3 service382 memo memo
The "official description" has been inputed into the DB automatically. At this point, I need to enter my "unofficial descriptions". I have created a query that tells me I have about 400 unique "service names" which require the unique "unofficial descriptions". The problem is that I need to apply these "unofficial descriptions" to all occurances of that service name. I cannot seem to do this in a quiery, probably because the "DISTINCT" keyword only pulls distinct records and leaves duplicates behind. I need DISTINCT to pull the distinct records, then when I enter the "unofficial description" it needs to enter this at each place the service is listed. Any suggestions?