0% found this document useful (0 votes)
5 views2 pages

EXAM Python _SQL 843i_questions

The document outlines a series of Python/SQLite tasks involving the creation and manipulation of various database tables including Student, Teachers, Orders, Customers, Managers, Product, and Muellim. Each task involves creating tables with specified columns, adding records, modifying columns, retrieving specific data, and saving the tables. The document serves as a guide for performing basic database operations using Python and SQLite.

Uploaded by

memmedli0014
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

EXAM Python _SQL 843i_questions

The document outlines a series of Python/SQLite tasks involving the creation and manipulation of various database tables including Student, Teachers, Orders, Customers, Managers, Product, and Muellim. Each task involves creating tables with specified columns, adding records, modifying columns, retrieving specific data, and saving the tables. The document serves as a guide for performing basic database operations using Python and SQLite.

Uploaded by

memmedli0014
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1. Python/SQLite. Create the table Student with columns: Id, First_name, Last_name, Age.

Add 3 records.
Add column Phone
Retrieve from Student names and ages.
Save table.
2. Python/SQLite. Create the table Teachers with columns: Id, First_name, Last_name,
Position, Subject.
Add 3 records.
Add column Phone
Retrieve from Teachers names and subject
Save table.
3. Python/SQLite. Create the table Teachers with columns: Id, First_name, Last_name,
Position, Subject.
Add 3 records.
Rename the column First_name to Name
Retrieve from Teachers names and subject
Save table.
4. Python/SQLite. Create the table Orders with columns: Id, Item, Amount, Customer_id.
Add 3 records.
Add column Price
Retrieve from Orders Items and prices
Save table.

5. Python/SQLite. Create the table Customers with columns: Id, First_name, Last_name,
Country, Address. Add 3 records.
Delete the record for 2nd customer
Retrieve from the table Last names and countries
Save table.

6. Python/SQLite. Create the table Student with columns: Id, St_name, St_sname, Age.
Add 3 records.
Delete the column Age
Retrieve from Student names and surnames
Save table.

7. Python/SQLite. Create the table Student with columns: Id, St_name, St_sname, Age.
Add 3 records.
Change the age of the 2nd student to 30.
Retrieve from Student names and surnames
Save table

8. Python/SQLite. Create the table Managers with columns: Id, M_name, M_sname,
Phone.
Add 3 records.
Change the name of the 3rd manager.
Retrieve from the table surnames and phones
Save table
9. Python/SQLite. Create the table Product with columns : Id, Item, Amount,
order_number.
Add 3 records.
Add new column Price to the table
Retrieve from the table items and order_numbers.
Save table
10. Python/SQLite. Create the table Muellim with columns: Id, Ad, Soyad, Fen.
Add 4 records.
Add column Phone
Change the subject for the first Id.
Save table

You might also like