Sorry I can't really explain it better than the title. Basically; I just would like to know if it would be possible to have a select with multiple 'count() as ___' in the initial select with each 'count()' counting rows for a different select.
Or would I be better off making a new table with one field, then doing a single select query with a count for each new field to be added on?
So lets say I want the following table:
NAME ---- # of cars ---- # of children ---- # of living relatives
Jon 2 2 9
Jane 3 1 10
Bob 1 1 8
...and each of the # fields are taken from other selects in which I tie the person's name to each car/child/living relative they're in relation with. Could I do a single query with multiple count(*) in it? Or would it be better off to start a table with a query with a single count so I have something like this:
NAME ---- # of cars
Jon 2
Jane 3
Bob 1
and then keep adding fields to it with a few more single-count queries so it adds one new row at a time until it reaches the first table?
SELECTs" are coming from.