The document appears to be analyzing user entitlement data from a database. It is performing several COUNT calculations to determine the number of distinct users with different entitlement tag combinations and timestamps. The results show the number of users that have both promotional and online access tags, those with only promotional tags, and those where the promotional tags preceded or followed the online access tags.
The document appears to be analyzing user entitlement data from a database. It is performing several COUNT calculations to determine the number of distinct users with different entitlement tag combinations and timestamps. The results show the number of users that have both promotional and online access tags, those with only promotional tags, and those where the promotional tags preceded or followed the online access tags.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as XLS, PDF, TXT or read online from Scribd
The document appears to be analyzing user entitlement data from a database. It is performing several COUNT calculations to determine the number of distinct users with different entitlement tag combinations and timestamps. The results show the number of users that have both promotional and online access tags, those with only promotional tags, and those where the promotional tags preceded or followed the online access tags.
Copyright:
Attribution Non-Commercial (BY-NC)
Available Formats
Download as XLS, PDF, TXT or read online from Scribd
SUM(CASE WHEN B.User_Account_ID IS NOT NULL THEN 1 ELSE 0 END) DIST_BOTH_USERS,
SUM(CASE WHEN B.User_Account_ID IS NULL THEN 1 ELSE 0 END) ONLY_PROMO_USERS, SUM(CASE WHEN A.Effective_Start_Ts < B.Effective_Start_Ts THEN 1 ELSE 0 END) BEFORE_USER_CNT, SUM(CASE WHEN A.Effective_Start_Ts > B.Effective_Start_Ts THEN 1 ELSE 0 END) AFTER_USER_CNT FROM ( SELECT User_Account_ID, MIN(Effective_Start_Ts) Effective_Start_Ts FROM EADW_CORE_PUB.ENTITLEMENT ent WHERE user_account_ss_code = 6 AND Entitlement_Tag_code = 'DAO_PRC_PROMO_EMB' GROUP BY 1 )A LEFT OUTER JOIN ( SELECT User_Account_ID, MIN(Effective_Start_Ts) Effective_Start_Ts FROM EADW_CORE_PUB.ENTITLEMENT ent JOIN EADW_CORE_PUB.PROJECT prj ON ent.EdW_Project_Id = prj.EdW_Project_Id JOIN EADW_CORE_PUB.PROJECT_TTL ptl ON prj.Edw_Project_Ttl_Id=ptl.Edw_Project_Ttl_Id JOIN EADW_CORE_PUB. MASTER_TTL mtl ON ptl.edw_Master_Ttl_Id=mtl.edw_Master_Ttl_Id WHERE user_account_ss_code = 6 AND Master_Ttl_Name = 'Dragon Age 1' AND Entitlement_Tag_code = 'ONLINE_ACCESS' GROUP BY 1 )B ON A.User_Account_ID = B.User_Account_ID
135168 81918 55538 79629 41.08812737 58.91113281 SELECT SUM(CASE WHEN B.User_Account_ID IS NOT NULL THEN 1 ELSE 0 END) DIST_BOTH_USERS, SUM(CASE WHEN B.User_Account_ID IS NULL THEN 1 ELSE 0 END) ONLY_PROMO_USERS, SUM(CASE WHEN A.Effective_Start_Ts < B.Effective_Start_Ts THEN 1 ELSE 0 END) BEFORE_USER_CNT, SUM(CASE WHEN A.Effective_Start_Ts > B.Effective_Start_Ts THEN 1 ELSE 0 END) AFTER_USER_CNT FROM ( SELECT User_Account_ID, MIN(Effective_Start_Ts) Effective_Start_Ts FROM EADW_CORE_PUB.ENTITLEMENT ent WHERE user_account_ss_code = 6 AND Entitlement_Tag_code = 'DAO_PRC_PROMO_WAR' GROUP BY 1 )A LEFT OUTER JOIN ( SELECT User_Account_ID, MIN(Effective_Start_Ts) Effective_Start_Ts FROM EADW_CORE_PUB.ENTITLEMENT ent JOIN EADW_CORE_PUB.PROJECT prj ON ent.EdW_Project_Id = prj.EdW_Project_Id JOIN EADW_CORE_PUB.PROJECT_TTL ptl ON prj.Edw_Project_Ttl_Id=ptl.Edw_Project_Ttl_Id JOIN EADW_CORE_PUB. MASTER_TTL mtl ON ptl.edw_Master_Ttl_Id=mtl.edw_Master_Ttl_Id WHERE user_account_ss_code = 6 AND Master_Ttl_Name = 'Dragon Age 1' AND Entitlement_Tag_code = 'ONLINE_ACCESS' GROUP BY 1 )B ON A.User_Account_ID = B.User_Account_ID
A) 43.76% (i.e 50359) distinct users granted DAO_PRC_PROMO_EMB received DAO_PRC_PROMO_EMB
B) 51.41% (i.e 59162) distinct users granted DAO_PRC_PROMO_EMB received DAO_PRC_PROMO_EMB C) 71660 distinct users granted DAO_PRC_PROMO_EMB but never were granted ONLINE_ACCESS D)115,058 distinct users are having both DAO_PRC_PROMO_EMB and ONLINE_ACCESS tags PRC_PROMO_EMB before ONLINE_ACCESS PRC_PROMO_EMB after ONLINE_ACCESS LINE_ACCESS SELECT SUM(CASE WHEN B.User_Account_ID IS NOT NULL THEN 1 ELSE 0 END) DIST_BOTH_USERS, SUM(CASE WHEN B.User_Account_ID IS NULL THEN 1 ELSE 0 END) ONLY_PROMO_USERS, SUM(CASE WHEN A.Effective_Start_Ts < B.Effective_Start_Ts THEN 1 ELSE 0 END) BEFORE_USER_CNT, SUM(CASE WHEN A.Effective_Start_Ts > B.Effective_Start_Ts THEN 1 ELSE 0 END) AFTER_USER_CNT FROM ( SELECT User_Account_ID, MIN(Effective_Start_Ts) Effective_Start_Ts FROM EADW_CORE_PUB.ENTITLEMENT ent WHERE user_account_ss_code = 6 AND Entitlement_Tag_code = 'DAO_PRC_PROMO_HOD' GROUP BY 1 )A LEFT OUTER JOIN ( SELECT User_Account_ID, MIN(Effective_Start_Ts) Effective_Start_Ts FROM EADW_CORE_PUB.ENTITLEMENT ent JOIN EADW_CORE_PUB.PROJECT prj ON ent.EdW_Project_Id = prj.EdW_Project_Id JOIN EADW_CORE_PUB.PROJECT_TTL ptl ON prj.Edw_Project_Ttl_Id=ptl.Edw_Project_Ttl_Id JOIN EADW_CORE_PUB. MASTER_TTL mtl ON ptl.edw_Master_Ttl_Id=mtl.edw_Master_Ttl_Id WHERE user_account_ss_code = 6 AND Master_Ttl_Name = 'Dragon Age 1' AND Entitlement_Tag_code = 'ONLINE_ACCESS' GROUP BY 1 )B ON A.User_Account_ID = B.User_Account_ID