Question : how do I select a list of records that exist multiple times only once in a table

say for example I have the following records

name         site

abe                     Texas
abe                     Texas
dan                      D.C.
dan                      D.C.
dan                      D.C
uke                      Florida

I would like the query to return

abe                       Texas
dan                        D.C.
uke                        Florida

What query would give me the results that I want?

Answer : how do I select a list of records that exist multiple times only once in a table

got it:

in the hidden depths of the protected painters:

type
  TmagiccxPCStandardPainter = class(TcxPCStandardPainter) end;

procedure TfrmSumGraphs.pcSUMDatabasesMouseDown(Sender: TObject;
  Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
var
  n: Integer;
  tab: tcxTabSheet;
  R: TRect;
  pt: TPoint;
begin
  n := pcSUMDatabases.IndexOfTabAt(X, Y);
  if (n <> -1) then
  begin
    tab := pcSUMDatabases.Pages[n];
    TmagiccxPCStandardPainter(pcSUMDatabases.Painter).StandardPainterPrepareOutTabImageAndTextData(tab.TabIndex);
    R := TmagiccxPCStandardPainter(pcSUMDatabases.Painter).FOutTabImageAndTextData.TabImageRect;
    if PtInRect(R, Point(X, Y)) then ShowMessage('It''s on the image !!!!');
  end;
end;
Random Solutions  
 
programming4us programming4us