Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 relationship

Author  Topic 

programer
Posting Yak Master

221 Posts

Posted - 2011-12-29 : 03:28:57
Hello,

I have three tables

tbl_PaymentType:
ID, UserId,...

tbl_PaymentDetails:
ID, PaymentTypeId, ...

tbl_transactions
ID, Amount,etc...

Now i created table tbl_depositwithdrawal for relationship table tbl_PaymentType.ID and tbl_transaction.ID .

With this link to the transactions table and the table for the payment method.

The table tbl_depositwithdrawal create a new column "IsWithdrawal" or for withdrawal i create new table tbl_withdrawal ?

Like this:
ID int Unchecked primarykey
PaymentTypeID int Checked
TransactionID int Checked
IsWithdrawal bit Checked
Pending bit Checked



Regards,




X002548
Not Just a Number

15586 Posts

Posted - 2011-12-29 : 09:24:00
is there a question in here?

Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page
   

- Advertisement -