Skip to content

Commit

Permalink
Including columns in query
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmaradiaga committed Dec 5, 2023
1 parent 63fb994 commit 9a7227e
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions docs/tables/btp_entitlements_datacenter.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,46 @@ Get the details of all the data centers where a subaccount can be created in the

```sql
select
*
display_name,
region,
environment,
iaas_provider,
supports_trial,
domain,
is_main_data_center
from
btp.btp_entitlements_datacenter;
btp_entitlements_datacenter;
```

### List all the Cloud Foundry data centers

```sql
select
*
display_name,
region,
environment,
iaas_provider,
supports_trial,
domain,
is_main_data_center
from
btp.btp_entitlements_datacenter
WHERE
btp_entitlements_datacenter
where
environment = 'cloudfoundry';
```

### List all the satellite data centers

```sql
select
*
display_name,
region,
environment,
iaas_provider,
supports_trial,
domain
from
btp.btp_entitlements_datacenter
btp_entitlements_datacenter
where
is_main_data_center = False;
```
Expand All @@ -54,7 +71,7 @@ select
from
btp_accounts_subaccount sa
join
btp.btp_entitlements_datacenter dc
btp_entitlements_datacenter dc
on sa.region = dc.region
order by
region,
Expand Down

0 comments on commit 9a7227e

Please sign in to comment.