Advertisement
18126

Untitled

Apr 10th, 2025
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.89 KB | None | 0 0
  1. CREATE TABLE taxesPayment(
  2. id int auto_increment primary key,
  3. student_id int not null,
  4. group_id int not null,
  5. paymentAmount double not null,
  6. month int,
  7. year int,
  8. dateOfPayment datetime not null,
  9. constraint foreign key (student_id) references students(id),
  10. constraint foreign key (group_id) references sportgroups(id)
  11. );
  12. INSERT INTO taxesPayment (student_id, group_id, paymentAmount, month, year, dateOfPayment)
  13. VALUES
  14. (1,11, 200, 3, 2022, now()),
  15. (1,30, 200, 4, 2022, now()),
  16. (1,33, 200, 5, 2022, now()),
  17. (1,11, 200, 6, 2022, now()),
  18. (1,11, 200, 7, 2022, now()),
  19. (1,11, 200, 8, 2022, now()),
  20. (1,30, 200, 9, 2022, now()),
  21. (1,33, 200, 10, 2022, now()),
  22. (1,33, 200, 11, 2022, now()),
  23. (1,33, 200, 12, 2022, now()),
  24. (4,11, 200, 1, 2022, now()),
  25. (4,49, 200, 2, 2022, now()),
  26. (4,49, 200, 3, 2022, now()),
  27. (4,49, 200, 4, 2022, now()),
  28. (4,49, 200, 5, 2022, now()),
  29. (4,11, 200, 6, 2022, now());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement