SELECT
CONCAT_WS(', ', lastName, firstname)
FROM
employees;
SELECT
CONCAT_WS(', ', lastName, firstname) AS `Full name`
FROM
employees;
SELECT
CONCAT_WS(', ', lastName, firstname) `Full name`
FROM
employees
ORDER BY `Full name`;
SELECT
orderNumber `Order no.`,
SUM(priceEach * quantityOrdered) Total
FROM
orderdetails
GROUP BY `Order no.`
HAVING total > 60000;
SELECT
customerName, COUNT(o.orderNumber) total
FROM
customers c
INNER JOIN
orders o ON c.customerNumber = o.customerNumber
GROUP BY customerName
ORDER BY total DESC
SELECT
customers.customerName, COUNT(orders.orderNumber) total
FROM
customers
INNER JOIN
orders ON customers.customerNumber = orders.customerNumber
GROUP BY customerName
ORDER BY total DESC