Código Delphi [-] q.Active := false; q.SQL.Text := 'select * from tabla where ventas = (select max(ventas) as maxim from tabla) q.Active := true;
q.Active := false; q.SQL.Text := 'select * from tabla where ventas = (select max(ventas) as maxim from tabla) q.Active := true;