home / sakila

payment

7,992 rows where staff_id = 2

✎ View and edit SQL

This data as json, xlsx, CSV (advanced)

Suggested facets: amount, payment_date (date), last_update (date)

payment_id ▼ customer_id staff_id rental_id amount payment_date last_update
4 1 1 2 2 1422 1422 0.99 2005-06-15 18:02:53.000 2020-12-23 07:19:10
5 1 1 2 2 1476 1476 9.99 2005-06-15 21:08:46.000 2020-12-23 07:19:10
8 1 1 2 2 2363 2363 0.99 2005-06-18 13:33:59.000 2020-12-23 07:19:10
10 1 1 2 2 4526 4526 5.99 2005-07-08 03:17:05.000 2020-12-23 07:19:10
15 1 1 2 2 7273 7273 2.99 2005-07-27 11:31:22.000 2020-12-23 07:19:10
17 1 1 2 2 8033 8033 4.99 2005-07-28 16:18:23.000 2020-12-23 07:19:10
19 1 1 2 2 8116 8116 0.99 2005-07-28 19:20:07.000 2020-12-23 07:19:10
20 1 1 2 2 8326 8326 2.99 2005-07-29 03:58:49.000 2020-12-23 07:19:10
21 1 1 2 2 9571 9571 2.99 2005-07-31 02:42:18.000 2020-12-23 07:19:10
22 1 1 2 2 10437 10437 4.99 2005-08-01 08:51:04.000 2020-12-23 07:19:10
23 1 1 2 2 11299 11299 3.99 2005-08-02 15:36:52.000 2020-12-23 07:19:10
25 1 1 2 2 11824 11824 4.99 2005-08-17 12:37:54.000 2020-12-23 07:19:10
27 1 1 2 2 13068 13068 0.99 2005-08-19 09:55:16.000 2020-12-23 07:19:10
28 1 1 2 2 13176 13176 2.99 2005-08-19 13:56:54.000 2020-12-23 07:19:10
31 1 1 2 2 15298 15298 2.99 2005-08-22 19:41:37.000 2020-12-23 07:19:10
37 2 2 2 2 7346 7346 4.99 2005-07-27 14:30:42.000 2020-12-23 07:19:10
39 2 2 2 2 7459 7459 5.99 2005-07-27 18:40:20.000 2020-12-23 07:19:10
40 2 2 2 2 8230 8230 5.99 2005-07-29 00:12:59.000 2020-12-23 07:19:10
42 2 2 2 2 8705 8705 5.99 2005-07-29 17:14:29.000 2020-12-23 07:19:10
44 2 2 2 2 9236 9236 10.99 2005-07-30 13:47:43.000 2020-12-23 07:19:10
45 2 2 2 2 9248 9248 0.99 2005-07-30 14:14:11.000 2020-12-23 07:19:10
46 2 2 2 2 9296 9296 6.99 2005-07-30 16:21:13.000 2020-12-23 07:19:10
47 2 2 2 2 9465 9465 6.99 2005-07-30 22:39:53.000 2020-12-23 07:19:10
53 2 2 2 2 11256 11256 2.99 2005-08-02 13:44:53.000 2020-12-23 07:19:11
57 2 2 2 2 14743 14743 5.99 2005-08-21 22:41:56.000 2020-12-23 07:19:11
58 2 2 2 2 15145 15145 4.99 2005-08-22 13:53:04.000 2020-12-23 07:19:11
59 2 2 2 2 15907 15907 4.99 2005-08-23 17:39:35.000 2020-12-23 07:19:11
64 3 3 2 2 1911 1911 6.99 2005-06-17 05:15:15.000 2020-12-23 07:19:11
69 3 3 2 2 7503 7503 10.99 2005-07-27 20:23:12.000 2020-12-23 07:19:11
70 3 3 2 2 7703 7703 7.99 2005-07-28 03:59:21.000 2020-12-23 07:19:11
71 3 3 2 2 7724 7724 6.99 2005-07-28 04:46:30.000 2020-12-23 07:19:11
73 3 3 2 2 8086 8086 4.99 2005-07-28 18:17:14.000 2020-12-23 07:19:11
76 3 3 2 2 9443 9443 3.99 2005-07-30 21:45:46.000 2020-12-23 07:19:11
78 3 3 2 2 9816 9816 4.99 2005-07-31 11:32:58.000 2020-12-23 07:19:11
79 3 3 2 2 10597 10597 5.99 2005-08-01 14:19:48.000 2020-12-23 07:19:11
80 3 3 2 2 12556 12556 4.99 2005-08-18 14:49:55.000 2020-12-23 07:19:11
82 3 3 2 2 13610 13610 2.99 2005-08-20 06:14:12.000 2020-12-23 07:19:11
83 3 3 2 2 14699 14699 8.99 2005-08-21 20:50:48.000 2020-12-23 07:19:11
84 3 3 2 2 15038 15038 0.99 2005-08-22 09:37:27.000 2020-12-23 07:19:11
88 4 4 2 2 1707 1707 2.99 2005-06-16 14:01:27.000 2020-12-23 07:19:11
89 4 4 2 2 1735 1735 0.99 2005-06-16 15:51:52.000 2020-12-23 07:19:11
90 4 4 2 2 2043 2043 0.99 2005-06-17 14:31:12.000 2020-12-23 07:19:11
93 4 4 2 2 7718 7718 2.99 2005-07-28 04:37:59.000 2020-12-23 07:19:11
97 4 4 2 2 11069 11069 0.99 2005-08-02 07:09:34.000 2020-12-23 07:19:11
99 4 4 2 2 11529 11529 4.99 2005-08-17 00:28:01.000 2020-12-23 07:19:11
101 4 4 2 2 12294 12294 8.99 2005-08-18 05:14:44.000 2020-12-23 07:19:11
102 4 4 2 2 12856 12856 1.99 2005-08-19 02:19:13.000 2020-12-23 07:19:11
105 4 4 2 2 14225 14225 4.99 2005-08-21 04:53:37.000 2020-12-23 07:19:11
107 4 4 2 2 15635 15635 1.99 2005-08-23 07:43:00.000 2020-12-23 07:19:11
112 5 5 2 2 1631 1631 2.99 2005-06-16 08:01:02.000 2020-12-23 07:19:11

Next page

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE payment (
  payment_id int NOT NULL,
  customer_id INT  NOT NULL,
  staff_id SMALLINT NOT NULL,
  rental_id INT DEFAULT NULL,
  amount DECIMAL(5,2) NOT NULL,
  payment_date TIMESTAMP NOT NULL,
  last_update TIMESTAMP NOT NULL,
  PRIMARY KEY  (payment_id),
  CONSTRAINT fk_payment_rental FOREIGN KEY (rental_id) REFERENCES rental (rental_id) ON DELETE SET NULL ON UPDATE CASCADE,
  CONSTRAINT fk_payment_customer FOREIGN KEY (customer_id) REFERENCES customer (customer_id) ,
  CONSTRAINT fk_payment_staff FOREIGN KEY (staff_id) REFERENCES staff (staff_id)
);
CREATE INDEX idx_fk_staff_id ON payment(staff_id)
;
CREATE INDEX idx_fk_customer_id ON payment(customer_id)
;
Powered by Datasette · Queries took 89.617ms