I have requirement to for GI of following Query -
Select * from Mtable M, OTable O where M.OrderId=O.OrderId and O.OpId in (Select Min(OpId) from OTable OA where OA.OrderId=O.OrderId)
GIs are unable to do subqueries, however you can create a GI from a SQL View: