Art Gallery Dbms Project
Art Gallery Dbms Project
Art Gallery Dbms Project
~ DHRUV
SAHGAL
210283
CSE-2 BATCH 2021
This art gallery management system project helps the owner of the art gallery to maintain the details of
the artists, paintings, clients, orders, stock etc.
Entity Description-
Artist- This has the details of the artists.
Attributes- name, birthplace, style, age artist_id, style
Employee-this entity represents the details about the employees manages painting.
Attributes-Confirmation,Phone,Date,Price,Customer_id,Painting_id,order_id
Order-This entity has details of painting and customer who orders paintings.
Attributes- Order_id,Painting_id,Customer_id,Price,Date,Phone,Confirmation
Entity-Relationship details:
-Paintings have employees to manage them.
-Paintings have their respective stocks.
-Artists paint the painting.
-Employees manage stock of Art gallery.
-Customer places order from Art gallery.
-Customers can view the paintings.
-Paintings in stock
ER Model
SCHEMA
NORMALISATION
CUSTOMER-
FUNCTIONAL DEPENDENCY
Customer(Amount Spent,Address,Contact,Customer_id,Name)
Cust_id Liking,Total amount,Spent on gallery,Address,Contact,Cust_id,Name
Customer data is in 3NF.
ARTIST-
FUNCTIONAL DdEPENDENCY
Artist(Artist name, Artist_id, Type, Contact No. ,Email_id, style of Art)
Artist _id ,Artist name,Type, Contact No. ,Email_id, style of Art
Artist data is in 3NF.
PAINTING-
FUNCTIONAL DEPENDENCY
Painting(Price,Painting_id,Type,title,Date)
Painting_id (Painting_id,Type,Unique title,Date)
Painting data is in 3NF.
STOCK-
FUNCTIONAL DEPENDENCY
stock(stock_id,Quantity)
(Stock_id Quantity)
Stock data in 3NF.
ORDER-
FUNCTIONAL DEPENDENCY
Order (Order_id,Painting_id,Customer_id,Price,Date,Phone)
Order_id ( Order_id,Painting_id,Customer_id,Price,Date,Phone)
Order data is in 3NF.
MANAGES-
FUNCTIONAL DEPENDENCY
Manages(Painting-id,Employee_id)
(Painting-id,Employee_id)
Manages data is in 3NF.
SQL QUERIES
What are the various entities and their attributes?
Create table ARTIST(
Artist_id varchar(100) NOT NULL,
Name varchar(100),
Birthplace varchar(100),
Age varchar (100),Style varchar(100),
PRIMARY KEY (Artist_id));