I am working on a database designed by someone who was put on my planet to make everyones life more difficult (or maybe he/she wanted to remain employed for life!).
The database is a hash of complex coding to get around poor database design with regards to tables simple rules of normalisation!
The tool analyses files comparing and doing a number of auditing functions. What I am struggling to do is write some sql to see if a file in question has been selected for analysis. The only issue is that rather than have these files as separate records in a table, they are of course all in one record with another file representing which files are selected by the file number and then a ";", i.e. 1;2;4
Can anyone suggest how this can be extracted using a union query in combination with some clever coding?
I know the simple answer is to redesign it but it is too late now as it is used globally!!
Thanks if you can point me anywhere with this.
Andrew
The database is a hash of complex coding to get around poor database design with regards to tables simple rules of normalisation!
The tool analyses files comparing and doing a number of auditing functions. What I am struggling to do is write some sql to see if a file in question has been selected for analysis. The only issue is that rather than have these files as separate records in a table, they are of course all in one record with another file representing which files are selected by the file number and then a ";", i.e. 1;2;4
Can anyone suggest how this can be extracted using a union query in combination with some clever coding?
I know the simple answer is to redesign it but it is too late now as it is used globally!!
Thanks if you can point me anywhere with this.
Andrew