Advertisement
linknaka

Untitled

Nov 20th, 2017
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.47 KB | None | 0 0
  1. Inserçoes
  2. ---Inserts ADM
  3. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('12345678901234567001', '19216800001', '1900-01-03', '123456001', 'Madoka Kaname', NULL, NULL, '12345678901234567001');
  4. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('12345678901234567002', '19216800002', '1900-01-03', '123456002', 'Homura Akemi', NULL, NULL, '12345678901234567002');
  5. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('12345678901234567003', '19216800003', '2000-11-11', '123456003', 'Sayaka Miki', NULL, NULL, '12345678901234567003');
  6. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('12345678901234567004', '19216800004', '1998-02-13', '123456004', 'Mami Tomoe', NULL, NULL, '12345678901234567004');
  7. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('12345678901234567005', '19216800005', '2000-04-03', '123456005', 'Kyoko Sakura', NULL, NULL, '12345678901234567005');
  8.  
  9. ---INSERTS Suporte
  10. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('1', '19216800101', '1996-01-01', '123451001', 'Bobby Goodfeather', '1', NULL, NULL);
  11. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('2', '19216800102', '1996-01-01', '123451002', 'Squit Goodfeather', '2', NULL, NULL);
  12. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('3', '19216800103', '1996-01-01', '123451003', 'Pesto Goodfeather', '3', NULL, NULL);
  13. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('4', '19216800104', '1996-01-01', '123451004', 'Miaasmime', '4', NULL, NULL);
  14. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('5', '19216800105', '1996-01-01', '123451005', 'Cesphusveko', '5', NULL, NULL);
  15. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('6', '19216800106', '1996-01-01', '123451006', 'Gaphan', '6', NULL, NULL);
  16. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('7', '19216800107', '1996-01-01', '123451007', 'Zella', '7', NULL, NULL);
  17. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('8', '19216800108', '1996-01-01', '123451008', 'Cusbarra', '8', NULL, NULL);
  18. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('9', '19216800109', '1996-01-01', '123451009', 'Baellesiashau', '9', NULL, NULL);
  19.  
  20. ---Insert gerentes
  21. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('10', '19216800301', '1998-01-01', '123451001', 'Logan Seaton',NULL, '10', NULL);
  22. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('11', '19216800302', '1998-01-01', '123451001', 'Colin Greaves', NULL, '11',NULL);
  23. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('12', '19216800303', '1998-01-01', '123451001', 'Preston Shawcross', NULL,'12', NULL);
  24. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('13', '19216800304', '1998-01-01', '123451001', 'Rafferty Tannenbay', NULL,'13', NULL);
  25. INSERT INTO `funcionario` (`Matricula`, `CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Suporte`, `Gerente_setorial`, `Administradores_gerais_da_festa`) VALUES ('14', '19216800305', '1998-01-01', '123451001', 'Charles Claymoore', NULL, '14', NULL);
  26.  
  27.  
  28. ----------Administradores gerais
  29.  
  30. INSERT INTO `administradores_gerais_da_festa` (`Matricula`) VALUES ('12345678901234567001'), ('12345678901234567002'), ('12345678901234567003'), ('12345678901234567004'), ('12345678901234567005');
  31.  
  32. -------Gerentes setoriais
  33. INSERT INTO `gerente_setorial` (`Matricula`, `Setor`) VALUES ('10', 'RH');
  34. INSERT INTO `gerente_setorial` (`Matricula`, `Setor`) VALUES ('11', 'Contabilidade');
  35. INSERT INTO `gerente_setorial` (`Matricula`, `Setor`) VALUES ('12', 'Imprensa');
  36. INSERT INTO `gerente_setorial` (`Matricula`, `Setor`) VALUES ('13', 'Refeições');
  37. INSERT INTO `gerente_setorial` (`Matricula`, `Setor`) VALUES ('14', 'Horarios');
  38.  
  39.  
  40. ----Suporte
  41. INSERT INTO `suporte` (`Matricula`, `Area`, `Matricula_do_superior`) VALUES ('1', 'Segurança do trabalho', '12345678901234567001');
  42. INSERT INTO `suporte` (`Matricula`, `Area`, `Matricula_do_superior`) VALUES ('2', 'Segurança do trabalho', '12345678901234567001');
  43. INSERT INTO `suporte` (`Matricula`, `Area`, `Matricula_do_superior`) VALUES ('3', 'Segurança do trabalho', '12345678901234567001');
  44. INSERT INTO `suporte` (`Matricula`, `Area`, `Matricula_do_superior`) VALUES ('4', 'Contabilidade', '11');
  45. INSERT INTO `suporte` (`Matricula`, `Area`, `Matricula_do_superior`) VALUES ('5', 'Contabilidade', '11');
  46. INSERT INTO `suporte` (`Matricula`, `Area`, `Matricula_do_superior`) VALUES ('6', 'Imprensa', '12');
  47. INSERT INTO `suporte` (`Matricula`, `Area`, `Matricula_do_superior`) VALUES ('7', 'Refeições', '13');
  48. INSERT INTO `suporte` (`Matricula`, `Area`, `Matricula_do_superior`) VALUES ('8', 'Refeições', '13');
  49. INSERT INTO `suporte` (`Matricula`, `Area`, `Matricula_do_superior`) VALUES ('9', 'Refeições', '13');
  50.  
  51.  
  52. --Insert expositor
  53. INSERT INTO `expositor` (`CPF`, `Nome`, `Conta_no_banco`) VALUES ('56318864000', 'Keinan Rodríguez', '380072488');
  54. INSERT INTO `expositor` (`CPF`, `Nome`, `Conta_no_banco`) VALUES ('56318864001', 'Emilia Garnet Wilmer', '123937914');
  55. INSERT INTO `expositor` (`CPF`, `Nome`, `Conta_no_banco`) VALUES ('56318864002', 'Mao Baudelio Powers', '878525120');
  56. INSERT INTO `expositor` (`CPF`, `Nome`, `Conta_no_banco`) VALUES ('56318864003', 'Abigaíl Justice King', '438113350');
  57. INSERT INTO `expositor` (`CPF`, `Nome`, `Conta_no_banco`) VALUES ('56318864004', 'Autumn Lucia Tanner', '982626060');
  58. INSERT INTO `expositor` (`CPF`, `Nome`, `Conta_no_banco`) VALUES ('56318864005', 'Hikaru Miguelito Morse', '950819302');
  59. INSERT INTO `expositor` (`CPF`, `Nome`, `Conta_no_banco`) VALUES ('56318864006', 'Marcelino Portia Chadwick', '411368196');
  60. INSERT INTO `expositor` (`CPF`, `Nome`, `Conta_no_banco`) VALUES ('56318864007', 'Christi Zelda Lyon', '177541388');
  61.  
  62.  
  63. --Insert fornecedores
  64. INSERT INTO `fornecedor` (`CNPJ`, `Nome_da_empresa`, `Ordem_de_pedido`) VALUES ('61828257000120', 'Cadeiras legais', '1000000001');
  65. INSERT INTO `fornecedor` (`CNPJ`, `Nome_da_empresa`, `Ordem_de_pedido`) VALUES ('61828257000121', 'Computadores esquina X', '1000000002');
  66. INSERT INTO `fornecedor` (`CNPJ`, `Nome_da_empresa`, `Ordem_de_pedido`) VALUES ('61828257000122', 'Barracas supimpas', '1000000003');
  67. INSERT INTO `fornecedor` (`CNPJ`, `Nome_da_empresa`, `Ordem_de_pedido`) VALUES ('61828257000123', 'Tomatoes Caaui Kawaii', '1000000004');
  68. INSERT INTO `fornecedor` (`CNPJ`, `Nome_da_empresa`, `Ordem_de_pedido`) VALUES ('61828257000124', 'Aviação ombreira azul', '1000000005');
  69. INSERT INTO `fornecedor` (`CNPJ`, `Nome_da_empresa`, `Ordem_de_pedido`) VALUES ('61828257000125', 'No break als', '1000000006');
  70. INSERT INTO `fornecedor` (`CNPJ`, `Nome_da_empresa`, `Ordem_de_pedido`) VALUES ('61828257000126', 'Cortana Ex', '1000000007');
  71. INSERT INTO `fornecedor` (`CNPJ`, `Nome_da_empresa`, `Ordem_de_pedido`) VALUES ('19956434000198', 'Nintendo Games', '1000000008');
  72. INSERT INTO `fornecedor` (`CNPJ`, `Nome_da_empresa`, `Ordem_de_pedido`) VALUES ('61828257000128', 'Condensadores Eamo', '1000000009');
  73. INSERT INTO `fornecedor` (`CNPJ`, `Nome_da_empresa`, `Ordem_de_pedido`) VALUES ('61828257000129', 'Mesas OP games', '1000000010');
  74.  
  75.  
  76. --Insert Objetos //O primeiro elemento ordem de pedido deve estar nos fornecedores também
  77. INSERT INTO `objetos` (`Ordem_de_pedido`, `Entidade_Fornecida`, `Tipo_de_objeto`) VALUES ('1000000001', '400x Cadeira simples', 'Cadeiras');
  78.  
  79.  
  80.  
  81. --Insert Participantes pagantes (O penultimo campo deve ser igual ao cpf)
  82. INSERT INTO `participante` (`CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Pagante`, `Isentos`) VALUES ('15318864000', '1997-11-28', '123356001', 'Korrina Mendes Albuquerque', '15318864000', NULL);
  83.  
  84.  
  85. --Insert Participantes isentos (O ultimo campo deve ser igual ao cpf)
  86. INSERT INTO `participante` (`CPF`, `Data_de_Nascimento`, `RG`, `Nome`, `Pagante`, `Isentos`) VALUES ('15313164000', '1982-09-14', '127256001', 'Alfred Mondel Raruhiro', NULL, '15313164000');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement