$ 0 0 The basic uses of the WITH statement. There are many ways it can be used as building blocks for simplifying potentially complex SQL statements, all while keeping code as efficient as possible.