Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Fee Management System for School

$
0
0

hello ,

i need to design a database for the fee management for school. which any student  can pay at any time i mean he can pay amount as monthly basis or annually. here there will be fee structure for each class depending on fee structure the student can pay the amount.

here i have designed the two table one for Fee structure and one forFeepayment

FeeStructure:

CREATE TABLE [dbo].[student_fee_structure](
[fee_structure_id] [bigint] IDENTITY(1,1) NOT NULL,
[Class_id] [int] NOT NULL,
[fee_name] [varchar](50) NOT NULL,
[fee_collection_type] [varchar](50) NOT NULL,
[fee_amount] [money] NOT NULL,
[fee_discount] [money] NOT NULL,
[fee_description] [varchar](50) NOT NULL,
[academic_year] [varchar](50) NOT NULL,
[medium] [varchar](50) NOT NULL,
[fee_total_amount] [money] NOT NULL,
[last_day_pay] [varchar](50) NOT NULL,
[fine_amount_per_day] [varchar](50) NOT NULL,
[status] [varchar](50) NULL



FeePayment:

CREATE TABLE [dbo].[Student_fee_payment](
[fee_payment_id] [bigint] IDENTITY(1,1) NOT NULL,
[student_id] [bigint] NOT NULL,
[total_amount] [money] NOT NULL,
[discount] [money] NOT NULL,
[paid_amount] [money] NOT NULL,
[due_amount] [money] NOT NULL

here in feepayment all student payment details will be stored here. .wherever student pays the amount we need to reduce the amount from the total amount  and need to show it as due amount.when the same student comes to pay the fee Total amount for next time should show the last time due amount  to be paid by the student.

I am new to the Sql server doe i am in a write way for designing the Database.any suggestions will be appreciated .

Thanks In Advance



Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>