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

EXAM SQL 843i - Questions

The document outlines a series of SQLite database tasks involving the creation of multiple databases with two tables each, including Students, Teachers, Customers, and Managers. Each task includes specific instructions for adding records, retrieving data, modifying column names, and saving the database. The tasks emphasize the manipulation of data and structure within the SQLite environment.

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 views3 pages

EXAM SQL 843i - Questions

The document outlines a series of SQLite database tasks involving the creation of multiple databases with two tables each, including Students, Teachers, Customers, and Managers. Each task includes specific instructions for adding records, retrieving data, modifying column names, and saving the database. The tasks emphasize the manipulation of data and structure within the SQLite environment.

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/ 3

Questions:

1. SQLite. Create database with 2 tables – Student and Subject.


Student columns: Id, First_name, Last_name, Age, Roll_number.
Subject columns : Subject_Id, Subject
Add 5 records in each .
Retrieve from Student names and ages.
Change the name of the Roll_number column to Subject_id
Change 2nd students age to 15
Save the database.
Retrieve the list of all tables in the database

2. SQLite. Create database with 2 tables – Teachers and Subject.


Teachers columns: Id, First_name, Last_name, Position, Subject.
Subject columns : Subject_Id, Subject
Add 5 records in each .
Retrieve from Teachers first names and position.
Retrieve all from Subject
Change the name of the Last_name column to Sname
Save the database.
Retrieve the list of all columns of the table Teachers

3. SQLite. Create database with 2 tables: Customers, Orders


Customers columns: Id, First_name, Last_name, Country. Add 5 records.
Orders columns: Id, Item, Amount, Customer_id. Add 4 record (Items: Mouse.
Mousepad, Keyboard, Books).
Retrieve from Customers first names and country.
Retrieve all from Orders
Change the name of the Contry column to City
Save the database
Retrieve the list of all tables in the database

4. SQLite. Create database with 2 tables – Teachers and Subject.


Teachers columns: Id, First_name, Last_name, Position.
Subject columns : Subject_Id, Subject
Add 5 records in each .
Add column Subject in the table Teachers.
Add data to the column Subject in the Teachers.
Save the database.
Retrieve from Teachers first names and position.
Retrieve all from Subject.

5. SQLite. Create database with 2 tables: Customers, Orders


Customers columns: Id, First_name, Last_name, Country. Add 5 records.
Orders columns: Id, Item, Amount, Customer_id. Add 4 record (Items: Mouse.
Mousepad, Keyboard, Books).
Add column Price to the Orders.
Add data (any numbers) into column Price of the table Orders.
Retrieve all data from Orders.
Retrieve Last_name and Country from Customers.
Save the database.

6. SQLite. Create database with 2 tables: Muellim, Telebe.


Muellim columns: Id, Ad, Soyad, Fenn. Add 4 record
Telebe columns: T_Id, T_Ad, T_Soyad, Qrup. Add 5 record
Add column Phone to the Muellim table.
Add data (any numbers) into column Phone of the table Muellim.
Retrieve all data from Muellim.
Retrieve T_Soyad, Qrup from Telebe.
Save the database.

7. SQLite. Create database with 2 tables: Students, Subjects


Student columns: Id, First_name, Last_name, Age, Roll_number.
Subject columns : Subject_Id, Subject
Add 5 records in each .
Retrieve from Student first names and ages.
Retrieve all from Subjects
Change the name of the Roll_number column to Group
Save the database
Retrieve the list of all tables in the database

8. SQLite. Create database with 2 tables: Customers, Orders


Customers columns: Id, First_name, Last_name, Country. Add 5 records.
Orders columns: Id, Item, Amount, Customer_id. Add 4 record (Items: Mouse.
Mousepad, Keyboard, Books).
Change the name of the Country column in Customers to Address
Add column Price to the Orders.
Add data (any numbers) into column Price of the table Orders.
Retrieve all data from Orders.
Retrieve Last_name and Address from Customers.
Save the database.

9. SQLite. Create database with 2 tables – Teachers and Subject.


Teachers columns: Id, First_name, Last_name, Phone, Subject.
Subject columns : Subject_Id, Subject
Add 5 records in each .
Delete the column Subject from the table Teachers.
Change in the Teachers table phone number for 3rd teacher to 33-44-55
Save the database.
Retrieve from Teachers first names and phones.
Retrieve all from Subject.

10. SQLite. Create database with 2 tables – Managers and Product.


Managers columns: Id, M_name, M_sname, Phone
Product columns : Id, Item, Amount, order_number
Add 5 records in each .
Add column Price to the Product.
Add data (any numbers) into column Price of the table Product.
Change the name of the column M_name in the Managers to FirstName
Retrieve the list of tables in the database
Save the database

11. SQLite. Create database with 2 tables – Managers and Orders.


Managers columns: Id, M_name, M_sname, Phone
Orders columns : Id, Item, Amount, order_number
Add 5 records in each .
Add column Price to the Orders.
Add data (any numbers) into column Price of the table Orders.
Change the name of the column M_name in the Managers to FirstName
Retrieve the list of tables in the database
Save the database

You might also like