A PL-SQL Project based on super shop
- Customer buys product, local store sells product, and therefore transaction happens.
- Customer can be approved for membership.
- Customer can search item for information and reliability.
- Warehouse has product inventory.
- Warehouse can distribute products to local store.
- There is monthly, weekly and daily sales report.
- Customer can search in different stores for product availability.
- Customer can see top selling products of specific category
-
Programming Language : PL-SQL
-
Database: Oracle SQL
- Branch(branch_ID, Location, Phone)
- Category(C_ID, C_Name)
- Membership(M_ID, P_Range_From, P_Range_To, Discount_Rate, Type)
- Product(P_ID, Selling_Price, P_Name, C_ID)
- Customer(C_ID, C_Name, Email, M_ID)
- Transaction(T_ID, Cust_ID, Branch_ID, Total_Price, T_Date)
- goes_in(P_ID, T_ID, Quantity)
- occurs_in(Branch_ID, T_ID)
- proceed(T_ID,C_ID)
- stores_in(P_ID, P_Quantity, Branch_ID)
- warehouse(S_ID, S_Date, P_ID, P_Quantity, Buying_Price)
- Sales(Serial_no, Month, Sales)
- Branch1 = PJbranch_ID,Location,PhoneSLLocation=’Dhanmondi’Branch
- Branch2 = PJbranch_ID,Location,PhoneSLLocation=’Mohammadpur’Branch
- Stores_in1 = PJP_ID, P_Quantity, Branch_IDSLBranch_ID = 1 stores_in
- Stores_in2 = PJP_ID, P_Quantity, Branch_IDSLBranch_ID = 2 stores_in
- Transaction1 = PJT_ID,Cust_ID,Branch_ID,Total_Price,T_DateSLBranch_ID = 1 Transaction
- Transaction2 = PJT_ID,Cust_ID,Branch_ID,Total_Price,T_DateSLBranch_ID = 2 Transaction
- Branch1 @ site1, Stores_in1 @ site1, Transaction1 @ site1
- Branch2 @ site2, Stores_in2 @ site2, Transaction2 @ site2
In procedure 6, we used a machine learning technique called linear regression to predict the sales outcome for any month. Our dataset includes 2 columns (Month = x, Sales = y). So for month, x = 1, 2…12 we inserted sales value y. Then we calculated values by using the regression formula for a and b. Then for any month, x = 1 = January we calculated y = a + bx and found the predicted score.
Output of forecasted sale of month 1 = January
- Oracle Database 10g
- Distributed Databases - Principles and Systems (Stefano Ceri)