asked on
ASKER
ASKER
ASKER
ASKER
MySQL is an open source, relational database management system that runs as a server providing multi-user access to a number of databases. Acquired by Oracle in 2009, it is frequently used in combination with PHP installations, powering most of the WordPress installations.
TRUSTED BY
-- it assumes that it has some primary key called id
(SELECT UPPER(name) FROM emp ORDER BY id LIMIT 5)
UNION ALL
(SELECT LOWER(name) FROM emp ORDER BY id DESC LIMIT 5);
-- but it changes order, if you're sure there's only 10 records in table, you use:
(SELECT UPPER(name) FROM emp LIMIT 5)
UNION ALL
(SELECT LOWER(name) FROM emp LIMIT 5,5);
Requirement 2:
SELECT CONCAT(UPPER(SUBSTR(name, 1,4)), LOWER(SUBSTR(name, 5,CHAR_LENGTH(name)-4))) FROM emp