I'm a Mathematica newbie and I have the following problem: I connect to a Oracle DB and read out a set of variables, further on I want to histogram some of the variables. A Dataset seems to be the right tool, but I produce only datasets without a key via:
DBtest = SQLSelect[db, "TABLE1", {"ID", "VAR_1"}]
Dataset[DBtest]
Result is a Dataset with one column containing ID and the other containing VAR_1 (sorry for the generic names - I can't copy my real work, since it contains sensitive data).
Then I can't use the DBtest[Histogram, "key"] functionality, since there is no "key" available.
Is there anyway to add keys after filling the dataset from the DB? Or shouldn't I use the Dataset class?



Dataset[AssociationThread[First @ data, #] & /@ Rest @ data]$\endgroup$