我有如下数据。我想选择那些Emp_id,其中只有HR是唯一的DEPT。从下面,仅应选择 100994和100998 。
public interface ISource
{
DataTable Table { get; }
}
public class MySource : ISource
{
private DataTable table;
public DataTable Table
{
get
{
if (table == null)
{
table = new System.Data.DataTable();
table.Locale.DateTimeFormat.ShortDatePattern = Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern;
table.Locale.DateTimeFormat.LongDatePattern = Thread.CurrentThread.CurrentCulture.DateTimeFormat.LongDatePattern;
}
return table;
}
private set
{
this.table = value;
}
}
}