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

SQL

Uploaded by

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

SQL

Uploaded by

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

a)

create database IP;

b)
create table student
(
student_id integer(6) not null primary key,
class integer(2),
section char(1),
gender char(1),
name varchar (25) not null,
DOB date,
marks integer(5));

c)
insert into student values(15435,11,"G","M","rohit","2007-03-30",91);
insert into student values(15436,11,"H","M","satish","2007-07-24",94);
insert into student values(15439,11,"G","M","george","2006-11-27",85);
insert into student values(15432,10,"F","F","yuktha","2008-05-05",87);
insert into student values(15429,11,"H","M","jaideep","2007-01-21",93);
insert into student values(15434,10,"F","F","pooja","2007-08-13",89);
insert into student values(15441,10,'F','F','priya','2007-12-05',80);
insert into student values(15443,9,'F','M','aarav','2008-08-20',88);
insert into student values(15444,12,'H','M','arjun','2005-09-08',85);
insert into student values(154457,10,'F','F','isha','2007-07-18',90);

d)
select* from student;

e)
select* from student where marks>50;

f)
select student_id,name,DOB from student where DOB between ‘2005-01-01’ and ‘2005-
12-31’;

You might also like