Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The program I am working on needs to run on python and below are the requirement for it. if you can add comments please so

The program I am working on needs to run on python and below are the requirement for it. if you can add comments please so I may better understand.

use the function len and sets. I am constructing a program that will do the following steps below.

1. asks the user for a database schema name and report the number of tables, a list of table and the number of each record in each table.

Design suggestions:

2. Use two result sets One to hold the results of a "SHOW TABLES" command and one to hold a query of each table to determine the record count.

3.Use a for loop to step through the first result set to display the first element of the tuple (the table name) and then query the table to find the number of records.

Use the len() function on the result set to find the number of tuples.

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_2

Step: 3

blur-text-image_3

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

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions

Question

What ethical issues are associated with micromarketing?

Answered: 1 week ago

Question

Find dy/dx if x = te, y = 2t2 +1

Answered: 1 week ago