OddProject
Registered User.
- Local time
- Yesterday, 23:46
- Joined
- Nov 24, 2009
- Messages
- 67
Hi, I have a signle table with a large number of feilds (project ref, name dates etc... and a large number of skills). the skill feilds hold a number (number of days) assigned to each skill. If no values are entered no skill for that particular project is needed.
Many of these feilds remain null, but many have a value (but not for all rows).
I want a query to retrieve all results excluding a feild with no values at all (all null).
Example:
Project code:_Skill1__skill2__skill3__skill4__Skill5__Skill6
AA00001______ 1__________ 4
AA00002
AA00003_______3__________2_____1
AA00004______________________________1
Now if I use a query to select all rows and use the criteria Is not null (on each individual feild) it returns nothing at all, due to the fact that each skill has a null. all i want excluding from the example above are feilds 'skill2 and skill6'. Would this have to be a manual operation to find each feild with no vaules and leave them out of my query? I would much prefere a query to exclude each feild with 0 values for every project.
Keeping in mind I have over 30 skills in my table.
I also tried adding a 0 instead of a null and trying >0 as the criteria, but returns no results much like the Is not null.
P.s I also have another relational DB (a test) keeping the skills in a seperate table (using the project code for Primary/Foreign key), I cannot find a method for either way...
many thanks.
Many of these feilds remain null, but many have a value (but not for all rows).
I want a query to retrieve all results excluding a feild with no values at all (all null).
Example:
Project code:_Skill1__skill2__skill3__skill4__Skill5__Skill6
AA00001______ 1__________ 4
AA00002
AA00003_______3__________2_____1
AA00004______________________________1
Now if I use a query to select all rows and use the criteria Is not null (on each individual feild) it returns nothing at all, due to the fact that each skill has a null. all i want excluding from the example above are feilds 'skill2 and skill6'. Would this have to be a manual operation to find each feild with no vaules and leave them out of my query? I would much prefere a query to exclude each feild with 0 values for every project.
Keeping in mind I have over 30 skills in my table.
I also tried adding a 0 instead of a null and trying >0 as the criteria, but returns no results much like the Is not null.
P.s I also have another relational DB (a test) keeping the skills in a seperate table (using the project code for Primary/Foreign key), I cannot find a method for either way...
many thanks.