Thanks for the response. Here's the problem....the Oildatasetstatusid's (5-11) are mapped to labid=4. Labid=4 has input data for multiple customers, so the update cannot be performed based on oildatasetstatusid. The updates have to be based on samplepointid. That's why 3 tables are being used.
I am among the SQL ignorant and have been asked to perform a task that is way out of my realm of understanding. Our customer wants to change their existing severity levels, e.g. change from Low Warning (severityid=7) to Low (severityid=18). The severity information is entered in the database by a 3rd party oil lab. I want to generate one list using information from three different tables, then change the severity mapping on that list. Have I provided enough information below? Can someone please help????
table: samplepoint
- samplepointid
table: oildataset
- oildatasetid
- oillabid (4=R&G)
- samplepointid
table: Oildatasetstatus
- Oildatasetid
- Oildatasetstatusid (5,6,7,8,9,10,11) needs to be changed to (16,17,18,19,20)
- 5=16
- 6=17
- 7,8,9=18
- 10=19
- 11=20