DROP TABLE IF EXISTS `v_memo`;
DROP VIEW IF EXISTS `v_memo`;

CREATE OR REPLACE VIEW `_mydb_memo`.`v_memo` AS 
SELECT m_memo.*, m_category.c_categoryName, m_category.c_categoryDisplayColor, m_category.c_categoryDisplayOrder
FROM m_memo
LEFT OUTER JOIN m_category ON m_memo.id_category = m_category.id_category
WHERE m_memo.c_delete = 0;
