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

DB Lab 1

The document contains 5 MySQL queries to retrieve student information from a database table: 1) selects female students' id, name, intake, section, and blood, 2) selects male students' id, name, address, and blood, 3) selects students born before 1996-01-01, 4) selects students whose blood group is not provided, 5) selects the student whose father is Md. Nasir Uddin.

Uploaded by

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

DB Lab 1

The document contains 5 MySQL queries to retrieve student information from a database table: 1) selects female students' id, name, intake, section, and blood, 2) selects male students' id, name, address, and blood, 3) selects students born before 1996-01-01, 4) selects students whose blood group is not provided, 5) selects the student whose father is Md. Nasir Uddin.

Uploaded by

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

Name: Abu Oubaida

ID: 18191203020

Database MySQL Query Basic-1


a. Show id, name, intake, section and blood of all female students:

==> SELECT std_id, std_name, std_intk, std_sec, std_blood FROM `tbl_student`


WHERE std_gender='female';

b. Show all male students’ id, name, address and blood

===> SELECT std_id, std_name, std_addrs, std_blood FROM `tbl_student` WHERE


std_gender='male';

c. Find those people whose date of birth is before 1996-01-01

====>SELECT * FROM `tbl_student` WHERE std_dob<'1996-01-01';

d. Show whose blood group is not given in table

=====> SELECT * FROM `tbl_student` WHERE std_blood=null;

e. Show the student information whose father is Md. Nasir Uddin

=====> SELECT * FROM `tbl_student` WHERE std_father='Md. Nasir Uddin';

You might also like