Featured Post

SQL Interview Success: Unlocking the Top 5 Frequently Asked Queries

Image
 Here are the five top commonly asked SQL queries in the interviews. These you can expect in Data Analyst, or, Data Engineer interviews. Top SQL Queries for Interviews 01. Joins The commonly asked question pertains to providing two tables, determining the number of rows that will return on various join types, and the resultant. Table1 -------- id ---- 1 1 2 3 Table2 -------- id ---- 1 3 1 NULL Output ------- Inner join --------------- 5 rows will return The result will be: =============== 1  1 1   1 1   1 1    1 3    3 02. Substring and Concat Here, we need to write an SQL query to make the upper case of the first letter and the small case of the remaining letter. Table1 ------ ename ===== raJu venKat kRIshna Solution: ========== SELECT CONCAT(UPPER(SUBSTRING(name, 1, 1)), LOWER(SUBSTRING(name, 2))) AS capitalized_name FROM Table1; 03. Case statement SQL Query ========= SELECT Code1, Code2,      CASE         WHEN Code1 = 'A' AND Code2 = 'AA' THEN "A" | "A

Predictive Analytics - A Case Study

Nishad Sharma, a Delhi-based entrepreneur, is a typical online shopper who keeps a tab on the various sales and promotional deals run by e-commerce companies from time to time. On the cool Delhi evening of February 4, he opened online fashion company Myntra's app on his smartphone to see if there were any deals on trousers. That day, Myntra was running its Rush Hour sale in which customers could avail up to 50 per cent discount on select products. After filtering his search, Sharma decided to add a pair of UCB trousers to his shopping cart.


Predictive Analytics

But then he changed his mind. Perhaps he could get a better deal if he logged on into a sale on a weekend. To his surprise, Sharma received a mail from Myntra next morning, telling him what he presumably lost by abandoning his cart the previous day. The same product was now available at a 100 per cent mark-up. To close the sale, the company sent another mail to Sharma a couple of days later, offering a smaller discount of 20 per cent. Sharma couldn't let it go waste a second time round.

The systematic and gentle hounding of Sharma points at a big shift in the way e-commerce players target customers. Says Myntra's chief strategy officer Prasad Kompalli, "Gone are the days of sending irrelevant mail shots to one and all. 


Today we are in a position to identify and reach out to our customers." To make this possible on a large scale, e-commerce firms are sprucing up their predictive analytics skills and the attendant infrastructure to understand who their most valuable customers are.

Predictive analytics factors in all possible variables that help the marketer devise the right strategy to generate the desired engagement with customers - from providing timely and accurate sales forecasting insights, to equipping them with opportunities to improve diagnosis and the design of their websites to accommodate the pressures of any shopping blitzkrieg. 


These insights can range from what time of the day your website can witness maximum traffic, what products/pages will receive high impressions, which region you can expect the bulk of the orders to come from (to help in the planning of logistics and cash on delivery options) and the like.

Read more

Comments

Popular posts from this blog

How to Fix datetime Import Error in Python Quickly

Explained Ideal Structure of Python Class

How to Check Kafka Available Brokers