Now, we shall consider few more examples, where a qualification is used to determine an identifier of a class of objects.
First, we look at a database domain, where banks host bank accounts. A conceptual schema of such domain consists of two classes of objects, bank, and account. An association, bank consists of account, links the classes of objects bank and account.
A question is, what is an identifier of a bank account ? Definitely, an account number is not an identifier because the banks do not synchronise among themselves the numbers of bank accounts. On the other hand, an account number is a local identifier within a bank. This is why we use qualification to express a fact, that an account is identified by a pair of attributes, bank name and account number.
In the next example, we consider a database domain where a university has a number of campuses, buildings are located at campuses, and rooms are located within buildings. This time we ask about the identifiers of the classes building and room. An identifier of a building is a pair of attributes campus name (cname attribute) and building number. This is because each building at a campus has a unique number. This is why a class campus is qualified with an attribute, building number.
Next, we ask about an identifier of a class room ? If each room has a unique number within a building, then a global identifier of a class room, consists of identifier of a building, and a local identifier room number. Therefore, an identifier of a class room is a triple of attributes, campus name, building number, and room number.
In the last example we look at a database domain where companies are listed on the stock exchange. An identifier of a class company is obtained from qualification of a class stock exchange and association, is listed at, with an attribute ticker symbol. It means that a company is uniquely identified by a location of the stock exchange and its ticker symbol at a stock exchange where the company is located. Note, that in this particular domain, a company can be listed on many different stock exchanges, and because of that stock exchange side of association, is listed at is one or many and entire association, is listed at, is many to many.