degree and cardinality of sql table