I have a SQL query now that produces a table that looks like this:
| Demographic | Month | Week | Usability | Session |
|---|---|---|---|---|
| 2 | 10 | 5 | 7 | 9 |
This is the query:
SELECT
avg(cast(d.duration as bigint)) as "Demographic",
avg(cast(m.duration as bigint)) as "Month",
avg(cast(w.duration as bigint)) as "Week",
avg(cast(u.duration as bigint)) as "Usability",
avg(cast(s.duration as bigint)) as "Session"
FROM
"demographic" as d,
"month" as m,
"week" as w,
"usability" as u,
"session" as s
What I want is a table that looks like this:
| Table | Average Duration |
|---|---|
| Demographic | 2 |
| Month | 10 |
| Week | 5 |
| Usability | 7 |
| Session | 9 |
Is this possible?