-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add example sql for loans streamlit app and new exposure
- Loading branch information
Noel Gomez
committed
Oct 15, 2023
1 parent
e5a7738
commit b4e8ae2
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-- These are useful queries to run for demo purposes | ||
|
||
use role loader; | ||
use warehouse wh_loading; | ||
|
||
-- source table needs to have change tracking enabled | ||
alter table RAW.LOANS.PERSONAL_LOANS set CHANGE_TRACKING = true; | ||
|
||
-- see the rows in a table | ||
select count(*) | ||
from RAW.LOANS.PERSONAL_LOANS; | ||
|
||
-- delete records from a table | ||
delete | ||
from RAW.LOANS.PERSONAL_LOANS | ||
where left(addr_state, 1)> 'A'; | ||
|
||
-- dropping dymanic table | ||
drop dynamic table balboa_dev.gomezn.PERSONAL_LOANS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: 2 | ||
|
||
exposures: | ||
|
||
- name: loans_analysis | ||
type: dashboard | ||
maturity: medium | ||
url: https://ddyxorozsz-gay725.east-us-a.datacoves.com/ | ||
description: > | ||
Top 10 states with loans | ||
depends_on: | ||
- source('LOANS', 'PERSONAL_LOANS') | ||
|
||
owner: | ||
name: Noel Gomez | ||
email: gomezn@datacoves.com |