{"id":2224,"date":"2025-11-11T15:18:51","date_gmt":"2025-11-11T15:18:51","guid":{"rendered":"https:\/\/itxperts.co.in\/blog\/?p=2224"},"modified":"2025-11-11T15:19:20","modified_gmt":"2025-11-11T15:19:20","slug":"mysql-practice-questions-cbse-class-12-ip","status":"publish","type":"post","link":"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/","title":{"rendered":"MySQL Practice Questions for CBSE Class 12 IP Students"},"content":{"rendered":"\n<p><em>Master MySQL for your CBSE Class 12 Informatics Practices exam with these comprehensive practice questions, sample tables, and detailed solutions.<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p>Are you preparing for your CBSE Class 12 Informatics Practices (IP) exam and feeling overwhelmed with MySQL queries? Don&#8217;t worry! This complete guide will help you master MySQL concepts including <strong>Joins, Aggregate Functions, String Functions, Date Functions<\/strong>, and much more.<\/p>\n\n\n\n<p>At <strong>Itxperts<\/strong>, we understand the challenges students face while learning database concepts. That&#8217;s why we&#8217;ve created this comprehensive practice set with real-world examples and detailed explanations.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Sample Database Tables<\/h2>\n\n\n\n<p>Let&#8217;s start by creating three interconnected tables that simulate a school management system. These tables will help you practice various SQL queries and joins.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Table 1: STUDENTS<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TABLE STUDENTS (\n    StudentID INT PRIMARY KEY,\n    Name VARCHAR(50),\n    Class VARCHAR(5),\n    Section CHAR(1),\n    DOB DATE,\n    City VARCHAR(30),\n    Marks INT\n);\n\nINSERT INTO STUDENTS VALUES\n(101, 'Aarav Sharma', '12', 'A', '2007-05-15', 'Delhi', 92),\n(102, 'Diya Patel', '12', 'A', '2007-08-22', 'Mumbai', 88),\n(103, 'Rohan Kumar', '12', 'B', '2007-03-10', 'Bangalore', 95),\n(104, 'Ananya Singh', '12', 'A', '2007-11-05', 'Delhi', 78),\n(105, 'Arjun Reddy', '12', 'B', '2007-07-18', 'Hyderabad', 85),\n(106, 'Priya Gupta', '12', 'C', '2007-09-30', 'Mumbai', 91),\n(107, 'Karan Mehta', '12', 'C', '2007-02-14', 'Delhi', 82),\n(108, 'Ishita Jain', '12', 'B', '2007-12-25', 'Pune', 89);\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Table 2: LIBRARY<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TABLE LIBRARY (\n    BookID INT PRIMARY KEY,\n    BookName VARCHAR(60),\n    Author VARCHAR(40),\n    Publisher VARCHAR(40),\n    Price DECIMAL(7,2),\n    Quantity INT,\n    StudentID INT,\n    IssueDate DATE,\n    FOREIGN KEY (StudentID) REFERENCES STUDENTS(StudentID)\n);\n\nINSERT INTO LIBRARY VALUES\n(201, 'Python Programming', 'John Smith', 'Tech Publications', 450.00, 5, 101, '2024-10-15'),\n(202, 'Data Structures', 'Robert Sedgewick', 'Pearson', 650.00, 3, 103, '2024-10-20'),\n(203, 'Database Management', 'Raghu Ramakrishnan', 'McGraw Hill', 550.00, 4, 102, '2024-10-18'),\n(204, 'Web Development', 'Jennifer Robbins', 'O Reilly', 720.00, 2, 105, '2024-11-01'),\n(205, 'Artificial Intelligence', 'Stuart Russell', 'Prentice Hall', 890.00, 3, 103, '2024-10-25'),\n(206, 'Computer Networks', 'Andrew Tanenbaum', 'Pearson', 600.00, 4, 106, '2024-11-05'),\n(207, 'Operating Systems', 'Abraham Silberschatz', 'Wiley', 750.00, 2, NULL, NULL),\n(208, 'Machine Learning', 'Tom Mitchell', 'McGraw Hill', 820.00, 3, NULL, NULL);\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Table 3: COURSES<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TABLE COURSES (\n    CourseID INT PRIMARY KEY,\n    CourseName VARCHAR(50),\n    Duration INT,\n    Fees DECIMAL(8,2),\n    StudentID INT,\n    FOREIGN KEY (StudentID) REFERENCES STUDENTS(StudentID)\n);\n\nINSERT INTO COURSES VALUES\n(301, 'Python Programming', 6, 15000.00, 101),\n(302, 'Web Development', 8, 18000.00, 102),\n(303, 'Data Science', 10, 25000.00, 103),\n(304, 'Artificial Intelligence', 12, 30000.00, 104),\n(305, 'Machine Learning', 10, 28000.00, 105),\n(306, 'Cyber Security', 8, 20000.00, 106),\n(307, 'Mobile App Development', 6, 16000.00, 107);\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Practice Questions with Solutions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Section A: Basic SELECT Queries<\/h3>\n\n\n\n<p><strong>Q1.<\/strong> Display all students from Delhi.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT * FROM STUDENTS WHERE City = 'Delhi';\n<\/code><\/pre>\n\n\n\n<p><strong>Expected Output:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>StudentID<\/th><th>Name<\/th><th>Class<\/th><th>Section<\/th><th>DOB<\/th><th>City<\/th><th>Marks<\/th><\/tr><\/thead><tbody><tr><td>101<\/td><td>Aarav Sharma<\/td><td>12<\/td><td>A<\/td><td>2007-05-15<\/td><td>Delhi<\/td><td>92<\/td><\/tr><tr><td>104<\/td><td>Ananya Singh<\/td><td>12<\/td><td>A<\/td><td>2007-11-05<\/td><td>Delhi<\/td><td>78<\/td><\/tr><tr><td>107<\/td><td>Karan Mehta<\/td><td>12<\/td><td>C<\/td><td>2007-02-14<\/td><td>Delhi<\/td><td>82<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q2.<\/strong> Display names of students who scored more than 85 marks.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT Name, Marks FROM STUDENTS WHERE Marks &gt; 85;\n<\/code><\/pre>\n\n\n\n<p><strong>Answer:<\/strong> This query uses the WHERE clause to filter records based on the condition.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q3.<\/strong> Display book names with price between \u20b9500 and \u20b9700.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT BookName, Price FROM LIBRARY \nWHERE Price BETWEEN 500 AND 700;\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>\ud83d\udca1 Itxperts Tip:<\/strong> The BETWEEN operator is inclusive, meaning it includes both boundary values (500 and 700).<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q4.<\/strong> Display student names in alphabetical order.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT Name FROM STUDENTS ORDER BY Name;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q5.<\/strong> Display unique cities from the STUDENTS table.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT DISTINCT City FROM STUDENTS;\n<\/code><\/pre>\n\n\n\n<p><strong>Explanation:<\/strong> The DISTINCT keyword removes duplicate values from the result set.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Section B: Aggregate Functions<\/h2>\n\n\n\n<p><em>Need expert guidance? <strong>Itxperts<\/strong> offers personalized tutoring for CBSE Class 12 IP students!<\/em><\/p>\n\n\n\n<p><strong>Q6.<\/strong> Count the total number of students.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT COUNT(*) AS TotalStudents FROM STUDENTS;\n<\/code><\/pre>\n\n\n\n<p><strong>Output:<\/strong> 8<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q7.<\/strong> Find the average marks of all students.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT AVG(Marks) AS AverageMarks FROM STUDENTS;\n<\/code><\/pre>\n\n\n\n<p><strong>Output:<\/strong> 87.5<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q8.<\/strong> Find the highest and lowest book price.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT MAX(Price) AS HighestPrice, MIN(Price) AS LowestPrice \nFROM LIBRARY;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q9.<\/strong> Calculate total fees collected from all courses.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT SUM(Fees) AS TotalFees FROM COURSES;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q10.<\/strong> Count the number of books issued to students.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT COUNT(StudentID) AS BooksIssued FROM LIBRARY \nWHERE StudentID IS NOT NULL;\n<\/code><\/pre>\n\n\n\n<p><strong>Explanation:<\/strong> We use IS NOT NULL to count only issued books (excluding books in stock).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Section C: GROUP BY and HAVING Clause<\/h2>\n\n\n\n<p><strong>Q11.<\/strong> Display city-wise count of students.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT City, COUNT(*) AS StudentCount \nFROM STUDENTS \nGROUP BY City;\n<\/code><\/pre>\n\n\n\n<p><strong>Expected Output:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>City<\/th><th>StudentCount<\/th><\/tr><\/thead><tbody><tr><td>Delhi<\/td><td>3<\/td><\/tr><tr><td>Mumbai<\/td><td>2<\/td><\/tr><tr><td>Bangalore<\/td><td>1<\/td><\/tr><tr><td>Hyderabad<\/td><td>1<\/td><\/tr><tr><td>Pune<\/td><td>1<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q12.<\/strong> Display section-wise average marks.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT Section, AVG(Marks) AS AvgMarks \nFROM STUDENTS \nGROUP BY Section;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q13.<\/strong> Display publisher-wise total book quantity.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT Publisher, SUM(Quantity) AS TotalBooks \nFROM LIBRARY \nGROUP BY Publisher;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q14.<\/strong> Display cities having more than 1 student.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT City, COUNT(*) AS StudentCount \nFROM STUDENTS \nGROUP BY City \nHAVING COUNT(*) &gt; 1;\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>\ud83d\udccc Itxperts Note:<\/strong> HAVING is used with GROUP BY to filter grouped records, while WHERE filters individual records.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q15.<\/strong> Display publishers having average price more than \u20b9600.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT Publisher, AVG(Price) AS AvgPrice \nFROM LIBRARY \nGROUP BY Publisher \nHAVING AVG(Price) &gt; 600;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Section D: String Functions<\/h2>\n\n\n\n<p><strong>Q16.<\/strong> Display student names in uppercase.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT UPPER(Name) AS NameInCaps FROM STUDENTS;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q17.<\/strong> Display the first 4 characters of book names.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT LEFT(BookName, 4) AS ShortName FROM LIBRARY;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q18.<\/strong> Display the length of each student&#8217;s name.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT Name, LENGTH(Name) AS NameLength FROM STUDENTS;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q19.<\/strong> Display book names containing the word &#8216;Data&#8217;.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT BookName FROM LIBRARY WHERE BookName LIKE '%Data%';\n<\/code><\/pre>\n\n\n\n<p><strong>Explanation:<\/strong> The % wildcard matches any sequence of characters.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q20.<\/strong> Concatenate student name with their city.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT CONCAT(Name, ' - ', City) AS StudentInfo FROM STUDENTS;\n<\/code><\/pre>\n\n\n\n<p><strong>Sample Output:<\/strong> &#8220;Aarav Sharma &#8211; Delhi&#8221;<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Section E: Date Functions<\/h2>\n\n\n\n<p><em>Struggling with date functions? Join <strong>Itxperts<\/strong> online coaching program for detailed explanations!<\/em><\/p>\n\n\n\n<p><strong>Q21.<\/strong> Display the current date.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT CURDATE() AS CurrentDate;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q22.<\/strong> Display the year of birth for all students.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT Name, YEAR(DOB) AS BirthYear FROM STUDENTS;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q23.<\/strong> Display the month name when books were issued.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT BookName, MONTHNAME(IssueDate) AS IssueMonth \nFROM LIBRARY \nWHERE IssueDate IS NOT NULL;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q24.<\/strong> Calculate the age of students.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT Name, YEAR(CURDATE()) - YEAR(DOB) AS Age FROM STUDENTS;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q25.<\/strong> Display books issued in October 2024.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT BookName, IssueDate FROM LIBRARY \nWHERE MONTH(IssueDate) = 10 AND YEAR(IssueDate) = 2024;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Section F: Mathematical Functions<\/h2>\n\n\n\n<p><strong>Q26.<\/strong> Display book prices rounded to the nearest integer.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT BookName, ROUND(Price) AS RoundedPrice FROM LIBRARY;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q27.<\/strong> Calculate 10% discount on course fees.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT CourseName, Fees, ROUND(Fees * 0.9, 2) AS DiscountedFees \nFROM COURSES;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q28.<\/strong> Display the square of marks (marks\u00b2).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT Name, Marks, POW(Marks, 2) AS MarksSquare FROM STUDENTS;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q29.<\/strong> Display the absolute difference between marks and 100.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT Name, Marks, ABS(100 - Marks) AS Difference FROM STUDENTS;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q30.<\/strong> Display the square root of book prices.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT BookName, Price, ROUND(SQRT(Price), 2) AS SqrtPrice \nFROM LIBRARY;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Section G: JOINS (Most Important for CBSE!)<\/h2>\n\n\n\n<p><em>This section is crucial for scoring well in your IP exam. <strong>Itxperts<\/strong> specializes in making complex concepts simple!<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Understanding JOINS<\/h3>\n\n\n\n<p>Joins are used to combine rows from two or more tables based on a related column. There are different types of joins:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>INNER JOIN<\/strong> &#8211; Returns matching records from both tables<\/li>\n\n\n\n<li><strong>LEFT JOIN<\/strong> &#8211; Returns all records from the left table and matching records from the right<\/li>\n\n\n\n<li><strong>RIGHT JOIN<\/strong> &#8211; Returns all records from the right table and matching records from the left<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q31.<\/strong> Display student names with the books they have issued. (INNER JOIN)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT S.Name, L.BookName, L.IssueDate\nFROM STUDENTS S\nINNER JOIN LIBRARY L ON S.StudentID = L.StudentID;\n<\/code><\/pre>\n\n\n\n<p><strong>Expected Output:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Name<\/th><th>BookName<\/th><th>IssueDate<\/th><\/tr><\/thead><tbody><tr><td>Aarav Sharma<\/td><td>Python Programming<\/td><td>2024-10-15<\/td><\/tr><tr><td>Rohan Kumar<\/td><td>Data Structures<\/td><td>2024-10-20<\/td><\/tr><tr><td>Diya Patel<\/td><td>Database Management<\/td><td>2024-10-18<\/td><\/tr><tr><td>Arjun Reddy<\/td><td>Web Development<\/td><td>2024-11-01<\/td><\/tr><tr><td>Rohan Kumar<\/td><td>Artificial Intelligence<\/td><td>2024-10-25<\/td><\/tr><tr><td>Priya Gupta<\/td><td>Computer Networks<\/td><td>2024-11-05<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><strong>Explanation:<\/strong> INNER JOIN returns only students who have issued books.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q32.<\/strong> Display all students and their issued books (if any). (LEFT JOIN)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT S.Name, L.BookName, L.IssueDate\nFROM STUDENTS S\nLEFT JOIN LIBRARY L ON S.StudentID = L.StudentID;\n<\/code><\/pre>\n\n\n\n<p><strong>Explanation:<\/strong> LEFT JOIN returns all students, even those who haven&#8217;t issued any books (NULL values).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q33.<\/strong> Display student names with their enrolled courses.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT S.Name, C.CourseName, C.Duration, C.Fees\nFROM STUDENTS S\nINNER JOIN COURSES C ON S.StudentID = C.StudentID;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q34.<\/strong> Display students who have issued books along with their marks and book prices.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT S.Name, S.Marks, L.BookName, L.Price\nFROM STUDENTS S\nINNER JOIN LIBRARY L ON S.StudentID = L.StudentID\nORDER BY S.Marks DESC;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q35.<\/strong> Display all books and the students who issued them (if any). (RIGHT JOIN)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT L.BookName, S.Name, L.IssueDate\nFROM STUDENTS S\nRIGHT JOIN LIBRARY L ON S.StudentID = L.StudentID;\n<\/code><\/pre>\n\n\n\n<p><strong>Explanation:<\/strong> This shows all books, including those not issued to anyone (Operating Systems and Machine Learning).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q36.<\/strong> Display student names from Delhi who have enrolled in courses.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT S.Name, S.City, C.CourseName\nFROM STUDENTS S\nINNER JOIN COURSES C ON S.StudentID = C.StudentID\nWHERE S.City = 'Delhi';\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q37.<\/strong> Display students who scored more than 85 and the books they issued.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT S.Name, S.Marks, L.BookName\nFROM STUDENTS S\nINNER JOIN LIBRARY L ON S.StudentID = L.StudentID\nWHERE S.Marks &gt; 85;\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>\ud83c\udfaf Itxperts Pro Tip:<\/strong> When using joins with WHERE clause, apply the WHERE condition after the JOIN to filter the combined result.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q38.<\/strong> Display total fees paid by each student for courses.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT S.Name, SUM(C.Fees) AS TotalFees\nFROM STUDENTS S\nINNER JOIN COURSES C ON S.StudentID = C.StudentID\nGROUP BY S.Name;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q39.<\/strong> Display students with their course names and book names.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT S.Name, C.CourseName, L.BookName\nFROM STUDENTS S\nINNER JOIN COURSES C ON S.StudentID = C.StudentID\nINNER JOIN LIBRARY L ON S.StudentID = L.StudentID;\n<\/code><\/pre>\n\n\n\n<p><strong>Explanation:<\/strong> This is a three-table join showing complete student information.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q40.<\/strong> Count how many books each student has issued.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT S.Name, COUNT(L.BookID) AS BooksIssued\nFROM STUDENTS S\nLEFT JOIN LIBRARY L ON S.StudentID = L.StudentID\nGROUP BY S.Name;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Section H: Advanced Queries (Challenge Questions)<\/h2>\n\n\n\n<p><em>Ready to take your skills to the next level? <strong>Itxperts<\/strong> offers advanced MySQL courses for competitive programming!<\/em><\/p>\n\n\n\n<p><strong>Q41.<\/strong> Display students who have not issued any books.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT S.Name\nFROM STUDENTS S\nLEFT JOIN LIBRARY L ON S.StudentID = L.StudentID\nWHERE L.BookID IS NULL;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q42.<\/strong> Display the most expensive book issued to students.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT S.Name, L.BookName, L.Price\nFROM STUDENTS S\nINNER JOIN LIBRARY L ON S.StudentID = L.StudentID\nWHERE L.Price = (SELECT MAX(Price) FROM LIBRARY WHERE StudentID IS NOT NULL);\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q43.<\/strong> Display students whose course fees are higher than average.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT S.Name, C.CourseName, C.Fees\nFROM STUDENTS S\nINNER JOIN COURSES C ON S.StudentID = C.StudentID\nWHERE C.Fees &gt; (SELECT AVG(Fees) FROM COURSES);\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q44.<\/strong> Display section-wise total course fees.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT S.Section, SUM(C.Fees) AS TotalFees\nFROM STUDENTS S\nINNER JOIN COURSES C ON S.StudentID = C.StudentID\nGROUP BY S.Section;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q45.<\/strong> Display publisher-wise book count and average price for books priced above \u20b9500.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT Publisher, COUNT(*) AS BookCount, AVG(Price) AS AvgPrice\nFROM LIBRARY\nWHERE Price &gt; 500\nGROUP BY Publisher;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Section I: Nested Queries (Subqueries)<\/h2>\n\n\n\n<p><strong>Q46.<\/strong> Display students who scored more than the average marks.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT Name, Marks FROM STUDENTS\nWHERE Marks &gt; (SELECT AVG(Marks) FROM STUDENTS);\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q47.<\/strong> Display books more expensive than &#8216;Python Programming&#8217;.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT BookName, Price FROM LIBRARY\nWHERE Price &gt; (SELECT Price FROM LIBRARY WHERE BookName = 'Python Programming');\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q48.<\/strong> Display students enrolled in the most expensive course.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT S.Name, C.CourseName, C.Fees\nFROM STUDENTS S\nINNER JOIN COURSES C ON S.StudentID = C.StudentID\nWHERE C.Fees = (SELECT MAX(Fees) FROM COURSES);\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q49.<\/strong> Display books issued by students from Mumbai.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT L.BookName, S.Name, S.City\nFROM LIBRARY L\nINNER JOIN STUDENTS S ON L.StudentID = S.StudentID\nWHERE S.StudentID IN (SELECT StudentID FROM STUDENTS WHERE City = 'Mumbai');\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Q50.<\/strong> Display students who have issued more than one book.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT S.Name, COUNT(L.BookID) AS BooksIssued\nFROM STUDENTS S\nINNER JOIN LIBRARY L ON S.StudentID = L.StudentID\nGROUP BY S.Name\nHAVING COUNT(L.BookID) &gt; 1;\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Important Exam Tips from Itxperts<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>Understand the Table Structure First<\/strong><\/h3>\n\n\n\n<p>Before attempting any query, carefully read the table structure, column names, and relationships.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>Master the Order of Execution<\/strong><\/h3>\n\n\n\n<p>SQL queries execute in this order:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>FROM and JOINs<\/li>\n\n\n\n<li>WHERE<\/li>\n\n\n\n<li>GROUP BY<\/li>\n\n\n\n<li>HAVING<\/li>\n\n\n\n<li>SELECT<\/li>\n\n\n\n<li>ORDER BY<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>Practice JOIN Concepts Thoroughly<\/strong><\/h3>\n\n\n\n<p>Joins carry significant marks in CBSE exams. Make sure you understand:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>When to use INNER JOIN vs LEFT JOIN<\/li>\n\n\n\n<li>How to join multiple tables<\/li>\n\n\n\n<li>Combining JOINs with WHERE and GROUP BY<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">4. <strong>Remember Function Syntax<\/strong><\/h3>\n\n\n\n<p>Common functions you must know:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Aggregate:<\/strong> COUNT(), SUM(), AVG(), MAX(), MIN()<\/li>\n\n\n\n<li><strong>String:<\/strong> UPPER(), LOWER(), LEFT(), RIGHT(), CONCAT(), LENGTH()<\/li>\n\n\n\n<li><strong>Date:<\/strong> CURDATE(), YEAR(), MONTH(), MONTHNAME(), DATEDIFF()<\/li>\n\n\n\n<li><strong>Math:<\/strong> ROUND(), POW(), SQRT(), ABS()<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">5. <strong>Use Aliases for Better Readability<\/strong><\/h3>\n\n\n\n<p>Always use table aliases (S, L, C) when working with joins to make queries cleaner.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Common Mistakes to Avoid<\/h2>\n\n\n\n<p>\u274c <strong>Forgetting the WHERE clause<\/strong> when filtering after JOIN \u274c <strong>Using HAVING instead of WHERE<\/strong> for non-aggregated conditions \u274c <strong>Not using GROUP BY<\/strong> when using aggregate functions with other columns \u274c <strong>Incorrect JOIN syntax<\/strong> &#8211; Remember: table1 JOIN table2 ON condition \u274c <strong>Missing IS NULL or IS NOT NULL<\/strong> when checking for null values<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Practice Exercise for Self-Assessment<\/h2>\n\n\n\n<p>Try these questions on your own before checking the answers:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Display students from Section &#8216;A&#8217; who have issued books worth more than \u20b9500.<\/li>\n\n\n\n<li>Find the total value of all books in the library (Price \u00d7 Quantity).<\/li>\n\n\n\n<li>Display course names with duration more than the average duration.<\/li>\n\n\n\n<li>Show student names who have not enrolled in any courses.<\/li>\n\n\n\n<li>Display the second-highest marks from the STUDENTS table.<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Download Complete SQL Practice Set<\/h2>\n\n\n\n<p>Want more practice questions? <strong>Itxperts<\/strong> offers:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u2705 200+ MySQL practice questions<\/li>\n\n\n\n<li>\u2705 Chapter-wise tests with solutions<\/li>\n\n\n\n<li>\u2705 Previous year CBSE question papers<\/li>\n\n\n\n<li>\u2705 Mock exams with detailed explanations<\/li>\n\n\n\n<li>\u2705 Video tutorials for complex concepts<\/li>\n\n\n\n<li>\u2705 One-on-one doubt clearing sessions<\/li>\n<\/ul>\n\n\n\n<p><strong>Visit <a href=\"http:\/\/Itxperts.co.in\">Itxperts.co.in<\/a><\/strong> or contact us for personalized coaching!<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Mastering MySQL for CBSE Class 12 IP requires consistent practice and understanding of core concepts. Focus on:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Basic SELECT queries<\/strong> with WHERE, ORDER BY, DISTINCT<\/li>\n\n\n\n<li><strong>Aggregate functions<\/strong> and their usage<\/li>\n\n\n\n<li><strong>GROUP BY and HAVING<\/strong> clauses<\/li>\n\n\n\n<li><strong>String, Date, and Math functions<\/strong><\/li>\n\n\n\n<li><strong>JOINS<\/strong> &#8211; especially INNER JOIN and LEFT JOIN<\/li>\n\n\n\n<li><strong>Nested queries<\/strong> or subqueries<\/li>\n<\/ol>\n\n\n\n<p>Remember, practice is the key to success! Work through these questions multiple times, and don&#8217;t hesitate to experiment with variations.<\/p>\n\n\n\n<p>At <strong>Itxperts<\/strong>, we&#8217;re committed to helping students excel in their IP exams. Our expert faculty has years of experience in teaching CBSE curriculum and can guide you through every concept with real-world examples.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">About Itxperts<\/h2>\n\n\n\n<p><strong>Itxperts<\/strong> is India&#8217;s leading online platform for Computer Science and Informatics Practices education. We specialize in:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>CBSE Class 11 &amp; 12 IP\/CS coaching<\/li>\n\n\n\n<li>Python programming tutorials<\/li>\n\n\n\n<li>Database management training<\/li>\n\n\n\n<li>Web development courses<\/li>\n\n\n\n<li>Competitive exam preparation<\/li>\n<\/ul>\n\n\n\n<p><strong>Join thousands of successful students who trusted Itxperts for their IP exam preparation!<\/strong><\/p>\n\n\n\n<p>\ud83d\udce7 <strong>Contact:<\/strong> info@itxperts.co.in<br>\ud83c\udf10 <strong>Website:<\/strong> www.itxperts.co.in<br>\ud83d\udcf1 <strong>WhatsApp:<\/strong> +91-8966968576<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Share This Post<\/h3>\n\n\n\n<p>Found this guide helpful? Share it with your classmates and help them ace their IP exam too!<\/p>\n\n\n\n<p><strong>#CBSE #Class12 #InformaticsPractices #MySQL #Itxperts #DatabaseManagement #SQLQueries #ExamPreparation<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><em>Last Updated: November 2024<\/em><\/p>\n\n\n\n<p><strong>Happy Learning! \ud83d\udcda\ud83d\udcbb<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Master MySQL for your CBSE Class 12 Informatics Practices exam with these comprehensive practice questions, sample tables, and detailed solutions.<\/p>\n","protected":false},"author":1,"featured_media":2225,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"googlesitekit_rrm_CAow44u0DA:productID":"","footnotes":""},"categories":[213,159,122],"tags":[],"class_list":["post-2224","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-informatics-practices","category-learn-mysql","category-mysql-worksheet"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>MySQL Practice Questions for CBSE Class 12 IP Students - Itxperts<\/title>\n<meta name=\"description\" content=\"Complete MySQL practice questions for CBSE Class 12 IP with sample tables, joins, aggregate functions, and detailed solutions. Master database queries with ITxperts expert guide for exam success.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MySQL Practice Questions for CBSE Class 12 IP Students - Itxperts\" \/>\n<meta property=\"og:description\" content=\"Complete MySQL practice questions for CBSE Class 12 IP with sample tables, joins, aggregate functions, and detailed solutions. Master database queries with ITxperts expert guide for exam success.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/\" \/>\n<meta property=\"og:site_name\" content=\"Itxperts\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/itxperts.co.in\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-11T15:18:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-11T15:19:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/11\/mysql-1024x683.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"683\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"@mritxperts\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"@mritxperts\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/\"},\"author\":{\"name\":\"@mritxperts\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/#\/schema\/person\/77ad4d47f9f82583ee23e37010a52fc6\"},\"headline\":\"MySQL Practice Questions for CBSE Class 12 IP Students\",\"datePublished\":\"2025-11-11T15:18:51+00:00\",\"dateModified\":\"2025-11-11T15:19:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/\"},\"wordCount\":1465,\"publisher\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/11\/mysql.png\",\"articleSection\":[\"Informatics Practices\",\"Learn MySQL\",\"MYSQL Worksheet\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/\",\"url\":\"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/\",\"name\":\"MySQL Practice Questions for CBSE Class 12 IP Students - Itxperts\",\"isPartOf\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/11\/mysql.png\",\"datePublished\":\"2025-11-11T15:18:51+00:00\",\"dateModified\":\"2025-11-11T15:19:20+00:00\",\"description\":\"Complete MySQL practice questions for CBSE Class 12 IP with sample tables, joins, aggregate functions, and detailed solutions. Master database queries with ITxperts expert guide for exam success.\",\"breadcrumb\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/#primaryimage\",\"url\":\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/11\/mysql.png\",\"contentUrl\":\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/11\/mysql.png\",\"width\":1536,\"height\":1024,\"caption\":\"MySQL Practice Questions for CBSE Class 12 IP Students\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/itxperts.co.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MySQL Practice Questions for CBSE Class 12 IP Students\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/#website\",\"url\":\"https:\/\/itxperts.co.in\/blog\/\",\"name\":\"Itxperts\",\"description\":\"Leading Website Design Company in Madhya Pradesh\",\"publisher\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/#organization\"},\"alternateName\":\"Itxperts | Website Development in Madhya Pradesh\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/itxperts.co.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/#organization\",\"name\":\"Itxperts\",\"alternateName\":\"Leading Website Design Company in Madhya Pradesh \u2013 Itxperts\",\"url\":\"https:\/\/itxperts.co.in\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/05\/cropped-itxperts_logo.png\",\"contentUrl\":\"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/05\/cropped-itxperts_logo.png\",\"width\":512,\"height\":512,\"caption\":\"Itxperts\"},\"image\":{\"@id\":\"https:\/\/itxperts.co.in\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/itxperts.co.in\",\"https:\/\/www.linkedin.com\/company\/itxpertsshivpuri\/\",\"https:\/\/www.instagram.com\/itxperts.co.in\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/#\/schema\/person\/77ad4d47f9f82583ee23e37010a52fc6\",\"name\":\"@mritxperts\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/itxperts.co.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/702cffafd84d85872c0d42d33a9fa39140418d7c60a1311a1f8f55b005d0570b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/702cffafd84d85872c0d42d33a9fa39140418d7c60a1311a1f8f55b005d0570b?s=96&d=mm&r=g\",\"caption\":\"@mritxperts\"},\"description\":\"I am a full-stack web developer from India with over 8 years of experience in building dynamic and responsive web solutions. Specializing in both front-end and back-end development, I have a passion for creating seamless digital experiences. When I'm not coding, I enjoy sharing insights and tutorials on the latest web technologies, helping fellow developers stay ahead in the ever-evolving tech landscape.\",\"sameAs\":[\"https:\/\/itxperts.co.in\/blog\"],\"url\":\"https:\/\/itxperts.co.in\/blog\/author\/mritxpertsgmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MySQL Practice Questions for CBSE Class 12 IP Students - Itxperts","description":"Complete MySQL practice questions for CBSE Class 12 IP with sample tables, joins, aggregate functions, and detailed solutions. Master database queries with ITxperts expert guide for exam success.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/","og_locale":"en_US","og_type":"article","og_title":"MySQL Practice Questions for CBSE Class 12 IP Students - Itxperts","og_description":"Complete MySQL practice questions for CBSE Class 12 IP with sample tables, joins, aggregate functions, and detailed solutions. Master database queries with ITxperts expert guide for exam success.","og_url":"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/","og_site_name":"Itxperts","article_publisher":"https:\/\/www.facebook.com\/itxperts.co.in","article_published_time":"2025-11-11T15:18:51+00:00","article_modified_time":"2025-11-11T15:19:20+00:00","og_image":[{"width":1024,"height":683,"url":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/11\/mysql-1024x683.png","type":"image\/png"}],"author":"@mritxperts","twitter_card":"summary_large_image","twitter_misc":{"Written by":"@mritxperts","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/#article","isPartOf":{"@id":"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/"},"author":{"name":"@mritxperts","@id":"https:\/\/itxperts.co.in\/blog\/#\/schema\/person\/77ad4d47f9f82583ee23e37010a52fc6"},"headline":"MySQL Practice Questions for CBSE Class 12 IP Students","datePublished":"2025-11-11T15:18:51+00:00","dateModified":"2025-11-11T15:19:20+00:00","mainEntityOfPage":{"@id":"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/"},"wordCount":1465,"publisher":{"@id":"https:\/\/itxperts.co.in\/blog\/#organization"},"image":{"@id":"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/#primaryimage"},"thumbnailUrl":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/11\/mysql.png","articleSection":["Informatics Practices","Learn MySQL","MYSQL Worksheet"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/","url":"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/","name":"MySQL Practice Questions for CBSE Class 12 IP Students - Itxperts","isPartOf":{"@id":"https:\/\/itxperts.co.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/#primaryimage"},"image":{"@id":"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/#primaryimage"},"thumbnailUrl":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/11\/mysql.png","datePublished":"2025-11-11T15:18:51+00:00","dateModified":"2025-11-11T15:19:20+00:00","description":"Complete MySQL practice questions for CBSE Class 12 IP with sample tables, joins, aggregate functions, and detailed solutions. Master database queries with ITxperts expert guide for exam success.","breadcrumb":{"@id":"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/#primaryimage","url":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/11\/mysql.png","contentUrl":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/11\/mysql.png","width":1536,"height":1024,"caption":"MySQL Practice Questions for CBSE Class 12 IP Students"},{"@type":"BreadcrumbList","@id":"https:\/\/itxperts.co.in\/blog\/mysql-practice-questions-cbse-class-12-ip\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/itxperts.co.in\/blog\/"},{"@type":"ListItem","position":2,"name":"MySQL Practice Questions for CBSE Class 12 IP Students"}]},{"@type":"WebSite","@id":"https:\/\/itxperts.co.in\/blog\/#website","url":"https:\/\/itxperts.co.in\/blog\/","name":"Itxperts","description":"Leading Website Design Company in Madhya Pradesh","publisher":{"@id":"https:\/\/itxperts.co.in\/blog\/#organization"},"alternateName":"Itxperts | Website Development in Madhya Pradesh","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/itxperts.co.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/itxperts.co.in\/blog\/#organization","name":"Itxperts","alternateName":"Leading Website Design Company in Madhya Pradesh \u2013 Itxperts","url":"https:\/\/itxperts.co.in\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itxperts.co.in\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/05\/cropped-itxperts_logo.png","contentUrl":"https:\/\/itxperts.co.in\/blog\/wp-content\/uploads\/2025\/05\/cropped-itxperts_logo.png","width":512,"height":512,"caption":"Itxperts"},"image":{"@id":"https:\/\/itxperts.co.in\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/itxperts.co.in","https:\/\/www.linkedin.com\/company\/itxpertsshivpuri\/","https:\/\/www.instagram.com\/itxperts.co.in\/"]},{"@type":"Person","@id":"https:\/\/itxperts.co.in\/blog\/#\/schema\/person\/77ad4d47f9f82583ee23e37010a52fc6","name":"@mritxperts","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/itxperts.co.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/702cffafd84d85872c0d42d33a9fa39140418d7c60a1311a1f8f55b005d0570b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/702cffafd84d85872c0d42d33a9fa39140418d7c60a1311a1f8f55b005d0570b?s=96&d=mm&r=g","caption":"@mritxperts"},"description":"I am a full-stack web developer from India with over 8 years of experience in building dynamic and responsive web solutions. Specializing in both front-end and back-end development, I have a passion for creating seamless digital experiences. When I'm not coding, I enjoy sharing insights and tutorials on the latest web technologies, helping fellow developers stay ahead in the ever-evolving tech landscape.","sameAs":["https:\/\/itxperts.co.in\/blog"],"url":"https:\/\/itxperts.co.in\/blog\/author\/mritxpertsgmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/posts\/2224","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/comments?post=2224"}],"version-history":[{"count":1,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/posts\/2224\/revisions"}],"predecessor-version":[{"id":2226,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/posts\/2224\/revisions\/2226"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/media\/2225"}],"wp:attachment":[{"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/media?parent=2224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/categories?post=2224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itxperts.co.in\/blog\/wp-json\/wp\/v2\/tags?post=2224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}