Select * from (SELECT [Uid],[sourceid],[postcode],[latitude],[longitude],[propertyType],[beds],[displayAddress],[current_price],[current_status],[sale_or_rental],[District] FROM [DATA_EXPORT].[dbo].[RM_REPORT_TODAY] where sale_or_rental=1 union all SELECT [Uid],[sourceid],[postcode],[latitude],[longitude],[property_type],[beds],[displayAddress],[price] as current_price,[listing_status] as current_status ,[sale_or_rental],[District] FROM [DATA_EXPORT].[dbo].[Z_REPORT_TODAY] where sale_or_rental=1) t1 where postcode='TN37 7HS'
TN37 7HS - 335,000
- Detached Bungalow
- Right Move
TN37 7HS - 375,000
- Detached Bungalow
- Right Move
TN37 7HS - 315,000
- Semi-Detached Bungalow
- Right Move
TN37 7HS - 335,000
- detached_bungalow
- Zoopla
TN37 7HS - 315,000
- semi_detached_bungalow
- Zoopla
TN37 7HS - 375,000
- detached_bungalow
- Zoopla