-
Notifications
You must be signed in to change notification settings - Fork 0
/
lab 7.txt
69 lines (38 loc) · 1.15 KB
/
lab 7.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
SQL> create table student_1(StudentID int not null,StudentName varchar(20),Marks int);
Table created.
SQL> insert into student_1 values(1,'Sanjay',64);
1 row created.
SQL> insert into student_1 values(2,'Varun',72);
1 row created.
SQL> insert into student_1 values(3,'Akash',45);
1 row created.
SQL> insert into student_1 values(4,'Rohit',86);
1 row created.
SQL> insert into student_1 values(5,'Anjali',92);
1 row created.
SQL> insert into student_1 values(6,'Ammu',95);
1 row created.
SQL> insert into student_1 values(7,'Rahul',80);
1 row created.
SQL> insert into student_1 values(8,'Prathibha',62);
1 row created.
SQL> insert into student_1 values(9,'Ravi',75);
1 row created.
SQL> insert into student_1 values(10,'Pulkit',76);
1 row created.
SQL> select count(StudentName)from student_1 where Marks>75;
COUNT(STUDENTNAME)
------------------
5
SQL> select avg(Marks) from student_1;
AVG(MARKS)
----------
74.7
SQL> select min(Marks) from student_1;
MIN(MARKS)
----------
45
SQL> select max(Marks) from student_1;
MAX(MARKS)
----------
95