File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -109,8 +109,7 @@ customer @insert @update @delete
109
109
age : age,
110
110
yrs_customer : yrs_customer
111
111
streams : streams @insert @update @delete
112
- [{
113
- cust_id : cust_id
112
+ [{
114
113
day_id : day_id
115
114
genre_id : genre_id
116
115
movie_id : movie_id
@@ -121,10 +120,10 @@ customer @insert @update @delete
121
120
select *
122
121
from customer_streams_dv;
123
122
124
- -- Query the duality view using JSON functions. Pull back the customers watching romance movies
123
+ -- Query the duality view using JSON functions. Pull back the customers who have been around for 10 years
125
124
select *
126
125
from customer_streams_dv
127
- where JSON_VALUE(data,' $.streams.genre_id ' ) = 19 ;
126
+ where JSON_VALUE(data,' $.yrs_customer ' ) > 10 ;
128
127
129
128
130
129
/* Now to insert a new record into customers and streams we can do that through the Duality View.
You can’t perform that action at this time.
0 commit comments