Select the query to display all the columns from the student table whose score is in the range of 80 to 90.
Question
Select the query to display all the columns from the student table whose score is in the range of 80 to 90.
SELECT *
FROM student
WHERE score BETWEEN 80 AND 90;
Solution
The SQL query to display all the columns from the student table whose score is in the range of 80 to 90 would be:
SELECT *
FROM student
WHERE score BETWEEN 80 AND 90;
Here's a step-by-step breakdown of the query:
-
SELECT *
: This statement is used to select all the columns from the table. -
FROM student
: This statement specifies the table from which we want to retrieve data, in this case, the 'student' table. -
WHERE score BETWEEN 80 AND 90
: This is a condition to filter the records. It selects the records where the 'score' is between 80 and 90.
Similar Questions
Write a program to write data into binary file marks.dat anddisplay the records of students who scored more than 95marks.
The provost wants to see the number of students in each major. Write a MySQL statement to display this.
Marks scored by 104 students of a college in the mid-term exam given below. Draw histogram. Marks No. of students 0-24 12 24-40 16 40-48 24 48-68 40 68-80 12
Raja scored 32% in an examination and his score was 480. what is the maximum marks for the examination?Options16001500 1450 None
Enter the student details using constructors with arguments. Then find the total marks of each student. If it is greater than 500 print pass ,else print fail.
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.