Professional Documents
Culture Documents
PRACTICAL FILE
INFORMATICS PRACTICES
(CODE NO. - 065)
SESSION – 2021-22
(2,12,'a','m','ravi','2003-10-06',80),
(3,10,'a','m','naman','2004-02-08',86),
(4,12,'a','m','ram','2003-10-01',80),
(5,12,'c','m','arjun','2004-09-23',83),
(6,10,'c','m’,'ayush','2004-04-19',94),
(7,12,'a','m','pratik','2003-12-09',92),
(8,12,'b','m','tarun','2003-12-03',80),
(9,12,'a','m','rishi','2004-10-03',79),
(10,10,'a','m','ritvik','2002-02-07',90);
4. To delete the details of a particular
student from the above table.
]
delete from student where student_id=8;
Select power(10,3)”Raised”;
ROUND()
Select round(11.478,1)”Round”;
MOD()
Select mod(10,3)”Modulus”;
UPPER()/UCASE()
MID()/SUBSTRING()/SUBSTR()
select substr('ABCDEFGHIJK',4,7)"Subs";
LENGTH()
select length(‘MALDIVES’)”length in charecters”;
LEFT()
select left(‘MALDIVES’,2);
RIGHT()
select right(‘MALDIVES’,2);
INSTR()
TRIM()
NOW()
select NOW();
DATE()
select DATE('2021-07-30 01:02:03');
MONTH()
select MONTH('2021-07-30');
MONTHNAME()
select MONTHNAME('2021-07-30');
YEAR()
select YEAR('2021-07-30');
DAY()
select DAY('2021-07-30');
DAYNAME()
select DAYNAME('2021-07-30');
Select trim(‘panorama’);
select*from student;
select*from student;
update student set marks=marks*2;
select*from student;
);
(1006,’phones’ ,’2021-11-26’,’ASUS’,9500.00,400);
34. Create a table loan with details
Acc_No , Cust_Name, Loan_Amt ,
Installment , Int_rate , Start_Date.
Cust_Name varchar(30),
Int_rate float(5,3),
Start_Date date);
35. Write a command to display
acc.no., customer name and loan amt.
of all loans.