Howdy Folks ,
Its been a good 5 years since I've had to do any real SQL work and just wondering if I coudl get a little helping hand from the kindly folks of HEXUS
I'm trying to put some data together from very quick inventories of a (large) number of laptops.
I already have a table with some base details in it , which isn't too tricky
eg.
Laptop Serial ( primary key)
OS
Location
this has been build up from flat files.
I have a second flat file which holds Laptop Serial + a list of applications installed on that laptop - not a comprehensive list , but picked form those that would have been installed as options from our build process.
file structure is something like
serial,application,version application , version etc. etc.
trying to work out the best way to hold that application data givne that the range of applications is subject to change.
eventually I want to be able to pull reports of total number of a given version of an application deployed.
I had the idea of using something like a bit map to assign a value to each application version , then assign the sum of that line to the laptop ( if that make sence ) but I think its over complicated.
Would it be sensible to try and dynamically create colums in an application table based on those files and have 1 colum per applicaition / version with a TRUE/FALSE type data bit ?
or should I just have a table with Laptop Serial / Application and drop each one in at a line item and let the sorting be done with a few queries ?
any suggestions would be welcome ( btw i'll be using SQl20008 if it helps )