Challenge

Project 1

Answer.1
create schema ecommerce;
use ecommerce;
Answer.2
'right click on ecommerce schema -> Table Data import Wizard -> Give path of the file -> Next -> choose options :
Create a new table , select delete if exist -> next -> next'
Answer.3
use ecommerce;
describe users_data;
Asnwer.4
select * from users_data limit 100;
Answer.5
use ecommerce;
select count(country) country, count(language) language from users_data;
Answer.6
select sum(socialNbFollowers) ,gender from users_data group by gender;
Answer.7
Ans.a
select count(*) ProfilePicture from users_data where hasProfilePicture = 'true';
Ans.b
select count(*) Application from users_data where hasAnyApp = 'true';
Ans.c
select count(*) Androidapp from users_data where hasAndroidApp = 'true';
Ans.d
select count(*) iosapp from users_data where hasIosApp = 'true';
Answer.8
select count(productsBought) ProductsBought ,country from users_data group by country order by
count(productsBought) desc;
Answer.9
select count(productsSold) ProductsSold ,country from users_data group by country order by count(productsSold) desc;
Answer.10
select country ,max(productsPassRate) ProductsPassRate from users_data group by country order by
max(productsPassRate) desc limit 10 ;
Answer.11
select count(*) language from users_data group by language ;
Answer.12
select sum(socialProductsLiked), sum(productsWished) from users_data where gender = 'F';
Answer.13
select count(productssold), count(productsbought) from users_data where gender = 'M';
Answer.14
select count(productsbought) from users_data group by country order by count(productsbought) desc;
Answe.15
select country, productssold from users_data where productssold = '0' limit 10;
Answer.16
select * from users_data order by daysSinceLastLogin limit 110;
Answer.17
select gender ,count(daysSinceLastLogin) from users_data where gender = 'F' and daysSinceLastLogin>100;
Answer.18
select count(*)female from users_data where gender= 'F' order by country ;
Answer.19
select count(*)male from users_data where gender= 'M' order by country ;
Answer.20
select avg(productssold), avg(productsbought) from users_data where gender = 'M';
Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.