SQL in Python
✕DDL, INSERT, UPDATE, DELETE
Question 1 of 3
- Using DBeaver, create all tables shown in lecture slide using appropriate data types.
- Insert record into respective tables as shown in lecture slide.
- Update
stockofNoodlesin product table to have value as 300. - Increase salary of all employee by 10%.
- Delete Record of
Shyamfromemployeetable. - Delete Record from
producttable with price more than30.
SELECT Queries
Question 2 of 3
- List
FirstName,LastNameandEmailfrom Customers. - List all fields from Customers table for customer living in
Brazil. - List
InvoiceID,CustomerIdandTotalfrom Invoices tables with invoice over $10. - Find record for 10 most expensive invoices from Invoices table.
- List customers from USA whose state is CA.
- Display the first 5 genres whose names start with the letter 'R', ordered alphabetically.
- List records from Invoices tables with invoice is between $10 and $20.
Using DBeaver, load chinook.db and- List
Integrating SQL in Python
Question 3 of 3
- Read csv file
employee_info.csvand store it in a tableemployee_infoin database. - Run Query to fetch all records from
albumstables and save it as filealbums.csv. - Update mobile number of
Ramesh Shresthaas98172inemployee_infotable. - Delete record of
Rabindra Sapkotafromemployee_infotable.
- Read csv file
