revilord
Programmer
- Oct 2, 2003
- 64
I have 2 tables
one table lists a job number and the version
JOBS
Job_num Version
E-1 1.0
E-2 1.0
E-4 2.0
And a work log table
WORK
WorkInHours Description
1 E-1 Did work
2 E-4 Did more work
1 E-2 Did even more work
I need to pull out hours of work for version 1.0 jobs.
something like
select WorkInHours from WORK
where Description IN (
select Job_num form JOBS
where Version = 1.0)
This doesn't work because Description is a text field and the job numbers are like 'E-1' but the Description is 'E-1 Did work'.
and I can use LIKE since it won't except more then one value.
Any suggetions
one table lists a job number and the version
JOBS
Job_num Version
E-1 1.0
E-2 1.0
E-4 2.0
And a work log table
WORK
WorkInHours Description
1 E-1 Did work
2 E-4 Did more work
1 E-2 Did even more work
I need to pull out hours of work for version 1.0 jobs.
something like
select WorkInHours from WORK
where Description IN (
select Job_num form JOBS
where Version = 1.0)
This doesn't work because Description is a text field and the job numbers are like 'E-1' but the Description is 'E-1 Did work'.
and I can use LIKE since it won't except more then one value.
Any suggetions