0% found this document useful (0 votes)
426 views8 pages

HomeCredit Test

Home credit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
426 views8 pages

HomeCredit Test

Home credit
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Home Credit –Data Analyst test 2020

Name:

Date:

Result:
A. SQL test
1. Data Structure
Table with credit’s data
select * from view_credit

ID DATE CREDIT_AMOUN ID_PERSO PAYMENT_NU INTERES


T N M T
100 03.09.2006 40000 5001 6 0,15
1
100 10.09.2006 30000 5002 7 0,19
2
100 13.09.2006 30000 5003 8 0,25
3
100 23.09.2006 25000 5004 9 0,17
4
101 22.09.2007 30000 5009 6 0,22
1
101 11.11.2007 62000 5003 11 0,25
2
100 23.09.2006 40000 5005 5 0,18
5
100 26.09.2006 30000 5006 6 0,13
6
100 03.10.2006 30000 5007 5 0,19
7
100 09.10.2006 25000 5008 10 0,22
8
100 11.10.2006 50000 5009 12 0,25
9
101 12.10.2006 55000 5010 12 0,11
0

ID – identification of credit
Date – date of credit issue,
Credit_amount – amount of loan,
Id_person – identification of person,
Payment_num – number of monthly installments,
Interest – year interest rate.

Table with client’s data.


select * from view_person

ID_PERSO DATE_BIRT NAME1 NAME2 NAME CHILD_NU


N H 3 M
5001 03.09.1985 Igor Levy 0
5002 13.05.1954 Ilja Murome Blazen 0
c
5003 26.09.1980 Martin Zahalka 1
5004 11.04.1949 Frantis Pravy Lotr 2
ek
5005 23.08.1974 Sergey Panda Zlobr 3
5006 26.09.1974 Maxim Gross 2
5007 03.12.1981 Vladimi Havel 1
r
5008 09.10.1965 Lumir Robinso Zubejd 1
n a
5009 21.06.1977 Jiri Marat Hele 1
5000 30.01.1993 John Smith 0
5011 25.11.1932 Martin Schmidt 2
5010 12.08.1980 Jan Marek 0

Id_person – identification of person,


Date_birth – date of birth,
Name1 – name,
Name2 – surname,
Name3 – second name,
Child_num – number of children.
2. Question:

1. Which query returns detailed information about all credits and clients who got that
credits?
a) select * from view_credit c right join view_person p on c.id = p.id_person
b) select * from view_credit c join view_person p on p.id_person = c. id_person
c) select * from view_credit c left join view_person p on p.id_person = c. id_person
d) select * from view_credit c full outer join view_person p on p.id_person = c. id_person

2. Which query returns detailed information about all clients and credits they got (i.e. it show
all clients and credits data for those who have it)?
a) select * from view_person p join view_credit c on p.id_person =c.id_person
b) select * from view_credit c join view_person p on p.id_person =c.id_person
c) select * from view_credit c left join view_person p on p.id_person =c.id_person
d) select * from view_person p left join view_credit c on p.id_person =c.id_person

3. Which query returns information about all clients who don’t have any credit?
a) select c.* from view_person p left join view_credit c on p.id_person =c.id_person where c.
id_person is null
b) select p.* from view_person p left join view_credit c on p.id_person =c.id_person where c.id is
null
c) select p.* from view_person p where p.id_person not in (select p.id_person from view_credit)
d) select p.* from view_person p where p.id_person not in (select c.id_person from view_credit
c where p.id_person = c.id_person)

4. Which query returns information about all clients who have more than 1 credit?
a) select p.* from view_person p where (select count(c.id) from view_credit c
where c.id_person=p.id_person)>1
b) select p.* from view_person p where (select count(c.id) from view_credit c
where c.id_person=p.id_person)=2
c) select p.* from view_person p join (select count(*) k, c.id_person from view_credit c group by
c.id having count(*) > 1) g on p.id_person=g.id_person
d) select p.* from view_person p join (select count(*) k, c.id_person from view_credit c group
by c.id_person having count(*) > 1) g on p.id_person=g.id_person
5. What query returns this result:

INTEREST CREDIT_AMOUNT_SU CREDIT_AMOUNT_MA Ac


M X cs
0,11 6200000 80000 512
0,13 3000000 50000 148
0,15 4000000 30000 212
0,17 3250000 60000 303

INTEREST - all possible interest rates from data (listed lowest to highest)
CREDIT_AMOUNT_SUM - sum of amounts with this interest
CREDIT_AMOUNT_MAX - maximum amount with this interest
Accs - number of accounts with this interest

SELECT INTEREST,
SUM(CREDIT_AMOUNT) CREDIT_AMOUNT_SUM,
MAX(CREDIT_AMOUNTc_AMOUNT_MAX,
COUNT(*) Accs
FROM view_credit
GROUP BY INTEREST
ORDER BY INTEREST

6. Which query returns average age of clients who have credits?


a) select avg((sysdate-p.date_birth)/365.25) from view_person p
b) select avg((sysdate-p.date_birth)/365.25) from view_person p where p.id_person in (select
id_person from view_credit c)
c) select avg((sysdate-p.date_birth)/365) from view_person p left join view_credit c on p.id_person =
c.id_person
d) select avg((sysdate-p.date_birth)/365) from view_person p

7. Which query returns average number of children for all clients


a) select avg(p.child_num) from view_person p
b) select avg(p.child_num) from view_person p where p.id_person in (select id_person from
view_credit c)
c) select sum(p.child_num)/count(*) from view_person p where p.id_person in (select id_person
from view_credit c)
d) select avg(p.child_num) from view_person p where p.id_person in (select id_person from
view_credit c where c.id_person=p.id_person)
B. Logical test

1. There are 6 employees in company. Two of them have 11000 USD year salary. One of
them gets 8000 USD per year. Others get 14000 USD. What is the average monthly cost
for salary for one employee in this company? Why?

The average yearly cost for salary for one employee in this company is:

……………………………(11000x2 + 8000 + 14000 x 3 ) / 6


…………………………………………........................................................

…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

2. Statements: All flowers are cats. All fans are cats.

Conclusions:

I. All flowers are fans.


II. Some fans are flowers.

a) Only conclusion I follows


b) Only conclusion II follows
c) Either I or II follows
d) Neither I nor II follows
e) Both I and II follow

3. Mean & median

Assume there are 2 groups of people, first containing 10 males, second containing 10 females.
Average age in group of males is 25 and average age in group of females is 20. There are twins
within groups - a male and a female. Which of following conclusions are generally valid?

a) Median age of men is bigger than median age of women. (true/false)


b) If we sort both groups by age and create 10 pairs each containing a man & woman (youngest
man & youngest woman, 2nd youngest man & 2nd youngest woman, etc.), there will be 5 or more
pairs having a man older or same age as a woman. (true/false)
c) Groups can be rearranged by moving people from one group to another so average age
increases in both groups. (true/false)
…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................
C. Analyst test
1. Analytics 1
Given the table as below:

a. Why the volume in January is significantly higher than other months?

…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

b. Why the volume of Motorbike in the September is normally higher than August
and October?
……………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

c. Why the trend of Cash volume in June and July go up while others go down?

……………………………………………………………………………........................................................

…………………………………………………………………………………........................................................
2. Analytics 2
Below table is Cash Loan Target Achievement of Team Leaders during last 13 months:

a. From your1 point of view, who are the best and the worst Team Leader? Why?

…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

b. Is there any unusual result in above table? Why?

…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

…………………………………………………………………………………........................................................

You might also like