0% found this document useful (0 votes)
3 views

cs pr 12

Uploaded by

12dcsbest
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

cs pr 12

Uploaded by

12dcsbest
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 56

JAIN INTERNATIONAL RESIDENTIAL

SCHOOL

KANAKAPURA, KARNATAKA

PRACTICAL FILE

For

AISSCE 2023 Examination


[As a part of the Computer Science
Course (083)]

SUBMITTED BY
AMISHI GOYAL
JAIN INTERNATIONAL RESIDENTIAL SCHOOL
KANAKAPURA, KARNATAKA

This is to certify that Miss Amishi Goyal of class XII D has

satisfactorily completed the course of programs in practical

Session 2023-24 in partial fulfilment of CBSE’s AISSCE

Examination 2024.

Name: Amishi Goyal


Reg No.: ……………………………

………………………… ……………………………..
Signature of External Examiner Signature of Internal Examiner

Signature of Principal ………………….


Place: JAKKASANDRA
Date: ……………..

CONTENTS

S.No Date Name Of Program Page No. Remarks

1 10 – 6 – 24 MATH OPERATIONS 1

2 20-6-24 ARMSTRONG NUMBER 2

3 30-6-24 PRIME NUMBER 3

4 6-7-24 FACTORIAL OF A NUMBER 4

5 13-7-24 PALINDROME 5-6

6 20-7-24 INDEX OF NON-ZERO 7


ELEMENTS

7 3-8-24 AREA OF SHAPES 8-9

8 10-8-24 TEXT FILE-I 10

9 17-8-24 TEXT FILE-II 11

10 24-8-24 TEXT FILE-III 12

11 31-8-24 TEXT FILE-IV 13

12 7-9-24 BINARY FILE-I 14-15


13 14-9-24 BINRY FILE-II 16-17

14 21-9-24 CSV FILE-I 18-19

15 28-9-24 CSV FILE-II 20-21

16 6-10-24 STACK 22-24

17 19-10-24 DATABASE CONNECTIVITY- 25-26


I

18 26 - 10-24 DATABASE CONNECTIVITY- 27-28


II
19 16-11-24 DATABASE CONNECTIVITY- 29-30
III

20 23-11-24 DATABASE CONNECTIVITY- 31-32


IV

21 1-12-24 MYSQL SET -I 33-38

22 5-12-24 MYSQL SET -II 39-45

23 8-12-24 MYSQL SET -III 46-52

24 14-12-24 MYSQL SET -IV 53-57

25 15-12-24 MYSQL SET-V 58-62


PROGRAM 1
AIM: Write a program to enter two numbers and print the sum,
difference, product and quotient of the two numbers.

SOURCE CODE:
a=int(input("enter the 1st no"))
b=int(input("enter the 2nd no"))
p=a*b
s=a+b
d=a-b
q=a/b
print("the product:",p,"the sum:",s,"the difference:",d,"the quotient:",q)
OUTPUT:
enter the 1st no10
enter the 2nd no5
the product: 50 the sum: 15 the difference: 5 the quotient: 2.0
PROGRAM 2
AIM: Write a program to accept a number and print if the number is an
Armstrong number or not.

