Advertisement
Guest User

Untitled

a guest
Nov 18th, 2016
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. delete from users;
  2. delete from parkings;
  3. delete from trafficobstructions;
  4. delete from streets;
  5. delete from numbers;
  6.  
  7. insert into Users (email,password,notification)
  8.  
  9. values
  10. ('antoine@hotmail.com','aaaa123',1),
  11. ('lucien@gmail.com','bbb456',1),
  12. ('maxime@gotmail.com','ccc789',0),
  13. ('theo@outlook.com','motDePasse',1),
  14. ('veronique@gmail.com','login',0),
  15. ('nicolas@gmail.com','945Bonjour',1),
  16. ('loic@outlook.com','Hello123',1),
  17. ('martin@gmail.com','C7to95',0),
  18. ('francois@hotmail.com','Hello_World',1),
  19. ('bill@microsoft.com','r98g4re9g',1);
  20.  
  21. insert into Streets (streetname)
  22.  
  23. values
  24. ('rue lucien nameche'),
  25. ('rue godefroid'),
  26. ('rue des noyers'),
  27. ('rue des petunias'),
  28. ('rue des pommiers'),
  29. ('rue alfred brasseur'),
  30. ('rue badoux'),
  31. ('rue alexandre colin');
  32.  
  33. insert into parkings (parkingname, availableplaces, occupiedplaces)
  34.  
  35. values
  36. ('Namur expo',475,58),
  37. ('Hotel de ville',350,70),
  38. ('Leopold',500,98),
  39. ('Du centre',160,150),
  40. ('Gifar',500,450),
  41. ('Beffroi',258,189),
  42. ('Casernes',670,540),
  43. ('De la gare',655,180),
  44. ('Mutualite chretienne',70,68),
  45. ('St Nicolas',276,210);
  46.  
  47. insert into numbers (number)
  48.  
  49. values
  50. ('1'),
  51. ('2'),
  52. ('3'),
  53. ('3A'),
  54. ('4'),
  55. ('5'),
  56. ('6'),
  57.  
  58. ('1'),
  59. ('3'),
  60. ('4'),
  61. ('5'),
  62. ('6'),
  63. ('7B'),
  64. ('8'),
  65. ('10'),
  66.  
  67. ('1'),
  68. ('2'),
  69. ('3'),
  70. ('4'),
  71. ('5A'),
  72. ('5B'),
  73. ('6'),
  74. ('7'),
  75.  
  76. ('5B'),
  77. ('1'),
  78. ('2'),
  79. ('3'),
  80. ('4'),
  81. ('5'),
  82. ('6A'),
  83. ('6B'),
  84.  
  85. ('1'),
  86. ('2'),
  87. ('3'),
  88. ('4'),
  89. ('5'),
  90. ('6'),
  91. ('7'),
  92. ('8'),
  93. ('9'),
  94. ('10'),
  95.  
  96. ('1'),
  97. ('2'),
  98. ('3'),
  99. ('4'),
  100. ('4B'),
  101. ('5'),
  102. ('6'),
  103. ('7'),
  104. ('8'),
  105.  
  106. ('1'),
  107. ('3'),
  108. ('4'),
  109. ('5'),
  110. ('6'),
  111. ('7'),
  112. ('8B'),
  113.  
  114. ('1'),
  115. ('2'),
  116. ('3'),
  117. ('4'),
  118. ('5'),
  119. ('5A'),
  120. ('5B'),
  121. ('6'),
  122. ('7'),
  123. ('8');
  124.  
  125.  
  126. /*insert into StreetUsers(iduser,idstreet)
  127.  
  128. values
  129.  
  130. (1,2),(1,3),(1,7),
  131. (2,3),(2,8),
  132. (3,1),
  133. (5,6),(5,8),
  134. (6,6),(6,1),
  135. (7,5),
  136. (8,4),(8,2),(8,5),
  137. (9,5);*/
  138.  
  139.  
  140. /*insertion de perturbations de type chantier*/
  141.  
  142. insert into TrafficObstructions(startdate,starthour,enddate,endhour,codetypeobstruction,trafficimpact,operator,idstreetstart)
  143. values
  144.  
  145. ('05-1-2017','12:10:00','05-8-2017','10:00:00','chantier','Circulation bloquée','VOO',3),
  146. ('07-6-2017','12:10:00','7-10-2017','10:00:00','chantier','Circulation sur une bande','VOO',4),
  147. ('02-9-2017','09:30:00','02-11-2017','10:00:00','chantier','Déviation','ORES',5);
  148.  
  149.  
  150. /*Insertion de perturbations de type festivité*/
  151.  
  152. insert into TrafficObstructions(startdate,starthour,enddate,endhour,codetypeobstruction,trafficimpact,infofestivity,idstreetstart,idstreetend)
  153. values
  154.  
  155. ('5-26-2017','8:00:00','5-28-2017','00:00:00','festivité','Circulation impossible','Namur en mai',4,5);
  156.  
  157.  
  158.  
  159. /*Insertion de perturbations de type autre*/
  160.  
  161. insert into TrafficObstructions(startdate,starthour,enddate,endhour,codetypeobstruction,trafficimpact,infoother,idstreetstart,idstreetend)
  162. values
  163.  
  164. ('4-2-2017','8:00:00','4-9-2017','00:00:00','autre','Circulation partielle','Braderie',1,2);
  165.  
  166. DBCC CHECKIDENT(numbers,RESEED,0);
  167. DBCC CHECKIDENT(users,RESEED,0);
  168. DBCC CHECKIDENT(parkings,RESEED,0);
  169. DBCC CHECKIDENT(streets,RESEED,0);
  170. DBCC CHECKIDENT(trafficobstructions,RESEED,0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement