mysql - SQLzoo tutorial | GROUP BY and HAVING -


i can't answer correctly following question in

show years in 3 prizes given physics.

i've written following script returns wrong.

select yr, count(subject) nobel subject = 'physics' group yr having count(subject) = 3 

thank time

that query looks correct, can't sure without link sqlzoo page.

try

select yr nobel subject = 'physics' group yr having count(subject) = 3 

-- might finicky exact format of results returning. it's asking year.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -