Sorry, it is wrong. SQL is not baſed on ſets, but bags, which are quite different and more complicated. And, by the way, CTEs are a feature of ISO SQL, not only of MS SQL Server.<p>Finally, entity‐relationſhip is not terribly practical as a model, but as diagrammiŋ.