Professional Documents
Culture Documents
1)
Table countries
Here in the following is the structure of the table countries.
+--------------+---------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------------+---------------+------+-----+---------+-------+
| COUNTRY_ID | varchar(2) | YES | | NULL | |
| COUNTRY_NAME | varchar(40) | YES | | NULL | |
| REGION_ID | decimal(10,0) | YES | | NULL | |
+--------------+---------------+------+-----+---------+-------+
1. Write a SQL statement to insert a record with your own value
into the table countries against each columns.
Table Grades
Questions
1. A list of all students who scored over 90 on his or her math
paper?
2. A list of all students who scored more than 85 in all
subjects?
3. Find out total marks of all the students.
4. What are the average marks of the class for each subject?
5. What are the minimum marks in Math?
6. What are the maximum marks in Math?
7. Who got the highest marks in Math?
3)
Table Resident
Create a tables and include the residents
Questions
1) A list of all the residents.