0% found this document useful (0 votes)
3 views

Board practical sql query

The document contains a series of SQL queries related to a student table named 'STU'. It includes requests to display student details, filter by age and department, and count students by gender. The queries also focus on specific conditions such as names starting with 'A' and containing 'n', as well as handling NULL values in the department field.

Uploaded by

stonkies369
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Board practical sql query

The document contains a series of SQL queries related to a student table named 'STU'. It includes requests to display student details, filter by age and department, and count students by gender. The queries also focus on specific conditions such as names starting with 'A' and containing 'n', as well as handling NULL values in the department field.

Uploaded by

stonkies369
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SQL BOARD WORKSHEET

Table : Stu

i. Write a Query to display all the details of the student from the above table 'STU'.
ii. Write a Query to list name of the students whose ages are between 18 to 20.
iii. Write a Query to display the name of the students whose name is
starting with 'A'.
iv. Write a Query to select distinct Department from STU table.

i. Write a query to display Rollno, Name and Department of the students from STU
table.
ii. Write a query to Display Name of all students whose dept Contains NULL.
iii. Write a Query to list name of female students in Hindi Department.
iv. Write a query to list the names of those students whose name have second alphabet
'n' in their names.

i. Write a query to show all information about students of History department.


ii. Write a query to display Name, DOB and fees of the students from STU table.
iii. Write a Query to list name of the students whose ages are between 20 to 25.
iv. Write a query to count the number of male and female students.
i. Write a query to display the names and age in descending order of the age.
ii. Write a query to display all information about students of Computer department.
iii. Write a query to display names of female students in Hindi department
iv. Write a query to count number of students in each department.

i. Write a query to display all information about students of Computer department.


ii. Write a Query to list name of the students whose ages are between 20 to 25.
iii. Write a query to Display Name of all students whose department Contains NULL.
iv. Write a Query to display all the details of the student from the above table 'STU'.

You might also like