Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
160 Points
434 Posts
Apr 23, 2012 12:46 PM|LINK
Table1: tbl_Partnerhirerege
seskey(PK) userdid(FK) companyname shortname
12 14 YAHOO YAH
13 15 CISCO CIS
Table2: tbl_PurchaseOrder
seskey(PK) userdid(FK) quotaion_id(fk) pono poamount upload upload_filename
1 12 40 cis001 120 <byte> profile
2 12 40 YAH001 100 <byte> profile
Table3: tbl_quotation
seskey(PK) userdid(FK) quotaion_id(fk) rate
1 12 40 1000
2 12 40 1200
Table4: tbl_quotation_master
seskey(PK) userdid(FK) quotation_date
40 12 04/23/2012
41 13 04/22/2012
Here seskey in tbl_Partnerhirerege is the foriegn key of tbl_PurchaseOrder, tbl_quotation and tbl_quotation_master.
And seskey in tbl_quotation_master is the foriegn key of tbl_PurchaseOrder and tbl_quotation
Now i should get output data based on userdid.
For example:
@company=12
Companyname QuotationID Purchaseno poamount upload upload_filename
YAHOO YAH042312 YAH001 1000 <byte> profile
Here QuotationID is shortname from tbl_Partnerhirerege + Date from tbl_quotation_master
vsp.santu
Member
160 Points
434 Posts
Re: join sp problem
Apr 23, 2012 12:46 PM|LINK
Table1: tbl_Partnerhirerege
seskey(PK) userdid(FK) companyname shortname
12 14 YAHOO YAH
13 15 CISCO CIS
Table2: tbl_PurchaseOrder
seskey(PK) userdid(FK) quotaion_id(fk) pono poamount upload upload_filename
1 12 40 cis001 120 <byte> profile
2 12 40 YAH001 100 <byte> profile
Table3: tbl_quotation
seskey(PK) userdid(FK) quotaion_id(fk) rate
1 12 40 1000
2 12 40 1200
Table4: tbl_quotation_master
seskey(PK) userdid(FK) quotation_date
40 12 04/23/2012
41 13 04/22/2012
Here seskey in tbl_Partnerhirerege is the foriegn key of tbl_PurchaseOrder, tbl_quotation and tbl_quotation_master.
And seskey in tbl_quotation_master is the foriegn key of tbl_PurchaseOrder and tbl_quotation
Now i should get output data based on userdid.
For example:
@company=12
Companyname QuotationID Purchaseno poamount upload upload_filename
YAHOO YAH042312 YAH001 1000 <byte> profile
Here QuotationID is shortname from tbl_Partnerhirerege + Date from tbl_quotation_master