I have two tables
Property
and Photo
Photo
table has PropertyId
FK column which assigning to Property table.
I have stored procedure which returns data from property table, now I want to modify this st. procedure to return photos data together with property data in a single st. procedure query. How to do this?
CREATE PROCEDURE GetAllData
AS
SELECT *
FROM dbo.Property
GO