Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Habalabam

    SQL Query finding next unused number in a property.

    Oh, there is one not-so-small problem: I would like the SQL statement to handle this: "Category" = 3 "MinimumNo" = 4 should return 4 If the only record in the table MyUnit -UnitNo = 12 -CategoryNo = 3 Maybe I can check Table MyUnit for a record with UnitNo that equals @MinimumNo-1, and if...
  2. Habalabam

    SQL Query finding next unused number in a property.

    Thank you very much! So simple...
  3. Habalabam

    SQL Query finding next unused number in a property.

    This is a bit of an SQL nut (at least to me). I want to find the SQL statement that gets the next unused number within that category. Simplified Table: Table name: MyUnit. Attributes: -UnitNo -CategoryNo Let's assume the statement SELECT UnitNo FROM MyUnit WHERE (CategoryNo=@Category)...
  4. Habalabam

    Locate next available number.

    Hi, I want to find the SQL statement that gets the next unused number within that category. Simplified Table: Table name: MyUnit. Attributes: -UnitNo -CategoryNo Let's assume the statement SELECT UnitNo FROM MyUnit WHERE (CategoryNo=@Category) returns the set {1,2,3,4,5,7,8,10,11,12} if...

Part and Inventory Search

Back
Top