I am trying an inner join like this.
select R.ReservationID, R.BookingNumber,P.FirstName, P.LastName
from Reservation R inner join PersonName P
on Reservation.ReservationID = PersonName.ResrvationID
I am getting the errors as:
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "Reservation.ReservationID" could not be bound.
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "PersonName.ResrvationID" could not be bound.