home / sakila

payment

8,057 rows where staff_id = 1

✎ 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
1 1 1 1 1 76 76 2.99 2005-05-25 11:30:37.000 2020-12-23 07:19:10
2 1 1 1 1 573 573 0.99 2005-05-28 10:35:23.000 2020-12-23 07:19:10
3 1 1 1 1 1185 1185 5.99 2005-06-15 00:54:12.000 2020-12-23 07:19:10
6 1 1 1 1 1725 1725 4.99 2005-06-16 15:18:57.000 2020-12-23 07:19:10
7 1 1 1 1 2308 2308 4.99 2005-06-18 08:41:48.000 2020-12-23 07:19:10
9 1 1 1 1 3284 3284 3.99 2005-06-21 06:24:45.000 2020-12-23 07:19:10
11 1 1 1 1 4611 4611 5.99 2005-07-08 07:33:56.000 2020-12-23 07:19:10
12 1 1 1 1 5244 5244 4.99 2005-07-09 13:24:07.000 2020-12-23 07:19:10
13 1 1 1 1 5326 5326 4.99 2005-07-09 16:38:01.000 2020-12-23 07:19:10
14 1 1 1 1 6163 6163 7.99 2005-07-11 10:13:46.000 2020-12-23 07:19:10
16 1 1 1 1 7841 7841 4.99 2005-07-28 09:04:45.000 2020-12-23 07:19:10
18 1 1 1 1 8074 8074 0.99 2005-07-28 17:33:39.000 2020-12-23 07:19:10
24 1 1 1 1 11367 11367 0.99 2005-08-02 18:01:38.000 2020-12-23 07:19:10
26 1 1 1 1 12250 12250 0.99 2005-08-18 03:57:29.000 2020-12-23 07:19:10
29 1 1 1 1 14762 14762 0.99 2005-08-21 23:33:57.000 2020-12-23 07:19:10
30 1 1 1 1 14825 14825 1.99 2005-08-22 01:27:57.000 2020-12-23 07:19:10
32 1 1 1 1 15315 15315 5.99 2005-08-22 20:03:46.000 2020-12-23 07:19:10
33 2 2 1 1 320 320 4.99 2005-05-27 00:09:24.000 2020-12-23 07:19:10
34 2 2 1 1 2128 2128 2.99 2005-06-17 20:54:58.000 2020-12-23 07:19:10
35 2 2 1 1 5636 5636 2.99 2005-07-10 06:31:24.000 2020-12-23 07:19:10
36 2 2 1 1 5755 5755 6.99 2005-07-10 12:38:56.000 2020-12-23 07:19:10
38 2 2 1 1 7376 7376 5.99 2005-07-27 15:23:02.000 2020-12-23 07:19:10
41 2 2 1 1 8598 8598 2.99 2005-07-29 12:56:59.000 2020-12-23 07:19:10
43 2 2 1 1 9031 9031 4.99 2005-07-30 06:06:10.000 2020-12-23 07:19:10
48 2 2 1 1 10136 10136 2.99 2005-07-31 21:58:56.000 2020-12-23 07:19:10
49 2 2 1 1 10466 10466 0.99 2005-08-01 09:45:26.000 2020-12-23 07:19:10
50 2 2 1 1 10918 10918 0.99 2005-08-02 02:10:56.000 2020-12-23 07:19:10
51 2 2 1 1 11087 11087 5.99 2005-08-02 07:41:41.000 2020-12-23 07:19:11
52 2 2 1 1 11177 11177 6.99 2005-08-02 10:43:48.000 2020-12-23 07:19:11
54 2 2 1 1 11614 11614 2.99 2005-08-17 03:52:18.000 2020-12-23 07:19:11
55 2 2 1 1 12963 12963 2.99 2005-08-19 06:26:04.000 2020-12-23 07:19:11
56 2 2 1 1 14475 14475 4.99 2005-08-21 13:24:32.000 2020-12-23 07:19:11
60 3 3 1 1 435 435 1.99 2005-05-27 17:17:09.000 2020-12-23 07:19:11
61 3 3 1 1 830 830 2.99 2005-05-29 22:43:55.000 2020-12-23 07:19:11
62 3 3 1 1 1546 1546 8.99 2005-06-16 01:34:05.000 2020-12-23 07:19:11
63 3 3 1 1 1726 1726 6.99 2005-06-16 15:19:10.000 2020-12-23 07:19:11
65 3 3 1 1 2628 2628 2.99 2005-06-19 08:34:53.000 2020-12-23 07:19:11
66 3 3 1 1 4180 4180 4.99 2005-07-07 10:23:25.000 2020-12-23 07:19:11
67 3 3 1 1 4725 4725 4.99 2005-07-08 12:47:11.000 2020-12-23 07:19:11
68 3 3 1 1 7096 7096 5.99 2005-07-27 04:54:42.000 2020-12-23 07:19:11
72 3 3 1 1 7911 7911 4.99 2005-07-28 11:46:45.000 2020-12-23 07:19:11
74 3 3 1 1 8545 8545 2.99 2005-07-29 11:07:04.000 2020-12-23 07:19:11
75 3 3 1 1 9226 9226 1.99 2005-07-30 13:31:20.000 2020-12-23 07:19:11
77 3 3 1 1 9595 9595 2.99 2005-07-31 03:27:58.000 2020-12-23 07:19:11
81 3 3 1 1 13403 13403 8.99 2005-08-19 22:18:07.000 2020-12-23 07:19:11
85 3 3 1 1 15619 15619 2.99 2005-08-23 07:10:14.000 2020-12-23 07:19:11
86 4 4 1 1 1297 1297 4.99 2005-06-15 09:31:28.000 2020-12-23 07:19:11
87 4 4 1 1 1633 1633 0.99 2005-06-16 08:08:40.000 2020-12-23 07:19:11
91 4 4 1 1 2642 2642 5.99 2005-06-19 09:39:01.000 2020-12-23 07:19:11
92 4 4 1 1 7660 7660 2.99 2005-07-28 02:10:10.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 88.259ms