title: SQL Server 2008 R2 Create index
body: <p>Now I am looking for your help to create index on these.</p>
  
  <p>Now this is my table structure</p>
  
  <p><img src="https://i.stack.imgur.com/fAS89.png" alt="table description screen cap"></p>
  
  <p>This the query I need index for maximum performance.</p>
  
  <pre><code>select PageId 
      from tblPages 
      where UrlChecksumCode = @UrlChecksumCode 
          and PageUrl = @PageUrl
  </code></pre>
  
  <p>Now I am very bad with indexes. I plan like that when the query is executing it will find first that <code>UrlChecksumCode</code> rows then look pageurl columns. If you also explain me why to make such index I really appreciate that. Thank you.</p>