3 (Contacts Data set) Study the books.sql script gave in the ch17 models organizer's sql subfolder. Save the content as addressbook.sql and it to make a solitary table named contacts. The table ought to contain an auto-increased id segment and message sections for an individual memorable name, last name and telephone number. make a Python script illustrating: 1. embed contacts into the information base, 2. question information base to list all the endlessly contacts with explicit last name, 3. update a contact and 4. erase a contact. books.sql code: import panda as pd mport sqlite3 connection sqlite3.connect('books.db') pd.options.display.max_columns = 10 pd.read_sql("SELECT * FROM authors", connection) df = pd. read_sql( "SELECT * FROM authors", connection) DROP TABLE IF EXISTS author_ISBN; DROP TABLE IF EXISTS titles; DROP TABLE IF EXISTS authors; CREATE TABLE authors ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, first TEXT NOT NULL, last TEXT NOT NULL CREATE TABLE titles ( isbn TEXT NOT NULL, title TEXT NOT NULL, edition INTEGER NOT NULL, copyright TEXT NOT NULL, PRIMARY KEY (1sbn) 0; CREATE TABLE author_ISBN ( id INTEGER NOT NULL, isbn TEXT NOT NULL, PRIMARY KEY (td, isbn),
3 (Contacts Data set) Study the books.sql script gave in the ch17 models organizer's sql subfolder. Save the content as addressbook.sql and it to make a solitary table named contacts. The table ought to contain an auto-increased id segment and message sections for an individual memorable name, last name and telephone number. make a Python script illustrating: 1. embed contacts into the information base, 2. question information base to list all the endlessly contacts with explicit last name, 3. update a contact and 4. erase a contact. books.sql code: import panda as pd mport sqlite3 connection sqlite3.connect('books.db') pd.options.display.max_columns = 10 pd.read_sql("SELECT * FROM authors", connection) df = pd. read_sql( "SELECT * FROM authors", connection) DROP TABLE IF EXISTS author_ISBN; DROP TABLE IF EXISTS titles; DROP TABLE IF EXISTS authors; CREATE TABLE authors ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, first TEXT NOT NULL, last TEXT NOT NULL CREATE TABLE titles ( isbn TEXT NOT NULL, title TEXT NOT NULL, edition INTEGER NOT NULL, copyright TEXT NOT NULL, PRIMARY KEY (1sbn) 0; CREATE TABLE author_ISBN ( id INTEGER NOT NULL, isbn TEXT NOT NULL, PRIMARY KEY (td, isbn),
Chapter3: Data Representation
Section: Chapter Questions
Problem 3RP
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 5 steps with 4 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage