100% found this document useful (1 vote)
750 views1 page

Candidate Test Summer Camp v1

The document outlines a task for creating a database model for a youth summer camp organization, requiring three tables with specific columns. It includes instructions for populating one table with 5000 random entries, ensuring demographic distributions among genders and age groups. Additionally, it specifies a query to format data for a chart representing gender distribution across different generations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
750 views1 page

Candidate Test Summer Camp v1

The document outlines a task for creating a database model for a youth summer camp organization, requiring three tables with specific columns. It includes instructions for populating one table with 5000 random entries, ensuring demographic distributions among genders and age groups. Additionally, it specifies a query to format data for a chart representing gender distribution across different generations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

SUMMER CAMP TASK

You have joined a development team in an organization that organizes summer youth
camps for children & teenagers. A youth summer camp is a supervised program
designed for children and teenagers during the summer months when school is not in
session. These camps offer a variety of activities that aim to educate, entertain, and
engage young people in a safe and structured environment. The duration of these
camps can range from a few days to several weeks.

Task 1: Your job is to create a database model for this situation. The model must
contain three tables. a) The first two tables will contain the columns that are in the
orange bubble. Each column can exist in exactly one table! b) The third table will
contain columns of your choice, but we must be able to tell how many times a
teenager Lakshmi visited the camp in last 3 years.

p T i t le La
End

st N

Nam
e
Ca m Cap am
e
Pe

acit
Date

t y
rs

Firs
on

Price
al

il
G

Ema
Ph

Mid
en

on

e
Dat
dle
e

Nam
e rt
d

Sta
Date of B
er

irth

Task 2: Create a script that will populate one of your tables with a random 5000
people. Out of these 5000, 65% should be girls and 35% should be boys. Out of
these 5000, 18% should be between 7 and 12 years old, 27% should be 13 to14,
20% should be 15-17 and the rest could be any age up to 19 years old.

Task 3: Write a query that can 55% 46%


54% 64% 64%
45%
output data in a format so that 36% 36%

following chart can be drawn. The Gen X Millenials Gen Z Gen Alpha

number in the chart are indicative


█ Male █ Female

Your final solution should be submitted as one SQL script. All your code should be in the
.sql file. Where necessary, the script should use declared tables, there is no need to create
permanent tables nor physical database.

You might also like