27 solutions available
Question 2Assertion (A): The HAVING clause is used with GROUP BY clause and aggregate functions.Reasoning (R): WHERE clause specifies the condition...
Question 3Assertion (A): SQL queries are performed on a table created under a database.Reasoning (R): The database is a folder created by the user in...
Question 7Assertion (A): GROUP BY clause is always preceded by ORDER BY clause in a SELECT statement.Reasoning (R): ORDER BY clause always follows...
Question 1ABC Associates has over 2000 employees on its roll and deals with customer support services. Help the company to perform associated...
Question 8What SQL statement do we use to display the record of all students whose last name contains 5 letters ending with "A"?SELECT * FROM...
Question 11Consider a table named Employees with columns — EName, Age, Salary and Designation. Which SQL statement do we use to find out the total...
Question 12Which clause in SQL is used to apply a condition on a group?WhereHavingAsOn
Question 4Write a query to find out the sum, average, lowest and highest marks in Student table.
Question 5Write a query to find out the sum, average, lowest and highest marks of the students in Student table grouped by STREAM.
Question 6Consider the table "Item" given below and give the outputs on the basis of it:Table: ITEMItemnoInamePrice...
Question 9Write a command to display the name of the current month.
Question 10Write a command to print the day of the week of your birthday in the year 1999.
Question 13Write a query to find out the number of students in each Stream in STUDENT table.
Question 14Consider the given table Faculty and answer the questions that follow:Table:...
Question 15Consider the following EMP and DEPT tables:Table:...
Question 16Write a MySQL command for creating a table PAYMENT whose structure is given below:Table: PAYMENTField NameData...
Question 17Consider the table Product shown below:Table: PRODUCTP_IDProductNameManufacturerPriceP001MoisturizerXYZ40P002SanitizerLAC35P003Bath...
Question 18Consider the table RESULT given below. Write commands in MySQL for (a) to (d) and output for (e) to (g):Table:...
Question 19Write the SQL query commands based on the following table:Table:...
Question 20Consider the CUSTOMERS table having the following records:Table:...
Question 21Consider the following tables WORKER and PAYLEVEL and answer the questions:Table: WORKERECODENAMEDESIGPLEVELDOJDOB11Sachin...
Question 22Consider the tables given below and answer the questions that follow:Table:...
Question 23Consider the following structure of TEACHER and STUDENT table:Table: TEACHERTeacherIDTNameCitySubjectQualificationDesignationPayTable:...
Question 24Consider the following table and answer the questions that follow:Table: TEACHERIDNameDepartmentHiredateCategoryGenderSalary1Tanya...
Question 25Write SQL commands and the output for the following queries:Table:...
Question 26Consider the following table:Table: ITEMItemnoInamePriceQuantity101Soap50100102Powder10050103Facecream15025104Pen50200105Soapbox20100Write...
Question 27Write the output produced by the following SQL commands:(a) SELECT POW(2,3);(b) SELECT ROUND(123.2345, 2) ,ROUND(342.9234,-1);(c) SELECT...