(This is related to my Are the relationships between my tables *totally* wrong? thread in the Tables forum if anyone wants more background - sorry I can't post links until I hit 10 posts and don't want to spam just to get to that point).
Relevent to the problem below is the attached ERD, which is of part of the small database I'm designing at the moment, and I'm mostly there with the tables/relationships. However, it needs one big bit of functionality that I can't figure out how to do. I'm assuming it's done via a query, but please put me right if not.
I've signed up on Lynda.com, and I'm working my way through DB-related tutorials in an attempt to not need to ask such questions, but I'm now thinking I can't do what I need to and I'm panicking a bit. I'm not sure CASE will do it.
Small background: This database is for an educational establishment and is tracking software requests for each location (room) as well as the state of the software ready for deployment.
The fields I think are pertinent to the problem:
I need to be able to MATCH the following:
If SWVersion's are = then 'no change'
If the SWVersions are <> then 'update required'
If there is no previous version for the year (no record) then 'new to location'
So in the 2016 entry it will be 'update required'. From which a location list with associated sw can be pulled and filtered by the work that's needed (i,e update or new).
Is this possible? It has to be or they'll be using spreadsheets again this year.
Sorry it's so long, I wanted it to be clear what I was trying to do. Please be miracle workers
Relevent to the problem below is the attached ERD, which is of part of the small database I'm designing at the moment, and I'm mostly there with the tables/relationships. However, it needs one big bit of functionality that I can't figure out how to do. I'm assuming it's done via a query, but please put me right if not.
I've signed up on Lynda.com, and I'm working my way through DB-related tutorials in an attempt to not need to ask such questions, but I'm now thinking I can't do what I need to and I'm panicking a bit. I'm not sure CASE will do it.
Small background: This database is for an educational establishment and is tracking software requests for each location (room) as well as the state of the software ready for deployment.
The fields I think are pertinent to the problem:
- SWTitle.Developer (Microsoft, Microsoft)
- SWTitle.Title (Word, Word)
- SWVersion.Version (2013, 2016)
- SWVersion.Platform (Windows, Windows)
- Installs.FIDLocation (Building1Room1, Building1Room1)
- Installs.InstallationYear (2015, 2016)
- Location (parent table Building)
- Installs
- SWVersion (parent table SWTitle)
I need to be able to MATCH the following:
- SWTitle.Developer
- SWTitle.Title
- SWVersion.Platform
- Installs.FIDLocation
- Installs.InstallationYear
- SWVersion.Version
If SWVersion's are = then 'no change'
If the SWVersions are <> then 'update required'
If there is no previous version for the year (no record) then 'new to location'
So in the 2016 entry it will be 'update required'. From which a location list with associated sw can be pulled and filtered by the work that's needed (i,e update or new).
Is this possible? It has to be or they'll be using spreadsheets again this year.
Sorry it's so long, I wanted it to be clear what I was trying to do. Please be miracle workers