-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSQLQuery2.sql
More file actions
35 lines (30 loc) · 1023 Bytes
/
Copy pathSQLQuery2.sql
File metadata and controls
35 lines (30 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
create table customer(
cid int Identity(1,1) primary key,
cname varchar (250) not null,
mobile bigint not null,
nationality varchar (250) not null,
gender varchar (50) not null,
dob varchar(50) not null,
idproof varchar (250) not null,
addres varchar (350) not null,
checkin varchar (250) not null,
checkout varchar (250),
chekout varchar (250) not null default 'NO',
roomid int not null,
foreign key (roomid) references rooms (roomid)
);
select * from customer
cid,cname,mobile,nationality,gender,dob,idproof,addres,checkin,checkout,chekout,roomid
select * from rooms
create table employee(
eid int identity(1,1) primary key,
ename varchar(250) not null,
mobile bigint not null,
gender varchar(50) not null,
emailid varchar (120) not null,
username varchar (150) not null,
pass varchar(150) not null
);
ename,mobile,gender,emailid,username,pass
select * from employee
insert into employee(ename,mobile,gender,emailid,username,pass) values ('Jenil','8200861413','Male','jenil7011@gmail.com','jazzie33','18103633');