Refine
All questions
351 resultsAn attribute used in the GROUP BY clause must also appear:
Show answer
How many times does the loop body execute? for(int count=3; count<=15; count = count + 3)
Show answer
A SELECT query that finds no matching rows results in:
Show answer
For String myString = "Computer Science"; what does myString.length() return?
Show answer
Using arithmetic operators (like *, +, -) is allowed directly within a SELECT clause, e.g., Salary*1.1 AS New_Salary.
Show answer
For String myString = "Computer Science"; what does myString.toUpperCase() return?
Show answer
Boolean operators AND and OR can be used within a WHERE clause to combine multiple conditions.
Show answer
For String myString = "Database System"; what does myString.length() return?
Show answer
A nested (subquery) approach can always be rewritten using an equivalent JOIN-based query for these kinds of examples.
Show answer
For String myString = "Database System"; what does myString.toUpperCase() return?
Show answer
Write an SQL query to retrieve all information about the Teacher with Teacher_ID = 101.
Show answer
For String myString = "Java Programming"; what does myString.length() return?
Show answer
Write an SQL query to find the first and last names of all teachers earning more than 50000.
Show answer
For String myString = "Java Programming"; what does myString.toUpperCase() return?
Show answer
Write an SQL query to display Teacher_ID, First_Name, Last_Name and Dept_No of teachers who belong to department number 4 or 7.
Show answer
Write an SQL query using a join to retrieve names of all teachers and the names/numbers of their respective departments.
Show answer
Write an SQL query to retrieve the names of teachers working in the Chemistry department (using a join).
Show answer
Write an SQL query using table aliases T (Teacher) and D (Department) to retrieve names of teachers in the Hindi department.
Show answer
Write an SQL query to list distinct department numbers having male teachers.
Show answer
Write an SQL query to retrieve names of teachers whose first name starts with the letter 'S'.