Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Inventory db query

    Hi

    I have to keep a running total of parts on hand (widgets) before ordering from
    the wholesaler, then do another query if all are sold out on that day (just in
    time delivery). The inventory column would be the maximum in stock that day,
    and the sales would represent how many sold today.

    Can anyone advise how to subtract the sales table (part) from the widgets
    table (part). The part numbers will also be different from the example I have
    given and could be something like XA-44, B2533 etc, depending on suppliers
    (widgets) table.

    Thanks

    Widgets table

    Part Inventory Description

    A1 3 copper
    A2 5 zinc
    A2 7 gold


    Sales table

    Part Date Sold CustomerID

    A2 11-Jul-05 41444
    A3 11-Jul-05 53453
    A1 11-Jul-05 82546
    A1 19-Jul-05 21355

    DuLaus Guest

  2. Similar Questions and Discussions

    1. Inventory location question
      Im setting up a db for business software for a Audio video company. I have about 3000 items in inventory, and there are currenlty about a dozen...
    2. Inventory Tracker
      Hi First thanks for your help Here's my problem I want to ouput a title (model number) with a table under wich will contain the dealers who...
    3. Displaying Inventory
      I have a database containing over 700 items. I can display the data based on catagory such as bronze, ivory, paintings, etc.. I was wondering if...
    4. Inventory list
      Howdy folks. How to manage an inventory list with two records that have the same catalogue number? There's a inventory file with following...
    5. Inventory Databases
      I am wondering what advice people have about the following: Our company needs to keep track of purchased inventory (when purchased, how much,...
  3. #2

    Default Re: Inventory db query

    Hi

    Would maintaining an running inventory be better with using numbers for
    comparison in these tables. What I was thinking of was having another column in
    the sales table (sold) and sold being equal to 1. This would be inserted at
    time of order in the sales table (sold) column.

    Thanks



    DuLaus Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139