?
Solved

database er diagram  desgin user credit equal 0 after expiry date

Posted on 2012-12-24
2
Medium Priority
?
504 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

719 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