I am reading CJ Date SQL and relational theory: how to write accurate SQL code , and it makes positional queries bad - for example, this is INSERT :
INSERT INTO t VALUES (1, 2, 3)
Instead, you should use attribute-based queries, for example:
INSERT INTO t (one, two, three) VALUES (1, 2, 3)
Now I understand that the first query does not match the relational model, because tuples (rows) are unordered sets of attributes (columns). I am having trouble understanding where the harm is in the first request. Can someone explain this to me?
sql tuples relational-model database-relations relational-algebra
Jason baker
source share