G
Guest
I have a query for 2 tables where the join connects a text and numeric field.
I know that the data types should match. Can I run a query to convert the
text to numeric or vice versa and then use that query? If so, how do I run
the conversion. I cannot change the data type in the table as the entire
database does not belong to me, however I am allowed to query the data.
SELECT oppro.opdivtype, oppro.oppronum, oppro.opstatus, oppro.opshipname,
oppro.oporgcity, oppro.oporgst, oppro.opconsnm, oppro.opconscty,
oppro.opconsst, oppro.oppickpdat, oppro.oppayrname, oppro.opbilltamt,
oppro.opbillporc, opmove.omtractor, opmove.omdriver1
FROM oppro INNER JOIN opmove ON oppro.oppronum = opmove.ompronum
WHERE (((oppro.opstatus)<>"C") AND ((oppro.oppickpdat) Between [Start Date]
And [End Date]));
Any help would be appreciated.
Thanks,
Judy
I know that the data types should match. Can I run a query to convert the
text to numeric or vice versa and then use that query? If so, how do I run
the conversion. I cannot change the data type in the table as the entire
database does not belong to me, however I am allowed to query the data.
SELECT oppro.opdivtype, oppro.oppronum, oppro.opstatus, oppro.opshipname,
oppro.oporgcity, oppro.oporgst, oppro.opconsnm, oppro.opconscty,
oppro.opconsst, oppro.oppickpdat, oppro.oppayrname, oppro.opbilltamt,
oppro.opbillporc, opmove.omtractor, opmove.omdriver1
FROM oppro INNER JOIN opmove ON oppro.oppronum = opmove.ompronum
WHERE (((oppro.opstatus)<>"C") AND ((oppro.oppickpdat) Between [Start Date]
And [End Date]));
Any help would be appreciated.
Thanks,
Judy