Main
Main
f=open("C://py//record.txt","r")
count=0
lno=1
lines=f.readlines()
for l in lines: #read line by line
words=l.split() #seperate words in each line
line=""
for w in words:
if w==words[0]:
line+=w.upper()+" "
else:
line+=w+" "
================================================
OUTPUT
================================================
============================================
MYSQL COMMANDS
============================================
UPDATED TABLE:-
TO CHANGE THE DATA TYPE OF EMPNAME FROM
VARCHAR(25) TO CHAR(20).
Table2: dept
DEPTNO DNAME LOC
10 ACCOUNTING NEW DELHI
20 RESEARCH CHENNAI
30 SALES KOLKATA
40 OPERATIONS MUMBAI
LEFT-JOIN: You can use left join clause in select to produce left
join i.e. when using left join all rows from the first table will be
returned whether there are matches in the second table or not.
For unmatched rows of first table, null is shown in columns of
second table.
Consider the following two tables
S1 S2
Roll_no Name Roll_no Class
1 A 2 III
2 B 4 IX
3 C 1 IV
4 D 3 V
5 E 7 I
6 F 8 II