Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Differentiating between Characters and Numbers

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-01-18 : 18:18:39
Jason Beck writes "In a certain product database, SKUs of products listed by individual price start with a letter, while SKUs of products listed by case price start with a number. If the product is listed by individual price, I use a field ("list_price") to determine the price of an individual piece. If the product is listed by case price, I use a different field ("low_price") and the number of items in a case ("outerpack") to determine case price. Unfortunately, I don't have control over the design of the database, so in each query, I have to decide whether to use low_price or list_price, and in most cases, they both have a value, but the only valid value is the one following the rule I explained above. All I really need to know is a way to find out if SKU begins with a letter or a number, but I don't know of a way to do that in SQL."
   

- Advertisement -