SuiteQL Query Library

Items: Standalone Items

Returns a list of items that exist entirely on their own, independent of a parent or child item.

-- Contributor: Tim Dietrich (timdietrich@me.com)
-- Additional Info: https://timdietrich.me/blog/netsuite-suiteql-matrix-items/
SELECT
	Item.ID,
	Item.ItemID
FROM
	Item
WHERE
	( Parent IS NULL )
	AND ( IsInactive = 'F' )
	AND ( NOT EXISTS ( SELECT * FROM Item AS ChildItem WHERE ChildItem.Parent = Item.ID ) )

← Back to Query Library