• Shadab Shah (11/18/2013)


    Hi Experts,

    On which column should one create index if no WHERE clause is specified.

    example

    Select * from table_name

    No identity column is present on the table(because none is needed 🙂 ). I search this on major forum but i guess i may have got my keywords incorrect.

    Your example query is asking for ALL the columns and ALL the rows in your table. The only possible way to satisfy this query is to read ALL the pages. An index would not help you here.

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]