Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

database er diagram  desgin user credit equal 0 after expiry date

Posted on 2012-12-24
2
Medium Priority
?
505 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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

824 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