TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Akhter HUssain
720
1.3k
102.3k
select query with two foreign Key require
Feb 3 2020 8:57 PM
i have data below ,i need select query to fetch record from table like below my
Ooutput
Patient
Group
Donor
Group
Akhter
A
Hussain
B
CREATE
TABLE
#
Group
(BID
INT
,BName
VARCHAR
(50))
CREATE
TABLE
#Patient(PID
INT
,PName
VARCHAR
(50),BID
int
)
CREATE
TABLE
#Donor(DID
INT
,DName
VARCHAR
(50),BID
int
)
CREATE
TABLE
#CrossMatch(CID
INT
,PID
int
,DID
int
)
INSERT
INTO
#
Group
VALUES
(1,
'A'
)
INSERT
INTO
#
Group
VALUES
(2,
'B'
)
INSERT
INTO
#Patient
VALUES
(1,
'Akhter'
,
'1'
)
INSERT
INTO
#Donor
VALUES
(1,
'Hussain'
,
'2'
)
Reply
Answers (
2
)
Require Select query ?
Two Foreign key in one table?