Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Given the following schemas: TABLE public.teamsfranchises COLUMN | TYPE | Modifiers ------------+------------------------+----------- franchid | CHARACTER varying(255) | franchname | CHARACTER varying(255) | active | CHARACTER

Given the following schemas:

  1. TABLE "public.teamsfranchises"

  2. COLUMN | TYPE | Modifiers

  3. ------------+------------------------+-----------

  4. franchid | CHARACTER varying(255) |

  5. franchname | CHARACTER varying(255) |

  6. active | CHARACTER varying(255) |

  7. naassoc | CHARACTER varying(255) |

__________________________________________________________________________

  1. TABLE "public.teams"

  2. COLUMN | TYPE | Modifiers

  3. ----------------+------------------------+-----------

  4. yearid | BIGINT |

  5. franchid | CHARACTER varying(255) |

  6. w | BIGINT |

  7. l | BIGINT |

  8. NAME | CHARACTER varying(255) |

  9. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

8. Describe how cultural spaces are formed.

Answered: 1 week ago