I have the following list into C#:
table_schema | table_name | field_name | field_type
public tableA fieldA character varying
public tableA fieldB timestamp
public tableA fieldC bytea
public tableB fieldA character varying
public tableB fieldD integer
other tableC fieldA character varying
other tableC fieldE integer
So the field with name fieldA and type character varying exists to all.
The output should be a list object :
field_name | field_type
fieldA character varying
I suggest
GroupByand thenAggregateall these groups whileIntersecting their content:The only trick is line
We don't want to aggregate by
IGrouping<K, V>but by more generalIEnumerable<V>