SFMC Shared Data Extensions: Query Across Business Units with ENT.
Query shared data extensions from any business unit: when ENT. is required, when it breaks, how data views behave in parent vs child BUs, with SQL you can copy.
You run a query in a child business unit, reference the customer table your admin shared from the parent, and the query activity refuses to validate. Or it validates in the parent and fails in the child. Nine times out of ten the cause is the same: the SFMC shared data extension is being referenced without the ENT. prefix, or with it in the one place it is not allowed.
The short answer: when a query activity runs in a child business unit and reads a data extension that lives at the parent level (a shared data extension, a synchronized data extension, or the enterprise _Subscribers view), prefix its name with ENT.. When the same query runs in the parent business unit, drop the prefix, because there is nothing above the parent to point to.
This guide covers how sharing works in Enterprise 2.0, the exact prefix rule, three copy-ready SQL examples, how data views behave in parent and child business units, and the synchronized data extension trap.
How an SFMC shared data extension works across business units
Where a shared data extension lives
Business units exist only in Enterprise 2.0 tenants (not in Enterprise 1.0, Agency or Core accounts). Each child business unit is a silo by default: it has its own data extensions, its own All Subscribers view, its own users and roles.
The way out of the silo is the Shared Data Extensions folder in the parent business unit. A data extension stored in that folder (or one of its subfolders) can be made visible to the child business units you choose. The data stays in one place; the children read it.
What the parent controls
Sharing is configured from Email Studio, under Subscribers, Shared Data Extensions, then the Permissions tab of the data extension. The parent admin ticks each business unit, then allows or denies the available actions for that unit. An optional Start Sharing and End Sharing date pair limits the window.
Two consequences for the person writing SQL: a query can stop working when a sharing window expires, and what you can do with the table depends on what the parent granted, not on your own role.
If you are planning the structure rather than one query, see scaling audience management across business units for how multi-brand teams organise shared tables.
Querying an SFMC shared data extension from a child business unit
The rule in one line
From a child business unit, reference anything stored at the parent level as ENT. followed by the data extension name: FROM ENT.Customers_Master. Use the name shown in the folder, not the external key. From the parent business unit, use the plain name.
The prefix is a pointer up the hierarchy. The parent has nothing above it, so the prefix is meaningless there, and Marketing Cloud says so: validation returns an error stating that the Ent. prefix can only be used to query data in a parent account from a child account.
Where the prefix applies, and where it does not
Use it on shared data extensions, on synchronized data extensions (the Contact_Salesforce tables created by Marketing Cloud Connect), and on ENT._Subscribers when you want the enterprise-wide list rather than the child's.
Do not use it on your own local data extensions, and do not use it on tracking data views such as _Sent or _Open: those are already scoped by the business unit you run in, and the prefix is not how you widen them.
One legacy pattern to retire: prefixing a table with a child MID from the parent (5123456.Some_DE) is deprecated and fails validation. Use the shared folder instead.
If you would rather describe the audience than remember where each table lives, QAiry reads your business unit's folders and shared items and can generate SFMC SQL from plain English, prefix included.
SQL example: join a shared data extension to this business unit's opens
Scenario: the parent shares Customers_Master (one row per customer, with loyalty tier and consent). You work in a brand's business unit and want everyone who opened one of your emails in the last 30 days, with their tier. The query runs in the child.
SELECT
c.SubscriberKey,
c.EmailAddress,
c.LoyaltyTier,
c.Country,
MAX(o.EventDate) AS LastOpenDate
FROM ENT.Customers_Master AS c
INNER JOIN _Open AS o
ON o.SubscriberKey = c.SubscriberKey
WHERE o.IsUnique = 1
AND o.EventDate >= DATEADD(DAY, -30, GETDATE())
AND c.EmailOptIn = 1
GROUP BY
c.SubscriberKey,
c.EmailAddress,
c.LoyaltyTier,
c.Country
- FROM ENT.Customers_Master: the shared table, read from a child, so it carries the prefix. The alias c keeps the rest readable.
- INNER JOIN _Open: the child business unit's own open events. No prefix, because tracking views are scoped by where the query runs.
- WHERE o.IsUnique = 1 counts one open per subscriber per send instead of every pixel load.
- DATEADD(DAY, -30, GETDATE()) gives the rolling 30-day window; GETDATE() runs on the server clock, in Central Standard Time with no daylight saving.
- c.EmailOptIn = 1 keeps the consent rule inside the query so the audience is sendable as is.
- GROUP BY with MAX(o.EventDate) collapses multiple opens into one row per subscriber.
Target data extension: Openers_30d_Loyalty, created in the child business unit, sendable, with SubscriberKey as primary key. Data action: Overwrite, so the audience refreshes cleanly on every run.
Keeping the target local is deliberate: writing into a shared table from a child depends on what the parent granted, and a local target is easier to debug.
Variant: the enterprise subscriber list with ENT._Subscribers
From a child business unit, _Subscribers returns only the subscribers stored in that child. This example points at the parent view instead and finds active enterprise subscribers who have never existed in the current business unit, a useful seed for a cross-brand audience.
SELECT
e.SubscriberKey,
e.EmailAddress,
e.Status
FROM ENT._Subscribers AS e
WHERE e.Status = 'Active'
AND NOT EXISTS (
SELECT 1
FROM _Subscribers AS s
WHERE s.SubscriberKey = e.SubscriberKey
)
- FROM ENT._Subscribers: the parent-level All Subscribers view, so it needs the prefix from a child.
- e.Status = 'Active' keeps out unsubscribed, bounced and held records.
- NOT EXISTS against the local _Subscribers removes anyone already known to this business unit.
Target: Enterprise_Not_In_BU, local to the child, primary key SubscriberKey, Overwrite. Note that ENT._Subscribers reports the enterprise-level status, not this business unit's status. Hard and soft bounces are tracked at the parent and apply to every child, but unsubscribes can be per business unit, so filter on your own _Subscribers if you need the local status.
For a refresher on INNER versus LEFT joins before you combine more tables, see how to join two data extensions in SFMC SQL.
Data views across business units: what each BU can see
Tracking views: the parent sees everything, OYBAccountID says whose it is
The tracking data views (_Sent, _Open, _Click, _Bounce, _Complaint) are not scoped like a table. Run in a child, they return that child's events. Run in the parent, they return every business unit's events.
Each row carries two account columns. AccountID is the parent account's MID. OYBAccountID is the MID of the child business unit that owns the row, and it is null when the row was generated by the parent itself. That column is how you split enterprise-wide engagement by brand without a single join.
SELECT
o.OYBAccountID AS OwnerMID,
o.SubscriberKey,
COUNT(*) AS UniqueOpens30d
FROM _Open AS o
WHERE o.IsUnique = 1
AND o.EventDate >= DATEADD(DAY, -30, GETDATE())
GROUP BY
o.OYBAccountID,
o.SubscriberKey
- Run this in the parent business unit; from a child it only returns the child's own events.
- OYBAccountID becomes the brand key. Null means the send was made from the parent.
- IsUnique = 1 and the 30-day DATEADD window follow the same logic as the first example.
Target: Opens_By_BU_30d in the parent, primary key on OwnerMID plus SubscriberKey, Overwrite. Tracking data views keep six months of history; for more, an automation has to copy rows out before they age off.
The two views that do not follow the pattern
_Job is the exception among the email views: it only shows jobs that ran in the business unit where the query executes, even from the parent. _Subscribers is the other special case, covered above: child-scoped by default, enterprise-wide through ENT._Subscribers, and with no six-month retention limit.
| Object | Run in a child BU | Run in the parent BU |
|---|---|---|
| Shared data extension | ENT.Name | Name |
| Synchronized data extension | ENT.Name (if permitted) | Name |
| _Sent, _Open, _Click, _Bounce | This BU's events only | All BUs, split by OYBAccountID |
| _Job | This BU's jobs | Parent's jobs only |
| _Subscribers | This BU's subscribers | All subscribers |
| ENT._Subscribers | All subscribers | Validation error |
Synchronized data extensions and child business units
Why your child business unit cannot see the CRM sync
Marketing Cloud Connect creates its synchronized data extensions at the top level of the Enterprise tenant, and they cannot be moved into a shared folder. Open Synchronized Data Sources from a child and you get a No Access message: the data source is only visible in the parent, unless Multi-Org is enabled.
In practice a child query can often read a synchronized table with the ENT. prefix, subject to your account permissions. Do not design around it: a child business unit usually should not see every CRM field anyway.
The pattern Salesforce recommends
Build a query activity in the parent that selects the fields and rows the brand needs from the synchronized table, write them into a new data extension in the Shared Data Extensions folder, then grant that brand's business unit permission on it. The child reads ENT.Brand_Contacts like any other shared table.
Schedule the parent automation after the sync has polled and before any child automation that depends on it. Setup details are in the query activity step-by-step guide.
Quick checklist before you run a cross-BU query
- Confirm which business unit the automation runs in. The same SQL is right in one and wrong in the other.
- Prefix every parent-level table with ENT. when running in a child; use plain names in the parent.
- Use the data extension name after ENT., not the external key.
- Leave tracking views unprefixed; they are scoped by the business unit automatically.
- Check the sharing permissions and the Start and End Sharing dates.
- Write results into a local target data extension with SubscriberKey as primary key and Overwrite as the data action.
- If you need enterprise-wide engagement split by brand, run in the parent and group by OYBAccountID.
- Test with a TOP 100 before scheduling, and sanity-check the row count with the brand.
FAQ
How do I query a shared data extension from a child business unit in SFMC?
Reference it as ENT.DataExtensionName in the FROM or JOIN clause, using the data extension name rather than its external key. The parent must have shared it with your business unit, and the sharing window, if set, must be open.
Why does the ENT. prefix fail in the parent business unit?
Because the prefix tells Marketing Cloud to look one level up, and the parent is the top of the hierarchy. Validation says the prefix can only query parent data from a child account. Remove it and the same query runs.
Does the parent business unit see sends and opens from child business units?
Yes for the tracking data views: _Sent, _Open, _Click and _Bounce queried in the parent include every business unit, and OYBAccountID identifies the owning child. _Job is the exception and only returns jobs from the business unit where the query runs.
Can a child business unit query a synchronized data extension?
They live at the parent level and cannot be moved into a shared folder. The supported approach is a parent query activity that copies the needed rows into a shared data extension for that business unit. Reading them directly with ENT. may work, but it is not a design to rely on.
Build cross-BU audiences in seconds with QAiry
Most of the mistakes in this post come from context, not SQL skill: which business unit you are in, which tables sit at the parent, which view is scoped how. QAiry is installed inside your Marketing Cloud account, reads the data extensions and shared items available to your business unit, and turns a request like openers in the last 30 days with their loyalty tier from the shared customer table into a reviewable query and a ready target data extension.
You can install QAiry for free on your own business units, or watch the product demos to see a cross-business-unit audience built end to end.

