I worked with PostgreSQL for a long time and now with SQL Server I have been missing some of the features that made life much easier. I have for example a table that one of its columns should be a list of strings , that is, an array of varchar (in postgre it was all very simple):
CREATE TABLE MyTable (
id integer PRIMARY KEY,
name varchar(30),
questions varchar(50)[]
);
Unfortunately in SQL Server this is not possible. I could make a second table called QuestionsForMyTable
:
CREATE TABLE QuestionsForMyTable (
id_of_mytable integer,
question varchar(50)
);
And then the relationship is due, but hey I fall into the misery of having to do another JOIN. Is this really what I have left, or is there a better way out?