home / sakila

payment

31 rows where customer_id = 78

✎ View and edit SQL

This data as json, xlsx, CSV (advanced)

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

payment_id ▼ customer_id staff_id rental_id amount payment_date last_update
2113 78 78 1 1 2207 2207 2.99 2005-06-18 02:19:21.000 2020-12-23 07:19:39
2114 78 78 2 2 2949 2949 6.99 2005-06-20 06:05:53.000 2020-12-23 07:19:39
2115 78 78 2 2 3248 3248 7.99 2005-06-21 03:12:21.000 2020-12-23 07:19:39
2116 78 78 1 1 3593 3593 4.99 2005-07-06 04:39:52.000 2020-12-23 07:19:39
2117 78 78 2 2 4227 4227 5.99 2005-07-07 12:41:36.000 2020-12-23 07:19:39
2118 78 78 2 2 4627 4627 2.99 2005-07-08 08:24:39.000 2020-12-23 07:19:39
2119 78 78 2 2 4778 4778 0.99 2005-07-08 15:51:51.000 2020-12-23 07:19:39
2120 78 78 1 1 5078 5078 1.99 2005-07-09 05:20:24.000 2020-12-23 07:19:39
2121 78 78 2 2 5604 5604 0.99 2005-07-10 05:05:00.000 2020-12-23 07:19:39
2122 78 78 1 1 6005 6005 0.99 2005-07-11 01:36:42.000 2020-12-23 07:19:39
2123 78 78 1 1 6344 6344 4.99 2005-07-11 20:04:43.000 2020-12-23 07:19:39
2124 78 78 2 2 7200 7200 1.99 2005-07-27 08:57:38.000 2020-12-23 07:19:39
2125 78 78 2 2 7747 7747 4.99 2005-07-28 05:50:11.000 2020-12-23 07:19:39
2126 78 78 2 2 7926 7926 3.99 2005-07-28 12:13:02.000 2020-12-23 07:19:39
2127 78 78 1 1 7957 7957 6.99 2005-07-28 13:34:08.000 2020-12-23 07:19:39
2128 78 78 2 2 8920 8920 4.99 2005-07-30 01:59:24.000 2020-12-23 07:19:39
2129 78 78 1 1 9068 9068 5.99 2005-07-30 07:31:45.000 2020-12-23 07:19:39
2130 78 78 2 2 10350 10350 3.99 2005-08-01 05:30:05.000 2020-12-23 07:19:39
2131 78 78 1 1 10590 10590 2.99 2005-08-01 14:11:53.000 2020-12-23 07:19:39
2132 78 78 1 1 10831 10831 7.99 2005-08-01 23:22:45.000 2020-12-23 07:19:39
2133 78 78 1 1 10942 10942 10.99 2005-08-02 03:16:31.000 2020-12-23 07:19:39
2134 78 78 2 2 12474 12474 8.99 2005-08-18 12:10:03.000 2020-12-23 07:19:39
2135 78 78 2 2 12653 12653 4.99 2005-08-18 18:53:17.000 2020-12-23 07:19:39
2136 78 78 2 2 13124 13124 5.99 2005-08-19 11:55:59.000 2020-12-23 07:19:39
2137 78 78 1 1 13432 13432 0.99 2005-08-19 23:29:06.000 2020-12-23 07:19:39
2138 78 78 2 2 13792 13792 5.99 2005-08-20 12:21:37.000 2020-12-23 07:19:40
2139 78 78 2 2 14620 14620 2.99 2005-08-21 18:10:43.000 2020-12-23 07:19:40
2140 78 78 1 1 14716 14716 0.99 2005-08-21 21:29:55.000 2020-12-23 07:19:40
2141 78 78 1 1 14810 14810 2.99 2005-08-22 01:08:34.000 2020-12-23 07:19:40
2142 78 78 2 2 14862 14862 7.99 2005-08-22 02:51:41.000 2020-12-23 07:19:40
2143 78 78 2 2 16039 16039 2.99 2005-08-23 22:18:51.000 2020-12-23 07:19:40

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