Is there an effective approache beside using INNER JOIN or index to optimize queries that use VIEW
CREATE VIEW tableView AS
SELECT A1, A2, B1 as Price, C1 as ItemNumber
FROM A, B, C
WHERE A.A1 = B.B1
AND A.A2 = C.C1;
Example of query
SELECT * FROM TableView WHERE Price = ‘100’ AND ItemNumber = 'R34';
The effective approaches are using appropriate indexes on the underlying tables and general tuning of SQL Server.
There is nothing specific to views that can be optimized (except for the same general issues with regular queries – not using functions that cause table reads/index scans versus index seeks etc…).