I want to query the following:
The attribute Unknown Hrs is Yes if the employee works on at least one project with NULL hours, and No otherwise.
And I do this by first making a list, theList containing all relevant social security numbers and consequently:
for i in theList:
unknown_hours=process_query("SELECT Distinct COUNT(*) FROM Works_On WHERE ISNULL(Hours) AND ESSN='%s'" %i)
temp.append(unknown_hours)
the trouble is that I get answers like 1L or 0L and I need them to be integers (for an algorithm). Any thoughts?
Regards Cenderze