Hi all,
Table structured as such:
item_id, serial_num,project_id, type, op_1, op_2, op_3, ..., op_20
and values are:
1234, -, 001, op_code, operation1, operation2, operation2a, null ..., null
1234, A, 001, status, X, X, Queue, null ..., null
1234, B, 001, status, X, X, Queue, null ..., null
1234, C, 001, status, X, X, Run, null ..., null
5555, -, 002, op_code, operation1a, opeartion2a, operation2b, null, ..., null
5555, A, 002, status, X, Queue, null, null, ..., null
5555, B, 002, status, X, Queue, null, null, ..., null
What I need to do is grab all the items which will hit a certain operation, is there an easier way than
Code:
SELECT * FROM TABLE t1, WHERE t1.op_1 = 'operation1' OR t1.op_2 = 'operation1' OR ... t1.op_20 = 'operation1' AND type != 'status'
I can't find a single-row function that accomodates this nor do any of my searches give me any results that help...
Thanks in advance!
-Warren