lacampeona
Registered User.
- Local time
- Today, 02:08
- Joined
- Dec 28, 2015
- Messages
- 392
Hi
thank to all for all the information.
thank to all for all the information.
I think you might want to explore General-Special Extended Entity Relational design. Here's a simple, simplified example of what I understand you're trying to do. EER is worth exploring in my opinion - it surely makes for an elegant design and solves a lot of complex coding to control data entry - but be sure to understand how views on the tables make it work - views typically join the General and Special tables to get both the general and special attributes that apply to the special table - your Books, Medicines, Cars etc.Hello experts,
Ok so now I have one big table for all items.
I am "stuck" with statuses. StatusItem.
I have 4 diferent items and of course these items can have very different statuses.
I think if I just say StatusItem, that is ok?
and then I put inside tblStatusItems: StatusID (PK), typeID (FK), , StatusName
typeID1 is Book
typeID2 is Medicine...
how would you make that?
Thanks
HiHello experts,
Ok so now I have one big table for all items.
I am "stuck" with statuses. StatusItem.
I have 4 diferent items and of course these items can have very different statuses.
I think if I just say StatusItem, that is ok?
and then I put inside tblStatusItems: StatusID (PK), typeID (FK), , StatusName
typeID1 is Book
typeID2 is Medicine...
how would you make that?
Thanks
Ok I never do that. Ok I will study also that to see how that work.think you might want to explore General-Special Extended Entity Relational design.
Yes I am now resarching the database, and yes is good starting pointThe recommendation to study NORTHWIND is a very good one. MS seems to think Northwind is old fashioned, but I still think it's a great starting point.
What did you expect? Can you be more specific on what you want as output?What I am doing wrong?
You are very unhelpfully cutting off the names of the tables in the pics.Hello experts,
I need somebody to check what I am doing wrong. I am crazy. I look relationship in another tables and I understand it. I see so many examples and suggestions and I say yes yes I understand that. I check the tables which I see in another databases and they are correct and relationship is correct.
Then I say ok lets go now I will do that in my database. I make relationship and I check the tables and the relationship and the data in the table is not correct. Only one table show correct.
I am really really stupid.
What I am doing wrong? Like I say in posts before I have 4 different type of items. Now I am here only showing one type of items. I want first to understand that situation and then I will make also for the another 3 type of items.
Ok so This is my idea how the relationship is :
StatusPredmetaID= Status of the item ( 1avaliable, 2in use, 3relaesed
OddelekID=Departments ( I have different departments)
SistemPredmetaID= item system,, here are only 3 systems...Empower, Chromeleon, Chemstatoion
Here I have to say that only SistemPredmetaID is showing correct in the table...everything else is not ok
View attachment 109131
View attachment 109133
View attachment 109134
View attachment 109135
View attachment 109136
What I am doing wrong?
Thanks in advance
This doesn't make it any clearer. Why would you have principal information outside of the main table? Now if what you meant is unique information/attributes about the item that are not held by any other item is in the second table, then that makes more sense.well first table on the left. This is the main table for the items named Colons. tblKolone2. here are princpial information about the items.
But you have two status fields? Unless we are talking about more than one item, there isn't a good reason to have two different status's that I can see. It just doesn't make any sense. You have one item, and that item has one status at any given time. The only reason for duplication is for historical tracking of status changes into one big history table. But that should not require user intervention at all.For example these field are urgent: becouse here i am using signature ( signof form, which analyst confirm that all the data he entered is correct, analyst must signed and approver must signed )
![]()
then another fields that maybe are the same is that every time who used the item must enter from wich department is, what is the status of the item when he make analysis and what system he used.
This requirement seems to suggest the use of a history of status changes and approvals. It requires that the user must update the status when they have returned/checked out the equipment/instrument after using it. It also reflects the data you are showing above about the user and status. The only concern is the approval process. If someone returns or checks out an item, does that user first have to request this from an approved user (the one who approves things)? If there is a gap in time or date when this happens, then wouldn't you want separate transactions to be recorded? Right now you have one record with the two different times and dates. It would help if you clarify the exact timing of the process of checking out one item and getting it approved, and finally getting the item transferred to the user and department that is doing the analysis.Now here is important now 3 things:
We have to track correctly where the item is now -where analysis is done which department make the analysis, becouse items are like book it can be borrowed with different departments and after every use they can have different status we have to know correctly what is the status of the item ( if is in use if is relased if is destroyed) and what sistem was used for the item.
These mean that my codes in the events on the form must correcty update the statuses, department and the system.
If all that is correct the user will exatly know who has the item, what is the status of the item, and for which system is the item.
The goal is that users will know in 5 second where the desired item is. Now they are having all that in paper and they are looking for items and waste time to find who exatly have the item.