-
Notifications
You must be signed in to change notification settings - Fork 0
/
inserareTabele.sql
74 lines (59 loc) · 1.89 KB
/
inserareTabele.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
use Shaormerie
go
insert into Tables(Name) values ('Tipuri')
insert into Tables(Name) values ('Shaorma')
insert into Tables(Name) values ('ShaormaMagazin')
insert into Views(Name) values ('View_1')
insert into Views(Name) values ('View_2')
insert into Views(Name) values ('View_3')
insert into Tests(Name) values ('insert_table')
insert into Tests(Name) values ('delete_table')
insert into Tests(Name) values ('select_view')
insert into Tests(Name) values ('insert_table_10')
insert into Tests(Name) values ('delete_table_10')
insert into TestViews(TestID,ViewID) values (3,1)
insert into TestViews(TestID,ViewID) values (3,2)
insert into TestViews(TestID,ViewID) values (3,3)
--insert
insert into TestTables(TestID,TableID,NoOfRows,Position) values (1,1,100,1)
insert into TestTables(TestID,TableID,NoOfRows,Position) values (1,2,100,2)
insert into TestTables(TestID,TableID,NoOfRows,Position) values (1,3,100,3)
--delete
insert into TestTables(TestID,TableID,NoOfRows,Position) values (2,1,100,3)
insert into TestTables(TestID,TableID,NoOfRows,Position) values (2,2,100,2)
insert into TestTables(TestID,TableID,NoOfRows,Position) values (2,3,100,1)
select * from Views
select * from Tables
select * from Tests
select * from TestTables
--delete from TestTables
select * from View_1
select * from View_2
select * from View_3
exec insert_table_1
exec insert_table_2
exec insert_table_3
exec delete_table_1
exec delete_table_2
exec delete_table_3
select * from Tipuri
select * from Shaorma
--select * from Magazin
select * from ShaormaMagazin
select * from TestRunTables
select * from TestRunViews
select * from TestRuns
--delete from TestRuns
delete from TestRuns
delete from TestRunTables
delete from TestRunViews
use Shaormerie
go
--DE EXECUTAT--
exec testing insert_table
exec testing delete_table
exec testing select_view
--~~~~~~~~~~~~~~~~~~~~~~~--
delete from Tipuri
delete from Shaorma
delete from ShaormaMagazin