GithubHelp home page GithubHelp logo

abhi-37 / unified-water-supply-board Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 9 KB

This SQL script creates the database schema for the Unified Water Supply Board, including tables for customers, accounts, billing, meters, meter readings, tariffs, water supply boards, payments, invoices, and feedback. It also inserts sample data and provides example queries to retrieve various statistics and reports from the database.

database-management-system schema sql

unified-water-supply-board's Introduction

UnifiedWaterSupplyBoard

This SQL script creates the database schema for the Unified Water Supply Board, including tables for customers, accounts, billing, meters, meter readings, tariffs, water supply boards, payments, invoices, and feedback. It also inserts sample data and provides example queries to retrieve various statistics and reports from the database.

Unified Water Supply Billing System for Karnataka

Introduction

This project aims to create a unified water supply billing system for Karnataka. The database schema is designed to manage customer information, billing, meter readings, payments, feedback, and other relevant data related to water supply management.

Database Schema

The database schema consists of the following tables:

  • Customers: Stores customer information such as name, address, and contact number.
  • Watersupply_board: Contains information about water supply boards, including board name and location.
  • Tariffs: Defines different tariff types for water supply.
  • Account: Links customers with water supply boards and tariffs, along with account details.
  • Billing: Records billing information such as billing date and total amount.
  • Meters: Manages meter details including installation date and meter number.
  • Meter_Reading: Stores meter reading data including reading date and units consumed.
  • Payments: Tracks payments made by customers including payment date, amount, and payment mode.
  • Invoice: Records invoice details linked to billing information.
  • Feedback: Stores customer feedback including feedback text and date.

Queries

The database supports various queries to extract useful information for water supply management:

  1. Average energy consumption: Calculates the average units consumed across all meter readings.
  2. Number of customers by connection type: Counts the number of customers grouped by their connection type (e.g., residential, commercial, industrial).
  3. Total revenue for August 2023: Calculates the total revenue generated from billing in August 2023.
  4. Total revenue by water supply board: Calculates the total revenue generated from billing for each water supply board.
  5. Average satisfaction by water supply board: Calculates the average satisfaction rating provided by customers for each water supply board.
  6. Average consumption by tariff type: Calculates the average units consumed grouped by tariff type.
  7. Total due and total paid by account: Calculates the total due and total paid for each customer account.
  8. Number of customers by tariff type: Counts the number of customers grouped by tariff type.
  9. Number of customers by water supply board: Counts the number of customers linked to each water supply board.
  10. Total payments by payment mode: Calculates the total payments made grouped by payment mode.
  11. Average consumption per meter for August 2023: Calculates the average units consumed per meter for August 2023.
  12. Top 5 customers by total amount paid: Lists the top 5 customers based on the total amount they have paid.

unified-water-supply-board's People

Contributors

abhi-37 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.