DBAWinnipeg
Programmer
Question
I have a view that is made up of 3 partitioned tables. If I specify the index hint that I would like for each of the tables within the view will those hints be used when selecting from the view
ie)
CREATE VIEW vw_Test AS
Select * from tbl_1 WITH(INDEX(idx_1))
UNION ALL
Select * from tbl_2 WITH(INDEX(idx_2))
UNION ALL
Select * from tbl_3 WITH(INDEX(idx_3))
and if I do
Select * from vw_Test where blah blah blah blah
will it try and select the indexes to use on it's own... or will the index hints get brought forward.
Thanks in advance!!!
Colin in da 'Peg
I have a view that is made up of 3 partitioned tables. If I specify the index hint that I would like for each of the tables within the view will those hints be used when selecting from the view
ie)
CREATE VIEW vw_Test AS
Select * from tbl_1 WITH(INDEX(idx_1))
UNION ALL
Select * from tbl_2 WITH(INDEX(idx_2))
UNION ALL
Select * from tbl_3 WITH(INDEX(idx_3))
and if I do
Select * from vw_Test where blah blah blah blah
will it try and select the indexes to use on it's own... or will the index hints get brought forward.
Thanks in advance!!!
Colin in da 'Peg