This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set @num := 0, @type := ''; | |
select type, variety, price | |
from ( | |
select type, variety, price, | |
@num := if(@type = type, @num + 1, 1) as row_number, | |
@type := type as dummy | |
from fruits | |
order by type, price | |
) as x where x.row_number <= 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remove current vim | |
sudo zypper rm vim vim-runtime vim-gnome vim-tiny vim-gui-common | |
# removes current link for vim | |
sudo rm -rf /usr/local/share/vim /usr/bin/vim | |
sudo zypper addrepo https://download.opensuse.org/repositories/home:ochaton/openSUSE_Tumbleweed/home:ochaton.repo | |
sudo zypper refresh | |
# installs everything needed to make/configure/build Vim |