The document contains SQL queries for managing data in four tables: Students, Books, Transactions, Members, and Courses. It includes commands for selecting, inserting, updating, and deleting records, as well as retrieving specific information based on conditions. Additionally, it mentions Python-SQL connectivity for database management and data retrieval tasks.
The document contains SQL queries for managing data in four tables: Students, Books, Transactions, Members, and Courses. It includes commands for selecting, inserting, updating, and deleting records, as well as retrieving specific information based on conditions. Additionally, it mentions Python-SQL connectivity for database management and data retrieval tasks.
member_id = 3; DELETE FROM members WHERE member_id = 7;
SELECT * FROM members WHERE name LIKE '%Bob
Smith'; 5).Using Table – Courses: select * from Courses;
INSERT INTO Courses (CourseID,CourseName, Duration)
values ( 104,"CS" , "5 Months");
Update courses set Duration = '12 Month' where
courseID = 101; Delete from courses where coursed = 104 ;
select * from Courses order by CourseID desc;
PYTHON-SQL Connectivity: 1. Creating Multiple Databases : 2.Adding data in these Databases: 3. Python Program to Retrieve All Students with Their Enrolled Courses 4. Python Program to Find the Total Number of Students Enrolled in Each Course 5. Python Program to Retrieve Students with Marks Greater Than a Given Value