Question
Given the following schemas: TABLE public.teamsfranchises COLUMN | TYPE | Modifiers ------------+------------------------+----------- franchid | CHARACTER varying(255) | franchname | CHARACTER varying(255) | active | CHARACTER
Given the following schemas:
-
TABLE "public.teamsfranchises"
-
COLUMN | TYPE | Modifiers
-
------------+------------------------+-----------
-
franchid | CHARACTER varying(255) |
-
franchname | CHARACTER varying(255) |
-
active | CHARACTER varying(255) |
-
naassoc | CHARACTER varying(255) |
__________________________________________________________________________
-
TABLE "public.teams"
-
COLUMN | TYPE | Modifiers
-
----------------+------------------------+-----------
-
yearid | BIGINT |
-
franchid | CHARACTER varying(255) |
-
w | BIGINT |
-
l | BIGINT |
-
NAME | CHARACTER varying(255) |
-
attendance | CHARACTER varying(255) |
Write an SQL query to query Franchise name and average total yearly franchise attendance from (>=) 1997. The output schema should be in the following form: (franchise name, attendance).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started