skip to Main Content

Mysql – The IN operator in sql

In the nobel quiz, there is a question "Write the code which would show the year when neither a Physics or Chemistry award was given'. My code is as following: SELECT yr FROM nobel WHERE subject NOT IN ('Chemistry','Physics') The…

VIEW QUESTION

Mysql – How to display the shortest name in a group?

My table looks like this: CREATE TABLE `character_unique` ( `id` int(11) NOT NULL, `name` varchar(256) NOT NULL, `category` varchar(64) DEFAULT NULL, `name_without_stop_words` varchar(320) DEFAULT NULL, `name_first_word_with_exception` varchar(320) DEFAULT NULL, `master` varchar(320) DEFAULT NULL, `nb_letter` int(11) DEFAULT NULL, `count` int(11) DEFAULT…

VIEW QUESTION
Back To Top
Search