Solved

database er diagram  desgin user credit equal 0 after expiry date

Posted on 2012-12-24
2
488 Views
Last Modified: 2013-01-09
i have a table user contain member details  and each member have a credit
this credit  has a expiration date can anyone help me or give me an idea how i can implement the ER diagram

the credit maybe will be for two or three month  and some user don't have expiration date for him credits

if any exerts can help me on desgin or ..

create table usres
field : userid p.k , username , password

create table usercredits
field creditid , userid , fromdate , todate , creditnumber,status

where todate is expirydate..
fromdate todate maybe it will be for one month or ...

i can run a trigger on the table usercredit to check if getdate > todate status is expired
than he can user the available credits.

hope anyone can help me in implementation :)
0
Comment
Question by:afifosh
2 Comments
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 500 total points
ID: 38718077
0
 
LVL 1

Author Comment

by:afifosh
ID: 38718080
i don't want a program to design .. i want someone can help me or give idea how to design the ER diagram of my request...

i can do this using phpmyadmin or using mssql for design ..
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now