According to the problem in UK, the people are not spending money on music so the
music companies had been many layoffs, so two major music seller companies have decided
to do their business together, but they have said that company business should run in the old
system mechanism but the management want run as a single business. For that we have
collected the databases of two companies and using integration we are making together but
unfortunately the MSQ- music quality runs in SQL database and ODB-O’REALLY dubbed
runs in oracle db. Now my aim is to design and implement the global conceptual schema for
the companies.
Schema 2: ODB
Stock (store id, product id, quantity, discount)
Product (product id, Title, artist, publisher, isbn, reg price)
Transaction Detail (order id, product id, sale price)
Transaction (order id, customer id, total, transaction date)
Customer (customer id, first name, last name, address, region, city, postal Code, Email)
These are the two schemas which are derived from the two company msq and odb.
In msq schema there are four entities where each entity has an different attribute when we
take an entity of an user the attributes are user id, user name, real name, password, house no,
address, postcode where these are the attributes which specifies the field user but in common
which these are the details which gives the customer details. Where as in the order it consists
of following entities order id, date, user id, total cost. Where this detail specifies the customer
who places an order for the music and sometimes this field can be null because some
customer can place a order or some may not place the order. For the entity product it consists
of product id, title, artist, publisher and ISBN, This field gives the detail what kind of music
product does the customer has been purchased. The entity order detail has an attribute produc
t id, order id, price, this gives the company order details of individuals and how much are to
be placed for the company.
In odb schema there are five entities where the entities are stock, product, transaction,
transaction detail, and customer. Which each and every entity has a different attributes for the
entity stock the attributes are store id, product id, quantity, discount. For an entity product the
attributes are id, Title, artist, publisher, isbn, reg price. For the entity transaction detail the
attributes are order id, product id, sale price. For an entity transaction the attributes are order
id, customer id, total, transaction date. And for the customer entity the attributes are customer
id, first name, last name, address, region, city, postal code, Email. In company details of
availability of stock are given by a stock entity. Product entity tells the details of product for
sales in the company which gives you the details of price and other product details.
Transaction detail gives the information of product id, order id, sale price where this is the
detail which a customer buys a product the information gets stored in the transaction detail
entity. Customer entity gives the details of a customer the information are regarding personal
information and customer id.
Global conceptual schema for two entities in databases of MSQ and ODB
Client
Schema 1 - User (user id, user name, real name, password, house no, address, postcode)
Schema 2 - Customer (customer id, first name, last name, address, region, city, postal Code,
Email)
• Synonyms
• Homonyms
Where in schema 1 user id and schema 2 customer id are synonyms which they give same
information but their field names are different so we can combinable as an client id. Similarly
in schema 1 and schema 2 address, postcode, names are similar to a customer id and user id
they are said to be synonyms.
Sale
Where in the entity sale the attributes are order id, client id, total cost, orders date. Where
order id is the same in both the schemas which gives the same information. Where in the
attributes user id and customer id in schemas 1 and 2 respectively which they are near
synonyms but they are foreign keys and together they are called as client id attribute. Total
cost and total are attributes of schemas order and transaction respectively they are a synonym
which gives the detail information of total cost of a product. The attributes date and
transaction date are the homonyms Schema 1 Date are the date when the order is placed and
schema 2 transaction date is the date when the transaction has taken place. Where both give
the different information but they are in same name and it together it is said to be order date.
Sale details
Where sale details are obtained by union of two schemas order detail and transaction detail.
Where product id and order id of schemas 1 and 2 are similar and gives same information.
But price and sale price are called as synonyms where it merely gives the same information
but it has different name.
Product
The product is obtained from the union of product of two schemas MSQ and ODB.
Schema 1: Product (product id, title, artist, publisher, isbn)
Schema 2: Product (product id, Title, artist, publisher, isbn, reg price)
Where in the above schema product id, title, artist are same and gives the same information
where as the ISBN also gives the same information but it is not important that what
information is stored in it where the field name is same and type is same so information is not
important whether it may contain same or different data.
Stock
Schema 1: null
Stock
Product
Client
Sale
Client (client id, client name, client address, password, region, city, postcode, email)
Sale (order id, client id, total cost, order date)
Sale details (product id, order id, total price)
Product (product id, title, artist, publisher, ISBN, reg price)
Stock (store id, product id, quantity, discount)
Order id
Client name
Order date
Postcode
Total cost
Client address Email Client id
Client id Stock
Region Reg price
Password
Product id
ISBN
Product
Title
Publisher
Artist