I have a table Invoice
which has fields
InvoiceNo
Invoice_amount
Invoice_Date
Exchange_Rate
and second table is Receipt
which has fields
ReceiptNo
ReceiptAmount
Receipt_Date
InvoiceNo
InvoiceDate
Exchange_Rate
Now What I need to do, here suppose i created a Invoice table
Java
create table Invoice ( InvoiceNo varchar(15) not null, InvoiceAmount money not null, invoiceDate date not null, ExchangeRate Money not null, constraint pk_invoice primary key(InvoiceNo), constraint uk_inv unique (InvoiceNo, InvoiceAmount) )I am just trying to create two tables Invoice and Receipt
I have created Invoice table but On receipt table I need references on
InvoiceNo, InvoiceDate so how I can give references when we need to give references on multiple columns.
please help me
i need help for how I can give foreign key references on multiple column
I have created Invoice table but On receipt table I need references on
InvoiceNo, InvoiceDate so how I can give references when we need to give references on multiple columns.
please help me
i need help for how I can give foreign key references on multiple column


Nitin SontakkeRank #264 · 9.6K reputationPosted Jul 11, 2016, 8:58 PM EDT
Gagan Gautam152 reputationPosted Jul 11, 2016, 3:37 AM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Jul 11, 2016, 3:38 AM EDT
Mohan Chandra92 reputationPosted Jul 11, 2016, 3:42 AM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Jul 11, 2016, 8:05 PM EDT
Mohan Chandra92 reputationPosted Jul 11, 2016, 8:10 PM EDT
Mohan Chandra92 reputationPosted Jul 11, 2016, 10:08 PM EDT