More text and date tools: REPLACE, SPLIT_PART and generate_series · exercise 1 of 1 · free preview
REPLACE(text, from, to) swaps every occurrence of a text for another. LENGTH(text) counts characters. Both work like their Excel namesakes (SUBSTITUTE and LEN).
For every product, show slug (the name with every space replaced by an underscore) and name_length (the number of characters in the name). Order by product_id.
Tables in this practice shop
customersproductsordersorder_items