You are on page 1of 4

Part 1:Conceptual business model.

Construct a conceptual business model for an


industry or business that you are familiar with or have interest in. Visually it
should be similar to the one we illustrated in Module 1, Video 2.
RESPONSE :SMART ANALYTICS OF ELECTRICITY BILLING SYSTEM

Business Model Ideas


1. Data Analytics of usage patterns based on household income
2. Data Analytics of usage patterns based on Educational Qualification
of users
3. Analysis of user details
4. Feeding the system with electricity usage
5. Feeding usage details into respective users account.
6. Calculation of the electricity bill for
7. Information updating into accounts every month
8. Add and maintain records of power used by consumers
9. Provides a convenient solution of billing pattern.
10.Add and maintain consumer details.
11.Provide description of tariffs and rates of units.

Part 2: Relational data model. Take a subset of the ideas from the conceptual
model you constructed in Part 1 and design a simple relationship model similar to
the ones we discussed in Module 2, Video 4

RESPONSE :ER Diagram


FIELDS TYPE SIZE DESCRIPTION CONSTRAINTS
pid int 20 Phase id Primary key
(Natural )
pname varchar 20 Phase name Nil
pdetails varchar 20 Phase Nil
pcharge varchar 20 Phase charge Nil
TABLE: Phase

FIELD TYPE SIZE DESCRIPTION CONSTRAINTS


Cid int 20 customer id Primary
key(Surrogate)
tariffid int 20 Tariff id Foreign key
consumerno int 50 Consumer number of Nil
customer
Cname varchar 20 Name of the Nil
customer
Csex varchar 20 Sex of customer Nil
Caddress varchar 50 Address of customer Nil
CQuali varchar 50 Education Nil
Qualification
Cphno int 20 Phone no.of Nil
customer
Deposit int 20 deposit Nil
fixedcharge int 20 fixedcharge Nil
meterrent int 20 meterrent Nil
Cpword varchar 50 Password of Nil
customer
TABLE : CUSTOMER
FIELDS TYPE SIZE DESCRIPTION CONSTRAINTS
Ctypeid int 20 Consumer type id Primary
key(Surrogate)
ctypename varchar 20 Customer type name Nil
ctypedetails varchar 20 Customer type details Nil
TABLE :CUSTOMER_TYPE

FIELDS TYPE SIZE DESCRIPTION CONSTRAINTS


secid int 20 Section id Primary key
(Surrogate)
secname varchar 20 Section name Nil
sechead varchar 20 Section head Nil
TABLE :SECTION

FIELD TYPE SIZE DESCRIPTION CONSTRAINTS


tid int 20 Tariff id Primary
key(Surrogate)
pid int 20 Phase id Foreign key
typeid int 20 Consumer type id Foreign key
min int 20 Minimum meter Nil
range
max int 20 Maximum meter Nil
range
tcharge int 20 Tariff charge Nil
TABLE : TARIFF

FIELD TYPE SIZE DESCRIPTION CONSTRAINTS


billno int 20 Bill no Primary key
(Natural)
Cid int 20 Consumer id Foreign key
Prs_date varchar 50 Present reading date Nil
currentreading int 20 Current reading Nil
prevreading int 20 Previous reading Nil
consumption int 20 consumption Nil
average int 20 average Nil
surcharge int 20 surcharge Nil
payable int 20 payable Nil
billdate varchar 20 Bill date Nil
duedate varchar 20 Due date Nil
discondate Varchar 20 Disconnection date Nil
paid boolean 20 paid Nil
paiddate varchar 20 Paid date Nil
TABLE: BILL
FIELD TYPE SIZE DESCRIPTION CONSTRAINTS
eid int 30 Employee id Primary key
(Natural)
esectionid varchar 30 Section id Foreign key
ename varchar 50 Name of empoyee Nil
eage int 30 Age of employee nil
Esex varchar 20 Sex of employee Nil
eaddress varchar 50 Address of employee Nil
ephno Int 30 Phone no.of Nil
employee
pword Varchar 30 password Nil
TABLE : EMPLOYEE

Part 3: SQL queries. Using the data model you constructed in Part 2, come up with
two data extracts you think would be interesting, then write SQL queries to provide
each one.
RESPONSE :
1. List name and qualifications of male users with usage more than 200 units
SELECT a.Cname ,a.CQual, b.consumption
FROM Customer a, BILL b
INNER JOIN BILL
ON a.Cid=b.Cid
WHERE b.consumption>200
AND cSex="male";
2. Insert details into employee table

Insert into employee (ename,eage,esex,eaddress,ephno,upass) values


('$name','$age','$sex','$address','$phone','$password')
Part 4:Sensitive data and data quality issues. Consider the data privacy and data
quality implications of the data model you constructed in Part 2.
RESPONSE :
PII – User table, Employee Table
CFI – Bill Details
What data elements in your model will present the most significant data quality
challenges? Explain your reasoning.
The usage pattern and their payment details in the model would present the most
significant data quality challenges.

You might also like