-
Notifications
You must be signed in to change notification settings - Fork 0
/
Events.sql
104 lines (89 loc) · 4.19 KB
/
Events.sql
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
create database Events;
create table Events.contactus(
id int auto_increment primary key,
name varchar(50),
email varchar(50),
contact varchar(15),
query varchar(1000)
);
insert into Events.contactus values(null,'Naduni','[email protected]','0716889954','Hello EventUs');
insert into Events.contactus values(null,'Pavani','[email protected]','0716889456','Hi How Are You?');
insert into Events.contactus values(null,'Nadith','[email protected]','0711289954','Thank you for your service');
insert into Events.contactus values(null,'Anoma','[email protected]','0716129954','Send me your package details');
insert into Events.contactus values(null,'Manuth','[email protected]','0714289954','Thank you for your mail');
CREATE TABLE Events.employees(
id int auto_increment primary key,
nic varchar(15),
fname varchar(15),
lname varchar(15),
appDate varchar(20),
email varchar(50),
contact varchar(20),
gender varchar(10),
department varchar(30)
);
insert into Events.employees values(null,'966740449V','Naduni','Ranasinghe','21/5/2018','[email protected]','0772889964',
'female','Marketing');
insert into Events.employees values(null,'956740449V','Niluni','De Silva','31/5/2018','[email protected]','0772889965',
'female','Entertainment');
insert into Events.employees values(null,'967740449V','Achinthya','Subasinghe','21/4/2017','[email protected]','0762889964',
'female','Deco');
insert into Events.employees values(null,'966740449V','Sehani','Seneviratne','21/2/2018','[email protected]','0712889964',
'female','Deco');
insert into Events.employees values(null,'965740449V','Kamal','Sirisena','10/5/2018','[email protected]','0772882964',
'male','Marketing');
create table Events.admin(
id int auto_increment primary key,
fullname varchar(20),
Aduname varchar(20),
Adpwd varchar(20),
email varchar(30)
);
insert into admin values(null,'Naduni Rnasinghe','naduni','nadnew','[email protected]');
insert into admin values(null,'Niluni De Silva','niluni','nilnew','[email protected]');
insert into admin values(null,'Achini Subasinghe','achini','achinew','[email protected]');
insert into admin values(null,'Pasindu Liyanage','pasindu','pasinew','[email protected]');
insert into admin values(null,'Shehani Seneviratne','sehani','sehinew','[email protected]');
create table Events.eventus1(
eventId int auto_increment primary key,
username varchar(20),
name varchar(50),
eventType varchar(20) default null,
deco varchar(30),
entertain varchar(30),
contact varchar(20)
);
insert into Events.eventus1 values(null,'nilu','Niluni De Silva','bday','balloons', 'DJ','0112889964');
insert into Events.eventus1 values(null,'nadu','Naduni Ranasinghe','party','flowers', 'band','0112689964');
insert into Events.eventus1 values(null,'achini','Achini De Silva','wedding','flowersballoons', 'no','0113289964');
insert into Events.eventus1 values(null,'pasi','Pasindu liyanage','wedding','balloons', 'DJ','011489964');
insert into Events.eventus1 values(null,'shehi','Shehani De Silva','bday','balloons', 'band','0112823964');
create table Events.eventloc(
locId int auto_increment primary key,
locName varchar(50),
Quantity int,
eventDate varchar(20)
);
insert into Events.eventloc values(null,'Heaven kandy',150,'12/5/2017');
insert into Events.eventloc values(null,'Grand City',200,'12/1/2017');
insert into Events.eventloc values(null,'City Heaven',450,'12/5/2016');
insert into Events.eventloc values(null,'City view',500,'12/5/2017');
insert into Events.eventloc values(null,'Heaven kandy',150,'12/5/2018');
create table Events.users(
id int auto_increment primary key,
fullname varchar(50),
uname varchar(20),
email varchar(50),
pwd varchar(20)
);
insert into Events.users values(null, 'Naduni Liyanage', 'keshy', '[email protected]','keshy96');
insert into Events.users values(null, 'Keshani Liyanage', 'Ranz', '[email protected]','ranz96');
insert into Events.users values(null, 'Maduranga Silva', 'pasi', '[email protected]','pasi96');
insert into Events.users values(null, 'Maduni Ranasinghe', 'madu', '[email protected]','madu96');
insert into Events.users values(null, 'Saduni Liyanage', 'sadu', '[email protected]','sadu96');
drop table Events.admin;
drop table Events.contactus;
drop table Events.employees;
drop table Events.eventus1;
drop table Events.users;
drop table Events.eventloc;