SOURCE CODE:
a=int(input("enter the number:"))
s=0
l=len(str(a))
t=a
while t>0:
b=t%10
s+=b**l
t//=10
if a==s:
print("the no is armstrong no”)
else:
print(“the no is not Armstrong no”)
OUTPUT:
enter the number:150
the no is armstrong n0
PROGRAM 3
AIM:Write a program to accept a number and print if the number is a
prime number or not.

SOURCE CODE:
a=int(input("enter the number"))
if a==2:
print("the number is prime")
elif a%2==0:
print("the no is prime")
else:
print("the no is prime no")
OUTPUT:
enter the number50
the no is prime
PROGRAM 4
AIM:Write a program to create a function factorial to accept a number
and print the factorial of the number.

SOURCE CODE:
def factorial():
p=1
a=int(input("enter the no:"))
for i in range(1,a+1):
p=p*i
print(p)
factorial()
OUTPUT:
enter the no:4
24
factorial()
PROGRAM 5
AIM:Write a program to create a function words to accept a string and
print the number of words in the string, function palindrome to
print if the string is palindrome and function count to count the
occurrence of the letter ‘T’ in the string.

SOURCE CODE:
def stringop():
sum=1
x=0
a=input(“enter the string:”)
for i in range(0,len(a)):
if(a[i]==” “):
sum+=1
if(a[i]==”t”):
x+=1
if(a[::-1]==a):
z=”palindrome”
else:
z=”not palindrome”
return(sum,x,z)
a1,b1,c1=stringop()
print(“the number of words=”,a1)
print(“the number of t’s=”,b1)
print(c1)
OUTPUT:
enter the string:hi u
the number of words= 2
the number of t’s= 0
not palindrome
PROGRAM 6
AIM: 6. A Program to enter a list of elements and pass the list to a
function and display the elements and index of the non-zero
elements.

SOURCE CODE:
def index_list(l):
t=[]
for i in range(0,len(l)):
if l[i]!=0:
t.append(i)
return(t)
d=eval(input(“enter”))
print(index_list(d))
OUTPUT:
enter[10,2,3,22,50]
[0, 1, 2, 3, 4]
PROGRAM 7
AIM: A program to find area of different shapes using user defined
functions.

SOURCE CODE:
choice="yes"
def circle():
r=int(input("enter the radius"))
print("area=",r**2)
def rectangle():
l=int(input("enter the length"))
b=int(input("enter the breadth"))
print("area=",l*b)
def square():
s=int(input("enter the side"))
print("area",s**2)
def triangle():
h=int(input("enter the height"))
b=int(input("enter the base"))
print("area=",1/2*b*h)
while(choice=="yes"):
print("1.area of circle")
print("2.area of rectangle")
print("3.area of square")
print("4.area of triangle")
choice1=int(input("enter:"))
if choice1==1:
circle()
if choice1==2:
rectangle()
if choice1==3:
square()
if choice1==4:
triangle()
choice=input("do you want to continue(yes/no)")
OUTPUT:
1.area of circle
2.area of rectangle
3.area of square
4.area of triangle
enter:3
enter the length4
area 16
do you want to continue(yes/no)no
PROGRAM 8
AIM: A program to read a text file line by line and display each word
separated by a #.
SOURCE CODE:
y=open(r'C:\Users\students\Desktop\nike.txt','r')
x=y.read()
z=x.split()
for i in z :
print(i,end='#')
OUTPUT:
Bill#gates#IS#very#rich#man#in#world#decided#to#buy#pakisthan#
PROGRAM 9
AIM: Read a text file and display the number of
vowels/consonants/capital and small letters.
SOURCE CODE:
y=open(r'C:\Users\students\Desktop\cs.txt',"r")
x=y.read()
v=0
c=0
l=0
u=0
for i in x :
if i >= 'a' and i<= 'z' :
l=l+1
elif i in ('a','e','i','o','u') :
v=v+1
elif i >= 'A' and i<='Z':
u=u+1
print(l)
print(v)
print(u)
OUTPUT:
110
3
1
PROGRAM 10
AIM: A program to remove all the lines that contain the character ‘a’ in a file
and write it to another file.
SOURCE CODE:
k=[]
y=open(r'C:\Users\students\Desktop\nike.txt',"r")
z=open(r"C:\Users\students\Desktop\newfile.txt","w")
x=y.readlines()
for i in x :
if 'a' not in i :
k.append(i)
z.writelines(k)
z.close()
OUTPUT:
PROGRAM 11
AIM: A Program to read a text file and count the number of
occurrence of a word in the text file.
SOURCE CODE:
y=open(r'C:\Users\students\Desktop\nike.txt',"r")
a=input("enter the word:")
x=y.read()
c=x.split()
s=0
for i in c:
if i==a:
s=s+1
print("the occurence of the word",a,"is",s)
OUTPUT
enter the word:it
the occurence of the word it is 3
PROGRAM 12
AIM: Create a binary file with roll number and name. Input a roll
number and search the student with a specific roll number and
display the details.

SOURCE CODE:
import pickle
l=[]
def writing():
y=open("stu.dat","wb")
for i in range(1,3):
n=int(input("roll no"))
na=input("name")
l.append([n,na])
pickle.dump(l,y)
y.close()
def reading():
y=open("stu.dat","rb+")
n=int(input("roll no"))
p=y.tell()
a=pickle.load(y)
na=input("name")
for i in a:
if(i[0]==n):
print i[0]
print i[1]
y.close()
def display():
y=open("stu.dat","rb+")
a1=pickle.load(y)
print(a1)
writing()
reading()
display()
OUTPUT:
roll no1
nameprajwal
roll no2
namemanish
roll no3
namemickel
[[1, 'prajwal '], [3, 'mickel']]
PROGRAM 13
AIM: Write a program to create a binary file with roll number,
name and marks. Input a roll number and update the marks.
SOURCE CODE:
import pickle
l=[]
def wr():
y=open("binary13.dat","wb")
for i in range(0,2):
na = input("enter the name:")
roll=int(input("enter the roll no:"))
ma=int(input("enter the marks"))
l.append([na,roll,ma])
pickle.dump(l,y)
y.close()
def read():
y=open("binary13.dat","rb+")
roll=int(input("enter the roll no of the person whose marks is to be
edited:'"))
a=pickle.load(y)
ma=int(input("enter the marks"))
for i in a:
if i[0]==roll:
i[2]=ma
y.close()
def display():
y=open("binary13.dat","rb+")
a1=pickle.load(y)
print(a1)
wr()
read()
display()
OUTPUT:
enter the name:raghav
enter the roll no:2
enter the marks67
enter the name:tanoj
enter the roll no:1
enter the marks90
enter the roll no of the person whose marks is to be edited:'2
enter the marks78
[['raghav', 2, 78], ['tanoj', 1, 90]]
PROGRAM 14
AIM: Program to create the csv file which should contains the
employee details and to search the particular employee based on
emp no and display the details.
SOURCE CODE:
import csv
def addrec():
with open('cs.csv','w',newline='') as f:
b=csv.writer(f)
b.writerow(['UserID','Password'])
ans='y'
while ans in 'Yy':
print('Enter Login Details:')
uID=input("Enter the UserID:")
p=input("Enter the Password :")
b.writerow([uID,p])
ans=input("Do you want to add another record(y/n):")
print("record stored")
def searchrec():
with open('cs.csv','r') as f:
b=csv.reader(f)
ans='y'
while ans in 'Yy':
found=False
uID=input('Enter the UserID which you want to search:')
for r in b:
if str(uID)==str(r[0]):
print("User ID:",r[0],'\nPassword :',r[1])
found=True
break
if found==False:
print('Record not found')
ans=input("Do you want to search another record(y/n):")
addrec()
searchrec()
OUTPUT:
Enter Login Details:
Enter the UserID:3333
Enter the Password :1234
Do you want to add another record(y/n):n
record stored
Enter the UserID which you want to search:3333
User ID: 3333
Password : 1234
Do you want to search another record(y/n):n
PROGRAM 15
AIM: Program to create the csv file which should contains the employee
details and to search the particular employee based on emp no and display
the details.
SOURCE CODE:
import csv
def addrec():
with open('login.csv','w',newline='') as f:
b=csv.writer(f)
b.writerow(['UserID','Password'])
ans='y'
while ans in 'Yy':
print('Enter Login Details:')
uID=input("Enter the UserID:")
p=input("Enter the Password :")
b.writerow([uID,p])
ans=input("Do you want to add another record(y/n):")
print("record stored")
def searchrec():
with open('login.csv','r') as f:
b=csv.reader(f)
ans='y'
while ans in 'Yy':
found=False
uID=input('Enter the UserID which you want to search:')
for r in b:
if str(uID) in r:
print("User ID:",r[0],'\nPassword :',r[1])
found=True
break
if found==False:
print('Record not found')
ans=input("Do you want to search another record(y/n):")
addrec()
searchrec()
OUTPUT:
Enter employ details:
Enter the emp no:1525
Enter emp name :piriyanka attitude
Enter emp salary:10
Do you want to add another record(y/n):y
Enter employ details:
Enter the emp no:1234
Enter emp name :prasun
Enter emp salary:100000000
Do you want to add another record(y/n):n
record stored
Enter the emp no which you want to search:1525
Emp no: 1525
Emp name : piriyanka attitude
Emp salary: 10
Do you want to search another record(y/n):n
PROGRAM 16
AIM: A program to implement the concept of stack.
SOURCE CODE:
l=[]
def push():
n=int(input("enter"))
l.append(n)
print(l)
def pop():
if l==[] or len(l) == 0:
print('stack empty')
else:
l.pop()
def disp():
if l==[]:
print('the stack is empty')
else:
print(l[::-1])
def peak():
if l==[]:
print("stack empty")
else:
print(l[-1])
choice = 'yes'
while choice == 'yes':
print('1.push')
print('2.pop')
print('3.display')
print('4.peak')
choice1 = input('enter the choice')
if choice1 == '1':
push()
elif choice1 == '2':
pop()
elif choice1 == '3':
disp()
elif choice1 == '4':
peak()
choice = input('do you want to continue')
OUTPUT:
1.push
2.pop
3.display
4.peak
enter the choice1
enter11
[11]
do you want to continueno
PROGRAM 17
AIM: A Program to create a product table and insert and display
data.
SOURCE CODE:
import mysql.connector as dd
y=
dd.connect(host="localhost",user="root",password="jirs",charset="u
tf8",database="school")
x=y.cursor()
def ins():
for i in range(0,3):
pid=int(input("id of the product "))
pname=input("name of product")
price=input("price")
c="insert into product values(%s,%s,%s);"
t=(pid,pname,price)
x.execute(c,t)
y.commit()
def display():
q="select * from product where pid = 12;"
x.execute(q)
for i in x :
print(i)
ins()
display()
OUTPUT:
id of the product 12
name of productpen
price100
id of the product 11
name of productpencil
price50
id of the product 13
name of productbook
price300
(12, 'pen', 100)
PROGRAM 18
AIM: A Program to update and display the data after modifying
table.
SOURCE CODE:
import mysql.connector as dd
y=dd.connect(host="localhost",user="root",password="jirs",charset=
"utf8",database="school")
x=y.cursor()
def update1 ():
pid=int(input('pid:'))
pname=input('pname:')
price=input('price:')
q="update product set price = %s,pname = %s where pid = %s ;"
t=(price,pname,pid)
x.execute(q,t)
y.commit()
def display():
q="select * from product ;"
x.execute(q)
for i in x :
print(i)
update1()
display()
OUTPUT:
pid:12
pname:pens
price:1000
(12, 'pens', 1000)
(11, 'pencil', 50)
(13, 'book', 300)
PROGRAM 19
AIM: A Program to display the table then delete a certain row from
the table.

SOURCE CODE:

import mysql.connector as dd
y=
dd.connect(host="localhost",user="root",password="jirs",charset="u
tf8",database="school")
x=y.cursor()
def delete1():
pid=int(input("enter the product id:"))
q="delete from product where pid=%s;"
t=(pid,)
x.execute(q,t)
y.commit()
def display():
q="select * from product;"
x.execute(q)
for i in x :
print(i)
display()
delete1()
display()
OUTPUT:
(12, 'pens', 1000)
(11, 'pencil', 50)
(13, 'book', 300)
enter the product id:11
(12, 'pens', 1000)
(13, 'book', 300)
PROGRAM 20
AIM: A Program to display the records of the products if the price is
more than 1000.

SOURCE CODE:

import mysql.connector as dd
y=dd.connect(host="localhost",user="root",password="jirs",charset=
"utf8",database="school")
x=y.cursor()
def disp2():
q="select * from product where price >= 1000;"
x.execute(q)
for i in x :
print(i)
disp2()
OUTPUT:
(12, 'pens', 1000)
MYSQL QUERIES

Considering the table bank given below write queries for the
following:
1. To display the details about all the Fixed Deposits whose interest rate is not entered.
2. To display the Account number and FD amount of all the Fixed Deposits that are started
before 01-04-2018
3. To display the customer name and FD amount for all the Fixed deposits which do not have
a
number of months as 36.
4. To display the customer name and FD Amount of all the Fixed deposits for which the FD
amount is less than 500000 and int_rate is more than 7.
5. To display the details about all the Fixed deposits which started in the year 2018.
6.To display the details of all the Fixed Deposits whose FD Amount is in the range 40000-
50000
7.To display the Customer name and FD amount for all the loans for which the number of
months is 24,36 or 48(using in operator)
8. To display the Account number, customer name and fd_amount for all the FDs for which
the
customer name ends with “Sharma”;
9.To display the average FD amount. Label the column as “Average FD Amount”
10.To display the total FD amount which started in the year 2018.
11.To display the details about all the FDs whose rate of interest is not in the
range 6% to 7%
12.To display the details about all the FDs whose customer name doesn’t contain the
character
“a”.
13.To update the Interest rate of all the bank Customers from 6.75 to 6.80

ANSWER
1. Select * from Fixed_Deposits where Int_rate is null;
2. Select Accno, FD_amount from Fixed_Deposits where FD_Date < “01-04-2018”;
3. Select CUST_Name from Fixed_Deposits where Months <> 36;
4. Select CUST_Name, FD_amount from Fixed_Deposits where FD_Amount<500000 and
Int_Rate>7;
5. Select * from Fixed_Deposits where year(FD_Date)=2016;
6. Select * from Fixed_Deposits where FD_Amount between 40000 and 50000;
7. Select CUST_Name, FFD_Amount from Fixed_Deposits where Months in (24,36,48);
8. Select ACCNo, CUST_Name, FD_amount from Fixed_Deposits where CUST_Name like
“%Sharma”;
9. Select avg(FD_Amount) “Average FD Amount” from Fixed_Deposits;
10. Select sum(FD_Amount) from Fixed_Deposits where year(FD_Date)=2018;
11. Select * from Fixed_Deposits where Int_Rate not between 6 and 7;
12. Select * from Fixed_Deposits where CUST_Name not like “%a%”;
13. Update Fixed_Deposits set Int_Rate 6.80 where Int_Rate=6.75;
Output:
1.

2.

4.

5.

6.

7.
8.

9.

10.

11.

12.

13.
AIM :
To manipulate the table CLUB using MySQL Queries.

MySQL QUERIES:
1. To show all information about the Swimming coaches in the Club
2. To list the names of all coaches with their date of appointment in descending
order.
3. To display coach name, pay ,age and bonus(15% of pay)
4. To display the distinct sports from the club.
5. To display the details about the female coaches in the club
6. To display the coach names, sports , pay and date_of_app of all the coaches whose
name ends with “n”.
7. To display the coach name, sports , age and pay of all the coaches whose pay is in
the range 2000-2500
8. To display the details about all the coaches who are above 30 in age and coach a
sport starting with the letter “s”.
9. To display the number of coaches available for every sports.
10. To display the average Pay given for a coach for every sports activity.
11. To display the details about all the male coaches who joined after 15th February
12. To display the coach id , names and age of all the coaches who coach neither
Swimming nor Basketball
13. To display the names of all the sports in the club which have more than 2 coaches.
14. To display the total salary given for male and female coaches in the club.
ANSWER:
1. Select * from club where sports = "swimming";
2. Select coachname, date_of_app from club order by date_of_app desc;
3. Select coachname, pay, age, 0.15*pay as bonus from club;
4. Select distinct sports from club;
5. Select * from club where sex = "f";
6. Select coachname, sports, pay, date_of_app from club where coachname like '%n';
7. Select coachname, sports, age, pay from club where pay between 2000 and 2500;
8. Select * from club where age > 30 and sports like 's%';
9. Select sports, count(*) as num_coaches from club group by sports;
10. Select sports, avg(pay) as avg_pay from club group by sports;
11. Select * from club where sex = "m" and date_of_app > '2022-02-15';
12. Select coach_id, coachname, age from club where sports not in ("swimming", "basketball");
13. Select sports from club group by sports having count(*) > 2;
14. Select sex, sum(pay) as total_salary from club group by sex;
Output:
1.

2.

3.

4.
5.

6.

7.

8.
9.

10.

11.

12.

13.

14.
MySQL QUERIES:
1. To show all the information about the patients of the cardiology department.
2. To list the names of female patients who are either in the orthopaedic or surgery
department.
3. To display various departments in the hospital.
4. To display the number of patients in each department.
5. To display details of all the patients whose name’s second character is “a”.
6. To display the details of all the patients who was admitted in the year 2019.
7. To display the details about all the patients in the reverse alphabetical order of
their names.
8. To display the average charges collected in every department.
9. To display the patient detail whose age is missing.
10. To display the names of the patients who are charged in the range 300 and
400(both inclusive)
11. To display the number of patients who are aged above 30.
12. To display the names of the department and the number of patients in the
department that have more than one patient.
13. To delete the record of the patient “Kush”.
14. To decrease the charges by 5% of all the patients admitted to the ENT department.
15. To add another column DOCNAME of datatype varchar(20) into the table hospital.

ANSWER:
1. Select *from patients where department = 'cardiology';
2. Select name from patients where sex = 'f' and (department = 'orthopaedic' or department =
'surgery');
3. Select distinct department from patients;
4. Select department, count(*) as num_patients from patients group by department;
5. Select *from patients where name like '_a%';
6. Select *from patients where year(dateofadm) = 2019;
7. Select *from patients order by name desc;
8. Select department, avg(charges) as avg_charges from patients group by department;
9. Select *from patients where age is null;
10. Select name from patients where charges between 300 and 400;
11. Select count(*) as num_patients from patients where age > 30;
12. Select department, count(*) as num_patients from patients group by department having
count(*) > 1;
13. Delete from patients where name = 'kush';
14. Update patients set charges = charges * 0.95 where department = 'ent';
15. Alter table patients add column docname varchar(20);

OUTPUT:
1.

2.

3.

4.
5.

6.

7.
8.

9.

10.

11.

12.

13.

14.
15.
MYSQL Queries:

1. To display the natural join of the tables items and traders.


2. To display the number of items traded by every Trader.
3. To display the Item name, company, trader name and city of all the items
4. To display the Item name and Trader name of all the items that are either from
Delhi or Mumbai
5. To display the minimum and maximum price of the item traded by every trader.
6. To display the average price of an item traded by every trader.
7. To display the Item name and trader name of all the items in the alphabetical order
of the item names.
8. To display the names of the traders whose average price of an item is not more
than 20000.
9. To display the details about all the items whose price is in the range
10. To display the total number of quantity of items available for every trader.
ANS:

1. Select *from items natural join traders;


2. Select tname, count(*) as num_items from items natural join traders group by tname;
3. Select iname, company, tname, city from items natural join traders;
4. Select iname, tname from items natural join traders where city in ('delhi', 'mumbai');
5. Select tname, min(price) as min_price, max(price) as max_price from items natural join
traders group by tname;
6. Select tname, avg(price) as avg_price from items natural join traders group by tname;
7. Select iname, tname from items natural join traders order by iname asc;
8. Select tname from traders natural join items where price<20000;
9. Select *from items natural join traders where price between 10000 and 30000;
10. Select tname, sum(qty) as total_qty from items natural join traders group by tname;

OUTPUT:

1.

2.

3.
4.

5.

6.

7.

8.

9.
10.
TABLE:DEPT

MYSQL Queries:

Q1. To display the department name, code and number of workers in every department.

Q2. To display the details about all the workers whose Wno is either 1003, 1005 or 1007

Q3. To display the names and date of joining of all the workers in Kolkata

Q4. To display the number of male and female workers.

Q5. To display Wno,name ,Gender,department in descending order of Wno

Q6. To display the names of all the departments where more than one worker are available.

Q7. To display the wno,name,department of all the workers who are born between “1987-01-01”
and “1991-12-01”

Q8. To display wno,name ,department city of all the workers whose name contains the letter “ s” and
who are not in Mumbai and delhi

Q9. To count and display the number of male workers who have joined after “1986-01-01”

Q10. To display the details of all the male workers in the finance department.
ANS:

1. Select department,dcode,count(wno) from workers natural join dept group by dcode;


2. Select * from workers natural join dept where wno in (1003,1005,1007);
3. Select name,doj from workers natural join dept where city like “Kolkata”;
4. Select count(gender)&quot;no.of workers&quot;,gender from workers group by gender;
5. Select wno,name,gender,department from workers natural join dept order by wno desc;
6. Select department from workers natural join dept group by dcode having count(wno)>1;
7. Select wno,name,department from workers natural join dept where dob>=”1987-01-01” and
dob<=”1991-12-01”;
8. Select wno,name,department,city from workers natural join dept where name like “%s” and
city not in (“Mumbai”,”Delhi”);
9. Select count(wno) from workers where doj>=”1986-01-01” and gender like “male”;
10. Select * from workers natural join dept where gender like “male” and department like
“finance”;

OUTPUT:

1.

2.

3.

4.
5.

6.

7.

8.

9.

10.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy