Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
NSC | SuiteQL Query: How to Get the Sales Order with Job/Project Details via Left Join
Some NetSuite Customers aim to develop an efficient SQL query that combines information from the TRANSACTION and JOB tables to facilitate payroll processing. The goal is to seamlessly merge these tables, allowing the extraction of relevant data required by the payroll team to accurately calculate and disburse employee salaries.
Here’s a sample query that can be used as a reference:
SELECT transaction.id as transactionID, transaction.type, transaction.number as transactionNumber, job.id as projectID, job.entityid, job.entitytitle FROM transaction LEFT JOIN job ON job.id = transaction.job WHERE transaction.type = 'SalesOrd';
Creating sales orders linked to project records in NetSuite provides a comprehensive project management solution. It enables better control, visibility, and management of projects, ensuring that all aspects of the project, from financial to operational, are effectively coordinated and tracked. This integration streamlines workflows, improves efficiency, and contributes to the successful delivery of projects.
Refer a Member to the Community | Earn the Answer Accepter Badge | Vote for the contents you'd like to see