-- Команды чтения:

-- Полное чтение таблицы
-- SELECT * FROM `up_and_down`.`user`;

-- Частичное чтение таблицы
-- SELECT * FROM `up_and_down`.`user` WHERE login = 'login3';
-- SELECT * FROM `up_and_down`.`user` WHERE login <> 'login3';
-- SELECT * FROM `up_and_down`.`mania` WHERE level > 5;
-- SELECT * FROM `up_and_down`.`mania` WHERE (level > 3) AND (level < 9);
-- SELECT * FROM `up_and_down`.`mania` WHERE (level > 3) OR (level = 1);
-- SELECT * FROM `up_and_down`.`mania` WHERE NOT (level > 3) OR (level = 5);
-- SELECT * FROM `up_and_down`.`mania` WHERE level IS NOT NULL;

-- Более продвинутые команды
-- SELECT DISTINCT hashed_password from `up_and_down`.`user`;
-- SELECT * FROM `up_and_down`.`mania` ORDER BY level ASC;
-- SELECT * FROM `up_and_down`.`mania` ORDER BY level DESC;
-- SELECT * FROM `up_and_down`.`mania` WHERE (level > 3) AND (level < 9) AND (level <> 6) ORDER BY level DESC;
-- SELECT * FROM `up_and_down`.`mania` LIMIT 5;
-- SELECT * FROM `up_and_down`.`mania` ORDER BY description DESC LIMIT 5;