Xii Ip SQL Board QS 2024-25 With Answers
Xii Ip SQL Board QS 2024-25 With Answers
Use practexam;
4500,2023/02/01’);
1)Display the Mobile company, Mobile name & price in descending order
(ii) List the details of mobile whose name starts with “S”.
(iii) Display the Mobile company & mobile name of all mobiles
except “MB003‟.
(iv) To display the name of mobile company having price between 3000 &
5000.
(v) To display the sum of price of those mobile phones whose price is more
than 5000
Use practexam;
Salary int);
theirHiredate.
Ans. SELECT TNAME, CITY, SALARY FROM TRAINER
ORDER BY HIREDATE;
ii. To display the TNAME and CITY of Trainer who joined the Institute in
before 2001-12-21.
GROUP BY CITY;
v) Display the TId & Tname from trainer table Whose city is not Delhi and
mumbai
Ans SELECT TID, TNAME, FROM TRAINER WHERE CITY NOT IN(‘DELHI’,
‘MUMBAI’);
vi) Concatenate the contents of the columns Tname and city columns
Ans: Select concatenation(Tname,city) from trainer;
vii) Display the first 3 characters and last three characters from city
columns
Ans: Select left(city, 3),right(city, 3) from trainer;;
Use practexam;
Salary int);
ii) To display the details of those faculties whose fname ends with ‘t’
where fid=102;
(iv) To display details of those faculties who were hired befored 2001-5-18
where hiredate<’2001-05-18’
SQL 4
i. To display all the details of those watches whose name ends with ‘Time’
ii. To display watch’s name and price of those watches which have price
v. Display the minimum and maximum qty in store from the above table
vi) Extract three characters from the second position of watchname column
SQL 5
(i) To display the records from table student in alphabetical order as per the
order by name;
(ii ) To display Class, Dob and City whose marks is between 450 and 551.
(iii) To display Name, Class and total number of students who have secured
group by class
set marks=marks+20
where class=’XII’;
Vi) Display the average mark of those students whose city is Delhi