I am having a rather strange problem. When I run the following query from Pervasive Control Center:
SELECT "Order Master"."ORDNUM_10","Order Master"."CURQTY_10","Order Master"."STATUS_10","Job Progress"."OPRSEQ_14","Job Progress"."WRKCTR_14","Job Progress"."QTYREM_14","Job Progress"."MOVDTE_14","Order Master"."CURDUE_10" FROM "Order Master","Job Progress" WHERE ("Job Progress"."OPRSEQ_14"='0099') AND ("Job Progress"."QTYREM_14"> 0) AND ("Order Master"."ORDER_10" = "Job Progress"."ORDNUM_14") ORDER BY "Order Master"."STATUS_10"
it returns several hundred records. In those records, the Status_10 field contains either '3' or '5'. So I only want to get the status '3' records so I modified the query accordingly:
SELECT "Order Master"."ORDNUM_10","Order Master"."CURQTY_10","Order Master"."STATUS_10","Job Progress"."OPRSEQ_14","Job Progress"."WRKCTR_14","Job Progress"."QTYREM_14","Job Progress"."MOVDTE_14","Order Master"."CURDUE_10" FROM "Order Master","Job Progress" WHERE ("Order Master"."STATUS_10"='3') AND ("Job Progress"."OPRSEQ_14"='0099') AND ("Job Progress"."QTYREM_14"> 0) AND ("Order Master"."ORDER_10" = "Job Progress"."ORDNUM_14") ORDER BY "Order Master"."STATUS_10"
However, this modified query returns no records - makes absolutely no sense to me. can anyone offer a suggestion. The status_10 field is a 1 character text field.
Mighty
SELECT "Order Master"."ORDNUM_10","Order Master"."CURQTY_10","Order Master"."STATUS_10","Job Progress"."OPRSEQ_14","Job Progress"."WRKCTR_14","Job Progress"."QTYREM_14","Job Progress"."MOVDTE_14","Order Master"."CURDUE_10" FROM "Order Master","Job Progress" WHERE ("Job Progress"."OPRSEQ_14"='0099') AND ("Job Progress"."QTYREM_14"> 0) AND ("Order Master"."ORDER_10" = "Job Progress"."ORDNUM_14") ORDER BY "Order Master"."STATUS_10"
it returns several hundred records. In those records, the Status_10 field contains either '3' or '5'. So I only want to get the status '3' records so I modified the query accordingly:
SELECT "Order Master"."ORDNUM_10","Order Master"."CURQTY_10","Order Master"."STATUS_10","Job Progress"."OPRSEQ_14","Job Progress"."WRKCTR_14","Job Progress"."QTYREM_14","Job Progress"."MOVDTE_14","Order Master"."CURDUE_10" FROM "Order Master","Job Progress" WHERE ("Order Master"."STATUS_10"='3') AND ("Job Progress"."OPRSEQ_14"='0099') AND ("Job Progress"."QTYREM_14"> 0) AND ("Order Master"."ORDER_10" = "Job Progress"."ORDNUM_14") ORDER BY "Order Master"."STATUS_10"
However, this modified query returns no records - makes absolutely no sense to me. can anyone offer a suggestion. The status_10 field is a 1 character text field.
Mighty