# View: dt_release_country_of_origin_custom

**View Name:** dt_release_country_of_origin_custom
**Table Source:** `Derived from: Art_Relations_Prod_Art_Relations.Country, Art_Relations_Prod_Art_Relations.Releases, Orchard_App_Reporting_V2, Orchard_App_Reporting_V2.Art_Relations_Prod_Art_Relations`
**File Path:** `dt_release_country_of_origin_custom.view.lkml`

## Overview

- **File Size:** 737 bytes
- **Lines of Code:** 27
- **Dimensions:** 2
- **Measures:** 0
- **Dimension Groups:** 0
- **Filters:** 0

## Dimensions

| Name | Type |
|------|------|
| `upc` | number |
| `country_code` | string |

## Derived Table

```sql
sql: select upc, country_of_origin, c.country_code
      from ORCHARD_APP_REPORTING_V2.ART_RELATIONS_PROD_ART_RELATIONS.RELEASES r
      inner join ORCHARD_APP_REPORTING_V2.ART_RELATIONS_PROD_ART_RELATIONS.COUNTRY c on r.country_of_origin = c.id
      where country_of_origin != 0
      and distribution_format_id NOT IN (1,57) ;;
```

