Advertisement
Guest User

Untitled

a guest
Sep 5th, 2015
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. GRNV-1415-RESH-132
  2. GRNV-1415-RESH-13
  3. GRNV-1417-RESH-2
  4. GRNV-1415-RESH-8
  5. GRNV-1416-RESH-12
  6. GRNV-1411-RESH-1
  7. GRNV-1415-RESH-13
  8. GRNV-1415-RESH-99
  9.  
  10. select GRN id,GRN data1 from tbl_receipt
  11. where Active=1
  12. and ArticleContrasted=1
  13. and LocationID=41
  14. order by LEFT(GRN,PATINDEX('%[a-zA-Z0-9]%',GRN)-1) asc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement