am doing the following in the MyCommand but i dont no if that is the correct component to use?
Code: Select all
Command.SQL.Text := ('select count(*) as room_count from groups left join rooms on groups.n = rooms.id where groups.n = ' + IntToStr(r));
Command.Execute;
thanks