Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. CREATE INDEX customermonth ON customers(month(dob));
  2.  
  3. ALTER TABLE customers ADD MonthOfBirth AS MONTH(dob) PERSISTED;
  4. CREATE INDEX customermonth ON customers (MonthOfBirth);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement