USE python !!! import sqlite3 A_students: This function takes a connection objec
ID: 3749555 • Letter: U
Question
USE python !!! import sqlite3
A_students: This function takes a connection object,a table name with default value"ISTA_131_F17", a class standing string with default value None, and a maximum number of results to return with default value 10. This function returns a list containing the names of the students up to the specified maximum number (it may be less if there aren't that many in the table) in the format"last, first". If the class argument is None, take the students from the whole table, otherwise just from students with the specified class standing. Your query should be case insensitive regarding the class standing. Within in the group, sort on the names. Don't pull all of the data into Python and then do the logic there, do it with properly constructed queries. You may have two queries, one that executes if class standing is None; the other if it is either 'freshman', 'sophomore', etc.
Explanation / Answer
Please make sure read the TODO in given code and have the table name and value inside the table
# studentdb.py
# out put from my db
querying srudent based on class
Last First
---------------
abhi mane
abhi mane
Rohit kumar
Rohit kumar
******************************
querying srudent without class
Last First
---------------
abhi mane
abhi mane
abhi mane
Rohit kumar
amit kumar
Rohit kumar
amit kumar
Rohit kumar
amit kumar
Rakesh Roushan
Process finished with exit code 0
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.