|
|
|
|
|
by Sankozi
1608 days ago
|
|
"SELECT whatever FROM thisplace" is trivial to improve and could be for example thisplace[whatever]. With joins it gets more complex but still SQL could allow using foreign keys and having SELECT at the end. You could get at least something like: "FROM Invoice i JOIN i.customer c SELECT c.name, i.number" instead of "SELECT c.name, i.number FROM Invoice i JOIN i.customer c ON i.CustomerId = c.CustomerId" |
|
SELECT c.name, i.number
FROM Invoice i, Customer c
where i.CustomerId=c.CustomerID"