I have 3 columns in Database tables. Id Operator , o.Id Country
select [o.Id Operator] as OperatorID,[o.Id Country] as countryid
from
customersubscription cs inner join club cl on (cs.idclub = cl.idclub)
inner join customer cu on (cs.idcustomer = cu.idcustomer)
inner join operator o on (cu.idoperator = o.idoperator)
left outer join promoter p on (cs.idpromoter = p.id )
where
cl.idproject in (3,19,23,24,27)
The two columns in the select sections have spaces in them. I used [ ]
and tried as mentioned in the question here but didnt work.