LatentView Analytics Very Tricky SQL Interview Question | SQL Question for Data Engineering

Publié le: 22 août 2024
sur la chaîne: DataTechWhiz
1,602
42

LatentView Analytics Very Tricky SQL Interview Question | SQL Question for Data Engineer

In this video, I will show you how I solved a very tricky SQL interview question asked to me by LatentView Analytics .


Input:


with data as (
select "A" as class, "Maths" as sub union all
select "B", "English" union all
select "A", "Social" union all
select "B", "Chemistry" union all
select "A","Physics" union all
select "B", "Statistics" union all
select "A", "Biology" union all
select "B", "Maths" union all
select "A", "Science" union all
select "B", "Social"
)

Output:
-- Class Sub1 Sub2 Sub3 Sub4 Sub5
-- A Science Physics Social Maths Biology
-- B English Social Maths Statistics Chemistry


Sur cette page du site, vous pouvez voir la vidéo en ligne LatentView Analytics Very Tricky SQL Interview Question | SQL Question for Data Engineering durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur DataTechWhiz 22 août 2024, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,602 fois et il a aimé 42 téléspectateurs. Bon visionnage!