SQLQuery 1

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

use Training;

create table customer (customer_id int, first_name varchar(255), last_name


varchar(255), email varchar(255), address varchar(255),
city varchar(255), state varchar(255), zip int);

select * from customer;

insert into customer values(1,'Ganesh','Gowda','ganesh@gmail.com','Wall


Street','San Jose', 'California', 94088);

insert into customer values(2,'Suarj','Pendakur','suraj@gmail.com','Wall


Street','San Diego', 'California', 94085);

insert into customer values(3,'Girish','Gowda','girish@gmail.com','Richard


Town','San Jose', 'California', 94081);

insert into customer values(4,'Pradeep','Gowda','pradeep@gmail.com','Boston','Los


Angeles', 'California', 94076);

insert into customer


values(5,'Gowrav','Gowda','gowrav@gmail.com','Fransciso','Chicago', 'California',
94088);

select first_name,last_name from customer;

select * from customer where first_name like 'G%' and city = 'San Jose'

You might also like