Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
omnichannel_example
CREATE TABLE retargeting ( subscriberkey VARCHAR(200), event_id VARCHAR(50) ) CREATE TABLE omniture ( subscriberkey VARCHAR(200), event_id VARCHAR(50) ) INSERT INTO retargeting VALUES ('1234', '1'), ('1234', '1') INSERT INTO omniture VALUES ('1235', '2'), ('1235', '3'), ('1235', '3') SELECT ISNULL(a.subscriberkey, b.subscriberkey) AS subscriberkey, ISNULL(a.event_id, b.event_id) AS event_id FROM retargeting a FULL OUTER JOIN omniture b ON a.subscriberkey = b.subscriberkey AND a.event_id = b.event_id GROUP BY ISNULL(a.subscriberkey, b.subscriberkey), ISNULL(a.event_id, b.event_id)
run
|
edit
|
history
|
help
0
SS mysqlsvr 2014 practice
MyDatabase
c12part2
group_by
GKM_JOIN_1
megha
BC160400549
Microsoft SQL Server T-SQL in 10 mn ~ Lesson 13 Subqueries vers.#3
deepu
hi