Quantcast
Viewing all articles
Browse latest Browse all 64797

SQL Server WHERE clause wildcards

By Steve Endow This morning I was working on a SQL query used to create to create new Dynamics GP customer IDs. The customer IDs are created by using the first 6 characters of the customer name, followed by 3 numbers. For example: ACMETO001 - Acme Tools ACMETO002 - Acme Tooling, Inc. To query these customer IDs, I was using this query: SELECT CUSTNMBR FROM RM00101 WHERE CUSTNMBR LIKE 'ACMETO%' In this example, the query would return two records, so I knew that the next customer ID needed...(read more)Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 64797

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>