SQL QUERIES : Schema and content of tables used in our tutorials.
In a survey, the information about students of a college is collected. Following is the schema :( This will form the basis for the tutorials about SQL Queries ). Student ( SName , St_Id , Bdate , Address, Sex, Br_No)Branch (BName , BNo)Courses ( CName,CId,BNo)Resources ( St_Id, CId, No_of_Resources)The database for the schema :Student:SName | St_Id | Bdate | Address | Sex | Br_No | Anjali | 1201 | 26-06-1991 | 12,Lajpat Nagar,Delhi | F | 5 | Ahmad | 1202 | 20-10-1990 | 2113,Sec42,Chandigarh | M | 5 | Sonia | 1203 | 19-02-1990 | 19,Patel Road, Delhi | F | 3 | Mudit | 1204 | 22-05-1990 | 54/A,RiverRidge, Pune | M | 4 | Vamsi | 1205 | 04-03-1991 | 78-1,Sec10,Bhilai | M | 1 | Namita | 1206 | 22-01-1992 | N-56,UdayShree, Jaipur | F | 4 | Himmi | 1207 | 25-04-1989 | 45,Jubliee Hills,Hyderabad | M | 2 | Goral | 1208 | 31-03-1992 | 89/C,Nilgiri Flats, Ajmer | F | 2 | Parag | 1209 | 15-08-1993 | 56A,EatStreet,Chennai | M | 3 | Varun | 1210 | 05-09-1990 | 23/1,West Kings, Pune | M | 1 | Gaurav | 1211 | 07-07-1991 | P-63, Deodar Road,Patiala | M | 5 | Tanvi | 1212 | 11-09-1991 | 10-C, MG Road, Kanpur | F | 4 |
Branch:BName | BNo | Comp.Sci | 1 | Electronics | 2 | Mechanical | 3 | Chemical | 4 | Civil | 5 |
Course:CName | CId | BNo | Data Structures | 11 | 1 | Chemical Analysis | 21 | 4 | Circuit Design | 31 | 2 | Automobile Engg | 41 | 3 | Organic Chemistry | 51 | 4 | Building Engg | 61 | 5 | Operating Systems | 71 | 1 | Electrical Science | 81 | 2 |
Resource:St_Id | CId | No_of_Resources | 1201 | 61 | 4 | 1202 | 61 | 2 | 1203 | 41 | 5 | 1204 | 21 | 3 | 1205 | 11 | 2 | 1205 | 71 | 6 | 1206 | 21 | 8 | 1206 | 51 | 3 | 1207 | 41 | 6 | 1208 | 31 | 2 | 1208 | 81 | 1 | 1209 | 41 | 4 | 1210 | 11 | 2 | 1210 | 71 | 4 | 1211 | 61 | 6 | 1212 | 51 | 7 |
|
|