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
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 SontakkePosted Jul 12, 2016, 12:58 AM
Mohan ChandraPosted Jul 12, 2016, 2:08 AM
Mohan ChandraPosted Jul 12, 2016, 12:10 AM
Nitin SontakkePosted Jul 12, 2016, 12:05 AM
Mohan ChandraPosted Jul 11, 2016, 7:42 AM
Nitin SontakkePosted Jul 11, 2016, 7:38 AM
Gagan GautamPosted Jul 11, 2016, 7:37 AM