I have this syntax for MySql database and it outputs the right data. If you can spare some time helping me with this, I can really use it on a LOT of my MySql queries.
SELECT eh.contract_reference as 'Reference', eh.ClientCode as 'Client Code', cm.name as 'Name', eh.ChassisNo as 'Chassis No.', eh.ChassisType as 'Chassis Type', con.effective_date as 'Effectivity', con.expiry_date as 'Valid Until', con.Status as 'Status'
FROM delwater_rockyonline.eirheader as eh
JOIN delwater_MasterDB.client_mstr as cm
ON eh.ClientCode = cm.code
JOIN delwater_masterdb.contract_mstr as con
ON eh.contract_reference = con.reference
WHERE con.Status= 'DRAFT'
what I need is something like this:
All help is very much appreciated.