Advertisement
BojidarDosev

Untitled

Nov 17th, 2021
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. Create table Employees (EmployeeID integer primary key autoincrement,Name text, Occupation text, Manager Integer,Salary real, DateOfBirth text, Department integer, AddressID integer);
  2.  
  3.  
  4. Create table Departments( DepartmentID integer primary key autoincrement, DepartmentName text);
  5. INSERT INTO Departments ( DepartmentName)
  6. VALUES ( " Manager");
  7. INSERT INTO Departments ( DepartmentName)
  8. VALUES ( " Marketing");
  9. INSERT INTO Departments ( DepartmentName)
  10. VALUES ( " Finance");
  11. cities - Sofia, Pleven
  12. adresses - ul.
  13. INSERT INTO Employees ( EmployeeID integer primary key autoincrement,Name text, Occupation text, Manager Integer,Salary real, DateOfBirth text, Department integer, AddressID integer)
  14. VALUES ( "Bojidar", "2004.11.23", "Todor Kableshkov 22a", "2000"," "," Manager",""," ");
  15. Create table Cities( CityID integer primary key autoincrement,
  16.  
  17. CityName text);
  18. INSERT INTO Cities ( Cityname text)
  19. VALUES ( "Sofia");
  20. INSERT INTO Cities (Cityname text)
  21. VALUES ("Pleven");
  22.  
  23. Create table Address(AddressID integer primary key autoincrement, Text text, CityID integer);
  24. INSERT INTO Address (Address)
  25. VALUES ( "Todor Kableshkov 22a",1);
  26. INSERT INTO Address (Address)
  27. VALUES ( "Todor Kableshkov 31a",2);
  28. INSERT INTO Address (Address)
  29. VALUES ( "Todor Kableshkov 30a",1);
  30. INSERT INTO Address (Address)
  31. VALUES ( "Todor Kableshkov 29a",1);
  32. INSERT INTO Address (Address)
  33. VALUES ( "Todor Kableshkov 28a",2);
  34. INSERT INTO Address (Address)
  35. VALUES ( "Todor Kableshkov 27a",2);
  36. INSERT INTO Address (Address)
  37. VALUES ( "Todor Kableshkov 26a",2);
  38. INSERT INTO Address (Address)
  39. VALUES ( "Todor Kableshkov 25a",1);
  40. INSERT INTO Address (Address)
  41. VALUES ( "Todor Kableshkov 24a",1);
  42. INSERT INTO Address (Address)
  43. VALUES ( "Todor Kableshkov 23a",2);
  44. /*
  45. cities - Sofia, Pleven
  46. adresses - ul.
  47. INSERT INTO Employees ( EmployeeID integer primary key autoincrement,Name text, Occupation text, Manager Integer,Salary real, DateOfBirth text, Department integer, AddressID integer)
  48. VALUES ( "Bojidar", "2004.11.23", "Todor Kableshkov 22a", "2000"," "," Manager",""," ");
  49. Create table Cities( CityID integer primary key autoincrement,
  50.  
  51. CityName text);
  52. INSERT INTO Cities ( Cityname text)
  53. VALUES ( "Sofia");
  54. INSERT INTO Cities (Cityname text)
  55. VALUES ("Pleven");
  56. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement