GCKK
GCKK
GCKK
Category Table
Product Group Category
Baby Hardlines
Electronics Hardlines
Home Hardlines
Software Hardlines
Tools Hardlines
Toy, Hobby & Craft Hardlines
Video Games Hardlines
Apparel Softlines
Beauty Softlines
Health Softlines
Jewelry Softlines
Shoes Softlines
Sporting Goods Softlines
Watches Softlines
Books Media
Comics Media
DVD Media
Music Media
Q1
Q4
SQL Q1 - put answer in HireVue: select sales_specialist from rawdata group by sales_specialist having count(1) >40
SQL Q2 - put answer in HireVue: update rawdata r set category = (select category from category where product_group = r.pro
SQL Q3 - put answer in HireVue: update rawdata r set points = case when listings between 1 and 19 then 0.5 when ((category
SELECT A.AUTHOR_ID FROM TABLEA A WHERE A.BOOK_ID NOT IN (SELECT BOOK_ID FROM TABLEB)
SELECT BOOK_ID ,LISTAGG(CUSTOMER_ID,',') FROM TABLEB GROUP BY BOOK_ID
aving count(1) >40
where product_group = r.product_group )
19 then 0.5 when ((category=hardline and listings between 20 and 149) or (category=softline and listings between 20 AND 99) OR (CATEG
D FROM TABLEB)
een 20 AND 99) OR (CATEGORY=MEDIA AND LISTINGS BETWEEN 20 AND 499) THEN 1 ELSE CASE category WHEN hardline THEN 2 WHEN SO
hardline THEN 2 WHEN SOFTLINE THEN 2 WHEN MEDIA THEN 1.5 END END