You are on page 1of 42

Sql Codes

1.
(i)

(ii)

(iii)

Page 1 of 42
(iv)

(v)

(vi)

(vii)

Page 2 of 42
(viii)

(ix)

(x)

Page 3 of 42
(xi)

(xii)

(xiii)

Page 4 of 42
(xiv)

(xv)

Page 5 of 42
2.
(i)

(ii)

(iii)

Page 6 of 42
(iv)

(v)

a)

Page 7 of 42
b)

c)

d)

e)

Page 8 of 42
f)

g)

h)

i)

Page 9 of 42
j)

k)

l)

Page 10 of 42
3.
(i)

(ii)

(iii)

Page 11 of 42
(iv)

4.
(i)

(ii)

Page 12 of 42
(iii)

(iv)

Foreign key in the table EMPLOYEE is JOBID and it references its value from the table JOB and the
column of the same name. On describing the table it shows it as not as Foreign key but “mul” key
because it has multiple values,ie,same JOBID for more than 1 person.

(v)

Page 13 of 42
5.
(i)

(ii)

Page 14 of 42
(iii)

(iv)

(v)

Page 15 of 42
Python Codes
Class XI Revision
P1

P2

Page 16 of 42
P3

Page 17 of 42
Functions
P4

Page 18 of 42
P5

P6

Page 19 of 42
P7

P8

Page 20 of 42
P9

P10

Page 21 of 42
Interface Python with MYSQL
P11

Page 22 of 42
Page 23 of 42
Page 24 of 42
P12

Page 25 of 42
Page 26 of 42
Page 27 of 42
Page 28 of 42
File Handling
P13

P14

Page 29 of 42
P15

P16

Page 30 of 42
P17

Page 31 of 42
P18

P19

Page 32 of 42
P20

P21

Page 33 of 42
P22

Page 34 of 42
P23

P24

P25

Page 35 of 42
P26

Page 36 of 42
Page 37 of 42
P27

Page 38 of 42
P28

Page 39 of 42
P29

P30

Page 40 of 42
P31

P32

P33

Page 41 of 42
Page 42 of 42

You might also like