Just wondering about indexes. It's a quite new concept for me and I can't see the difference between declaring columns in ON clause and in INCLUDE clause. Examples below should explain the matter:
CREATE INDEX ix_client_info1
ON dbo.client(name, age, city)
WHERE name = 'A%';
CREATE INDEX ix_client_info2
ON dbo.client(name)
INCLUDE(age, city)
WHERE name = 'A%';
How these two indexes differ in behaviour? Which to use in which situations?