T
T
tolsor2018-05-07 01:08:46
MySQL
tolsor, 2018-05-07 01:08:46

How to write a sql query to find out the percentage?

How to calculate the percentage of twos given by each teacher?

Table Schema:
5aef7c8833126431029202.png

I can not:
SELECT `kod_prepod` AS 'Код преподавателя', COUNT(`ocenka`=2) * 100 / COUNT(`ocenka`) AS 'Процент двоек' FROM `uspev`

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question