- primary key with additional data
- CREATE INDEX IX_Customers_RowCust
- ON Customers (customer_id)
- INCLUDE (customer_name);
- CREATE VIEW vwCust WITH SCHEMABINDING AS
- SELECT t.row_id, t.customer_id, c.customer_name
- FROM SomeTable t
- INNER JOIN Customers c
- ON t.customer_id = c.customer_id
- GO
- CREATE UNIQUE CLUSTERED INDEX vwCustRow ON vwCust (row_id)
- GO