>This is exactly what SQL is. There are exceptions, but they're exceptions.
no, i meant the query is literally this: GIVE ME ALL THE COST OF THE EMPLOYEES
or if we want to formalize more:
ALL COST OF ALL EMPLOYEES
the point here that in a declarative mindset EMPLOYEE is a word that SQL server understands, like HTML understand paragraph
or table with rows and cells
>I don't think you have a correct model of SQL. SQL is a language that expresses definitions, not functions. It is absolutely declarative.
that just not true. without defining the how through transformations and conditions, the only thing you get out of the sql server is a table how it is stored. until you reach a certain complexity you are true, it can be seen as declarative, but my point here, is the approach of problem solving is the separation here. you dont even have to speak about computers:
cooking recipe VS assembly lines in factories VS a robot with ai, which can do whatever is programmed to, but in certain cases work out the details by itself when not given specifically (not the best example, but started to get exhausted)
Also how would you say that by nature HTML and SQL is the same?