I am working on an app that looks at data from our warehouse locaton database. The DB stores location information as a series of alphanumeric strings in the format of RACK_ID & BIN_ID.
For instance, TT0, HHH8, N2, etc. So far, so simple.
However, I need to create some reports that print specific racks. "Show me all bins in rack TT" This seems easy, but there is also a rack TTT, and the equivalent problem occurs with most of our locations. (Rack A, AA, AAA, AAAA, etc)
This means the simple approach of using "TT*" as the query expression invalid, becasue it will show me TT1 as well as TTT1.
I could hardcode in every location, but I think that's a pretty bad way to go about it, especially since it's very likely that we may rework our rack naming scheme at some point.
So, does anyone know what sort of wildcard setup I need to use to pull only TT records, but NOT TTT records?
Thanks in advance for any suggestions!
Brooks Tilson
Database Development
Tilson Machine, Inc.
For instance, TT0, HHH8, N2, etc. So far, so simple.
However, I need to create some reports that print specific racks. "Show me all bins in rack TT" This seems easy, but there is also a rack TTT, and the equivalent problem occurs with most of our locations. (Rack A, AA, AAA, AAAA, etc)
This means the simple approach of using "TT*" as the query expression invalid, becasue it will show me TT1 as well as TTT1.
I could hardcode in every location, but I think that's a pretty bad way to go about it, especially since it's very likely that we may rework our rack naming scheme at some point.
So, does anyone know what sort of wildcard setup I need to use to pull only TT records, but NOT TTT records?
Thanks in advance for any suggestions!
Brooks Tilson
Database Development
Tilson Machine, Inc.