With: The WITH clause is a kind of inline view or a temporary table. The advantage of using is that if there is multiple reference to a subquery it can be replaced temporary table, rather being written multiple times.
View: It is a virtual table based on the result of an SQL statement.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…