Hi I am working on a video rental shop database. In my shop I will maintain only 1 stock each but with different formats like DVD,VHS and Blueray. Now Can someone please suggest about how to write a query on remaining stock? Thank you.
Hi I am working on a video rental shop database. In my shop I will maintain only 1 stock each but with different formats like DVD,VHS and Blueray. Now Can someone please suggest about how to write a query on remaining stock? Thank you.
As Mihail pointed out, more needs to be known about the database. Based on only having one copy based on format type, you can have a logical field for "checked-out". You would not need to compute the stock-on-hand.
Of course the downside to that approach is that if you get more than one copy based on the same format type, the approach mentioned above would not work without further modification.