home / sakila

payment

30 rows where customer_id = 107

✎ View and edit SQL

This data as json, xlsx, CSV (advanced)

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

payment_id ▼ customer_id staff_id rental_id amount payment_date last_update
2873 107 107 1 1 170 170 5.99 2005-05-26 03:11:12.000 2020-12-23 07:19:50
2874 107 107 1 1 1026 1026 5.99 2005-05-31 03:45:26.000 2020-12-23 07:19:50
2875 107 107 2 2 1243 1243 2.99 2005-06-15 05:07:32.000 2020-12-23 07:19:50
2876 107 107 2 2 2693 2693 6.99 2005-06-19 13:11:47.000 2020-12-23 07:19:50
2877 107 107 2 2 2860 2860 4.99 2005-06-19 23:20:40.000 2020-12-23 07:19:50
2878 107 107 2 2 2897 2897 3.99 2005-06-20 02:34:23.000 2020-12-23 07:19:50
2879 107 107 1 1 3033 3033 3.99 2005-06-20 12:02:05.000 2020-12-23 07:19:50
2880 107 107 2 2 3120 3120 0.99 2005-06-20 18:19:29.000 2020-12-23 07:19:50
2881 107 107 2 2 3174 3174 0.99 2005-06-20 22:24:00.000 2020-12-23 07:19:50
2882 107 107 2 2 3824 3824 6.99 2005-07-06 15:43:15.000 2020-12-23 07:19:50
2883 107 107 2 2 5311 5311 4.99 2005-07-09 16:02:54.000 2020-12-23 07:19:50
2884 107 107 2 2 5575 5575 2.99 2005-07-10 03:55:50.000 2020-12-23 07:19:50
2885 107 107 2 2 5798 5798 3.99 2005-07-10 14:45:09.000 2020-12-23 07:19:51
2886 107 107 2 2 6131 6131 2.99 2005-07-11 08:22:05.000 2020-12-23 07:19:51
2887 107 107 2 2 6133 6133 0.99 2005-07-11 08:25:22.000 2020-12-23 07:19:51
2888 107 107 1 1 6811 6811 5.99 2005-07-12 17:54:33.000 2020-12-23 07:19:51
2889 107 107 2 2 6934 6934 6.99 2005-07-26 23:11:03.000 2020-12-23 07:19:51
2890 107 107 2 2 7447 7447 4.99 2005-07-27 18:02:08.000 2020-12-23 07:19:51
2891 107 107 1 1 7600 7600 7.99 2005-07-27 23:41:18.000 2020-12-23 07:19:51
2892 107 107 1 1 8162 8162 4.99 2005-07-28 21:11:46.000 2020-12-23 07:19:51
2893 107 107 2 2 8704 8704 1.99 2005-07-29 17:13:45.000 2020-12-23 07:19:51
2894 107 107 1 1 9155 9155 2.99 2005-07-30 11:00:00.000 2020-12-23 07:19:51
2895 107 107 2 2 9351 9351 2.99 2005-07-30 18:28:30.000 2020-12-23 07:19:51
2896 107 107 1 1 10226 10226 4.99 2005-08-01 01:40:04.000 2020-12-23 07:19:51
2897 107 107 2 2 13361 13361 4.99 2005-08-19 21:07:22.000 2020-12-23 07:19:51
2898 107 107 1 1 13510 13510 6.99 2005-08-20 02:18:30.000 2020-12-23 07:19:51
2899 107 107 1 1 14562 14562 4.99 2005-08-21 16:22:59.000 2020-12-23 07:19:51
2900 107 107 1 1 15560 15560 3.99 2005-08-23 05:01:13.000 2020-12-23 07:19:51
2901 107 107 1 1 13079 13079 1.98 2006-02-14 15:16:03.000 2020-12-23 07:19:51
2902 107 107 1 1 15497 15497 0 2006-02-14 15:16:03.000 2020-12-23 07:19:51

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 17.714ms