
Excel - update report query to use 2 fields in a where clause
- or -
Post a project like this719
£151(approx. $202)
- Posted:
- Proposals: 10
- Remote
- #3912832
- OPPORTUNITY
- PRE-FUNDED
- Awarded
WordPress Expert | Web & App Developer | SEO Specialist | Content Writer | Blockchain | Python | OpenAI | Machine Learning

Quick Graphic Designer + Animator + Video Editor + Photo Editor + Logo Designer + Autocad Designer

Project Manager /Software Engineer / System Analyst / .Net Programmer / Android Developer
18274731510053544992660817356231483409867647690610276892050992359825





Description
Experience Level: Entry
Using a current report that has a query to SQL.
Looking for fields B3 and C3 to be used in the where caluse for the columns crm_jobs.JOB_NO and crm_jobs.JOB_VERSION for the existing query.
select
JOB_NO,
JOB_VERSION,
CRM_COMPANY.NAME,
[ADDRESS_1]
,[ADDRESS_2]
,[ADDRESS_3]
,[CITY]
,[COUNTY],POST_CODE
--coalesce(crm_jobs.delivery_address,POST_CODE )
,IIF( datalength(crm_jobs.DELIVERY_ADDRESS)>0, crm_jobs.delivery_address, [POST_CODE]) as FINAL_DELIVERY
,CRM_JOB_ITEMS.PARTCODE,
sizex,
sizey,
quantity,
MRP_BOM_JOB.WEIGHT,
(MRP_BOM_JOB.weight * QUANTITY) as LINE_ITEM_SUB_WEIGHT,
SPLIT_DELIVERY,
(SPLIT_DELIVERY * quantity) as LINE_SHIPPING
from CRM_JOB_ITEMS with (readpast)
INNER JOIN CRM_JOBS ON CRM_JOB_ITEMS.FK_JOB = CRM_JOBS.PK_JOBS
INNER JOIN CRM_COMPANY on CRM_JOBS.FK_CUSTOMER = crm_COMPANY.PK_COMPANY
inner join CRM_CONTACTS on CRM_JOBS.FK_CONTACT = crm_CONTACTS.PK_CONTACT
INNER JOIN MRP_BOM_JOB ON CRM_JOB_ITEMS.PK_JOB_ITEMS = MRP_BOM_JOB.FK_JOB_ITEMS
where MRP_BOM_JOB.weight is not null and MRP_BOM_JOB.weight > 0
Looking for fields B3 and C3 to be used in the where caluse for the columns crm_jobs.JOB_NO and crm_jobs.JOB_VERSION for the existing query.
select
JOB_NO,
JOB_VERSION,
CRM_COMPANY.NAME,
[ADDRESS_1]
,[ADDRESS_2]
,[ADDRESS_3]
,[CITY]
,[COUNTY],POST_CODE
--coalesce(crm_jobs.delivery_address,POST_CODE )
,IIF( datalength(crm_jobs.DELIVERY_ADDRESS)>0, crm_jobs.delivery_address, [POST_CODE]) as FINAL_DELIVERY
,CRM_JOB_ITEMS.PARTCODE,
sizex,
sizey,
quantity,
MRP_BOM_JOB.WEIGHT,
(MRP_BOM_JOB.weight * QUANTITY) as LINE_ITEM_SUB_WEIGHT,
SPLIT_DELIVERY,
(SPLIT_DELIVERY * quantity) as LINE_SHIPPING
from CRM_JOB_ITEMS with (readpast)
INNER JOIN CRM_JOBS ON CRM_JOB_ITEMS.FK_JOB = CRM_JOBS.PK_JOBS
INNER JOIN CRM_COMPANY on CRM_JOBS.FK_CUSTOMER = crm_COMPANY.PK_COMPANY
inner join CRM_CONTACTS on CRM_JOBS.FK_CONTACT = crm_CONTACTS.PK_CONTACT
INNER JOIN MRP_BOM_JOB ON CRM_JOB_ITEMS.PK_JOB_ITEMS = MRP_BOM_JOB.FK_JOB_ITEMS
where MRP_BOM_JOB.weight is not null and MRP_BOM_JOB.weight > 0

Karl W.
100% (28)Projects Completed
11
Freelancers worked with
10
Projects awarded
16%
Last project
4 Mar 2025
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies