home / sakila

payment

31 rows where customer_id = 340

✎ 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
9184 340 340 2 2 1205 1205 4.99 2005-06-15 02:25:56.000 2020-12-23 07:21:20
9185 340 340 1 1 1697 1697 3.99 2005-06-16 12:55:20.000 2020-12-23 07:21:20
9186 340 340 1 1 2177 2177 5.99 2005-06-18 00:34:45.000 2020-12-23 07:21:20
9187 340 340 2 2 2183 2183 4.99 2005-06-18 01:06:01.000 2020-12-23 07:21:20
9188 340 340 2 2 2607 2607 5.99 2005-06-19 06:55:01.000 2020-12-23 07:21:20
9189 340 340 1 1 2653 2653 5.99 2005-06-19 10:36:53.000 2020-12-23 07:21:20
9190 340 340 1 1 3264 3264 0.99 2005-06-21 04:19:03.000 2020-12-23 07:21:20
9191 340 340 1 1 3455 3455 2.99 2005-06-21 21:17:51.000 2020-12-23 07:21:20
9192 340 340 2 2 4475 4475 2.99 2005-07-08 00:27:30.000 2020-12-23 07:21:20
9193 340 340 1 1 4742 4742 0.99 2005-07-08 13:35:23.000 2020-12-23 07:21:20
9194 340 340 2 2 6381 6381 4.99 2005-07-11 21:58:48.000 2020-12-23 07:21:20
9195 340 340 2 2 7617 7617 2.99 2005-07-28 00:18:40.000 2020-12-23 07:21:20
9196 340 340 2 2 8274 8274 4.99 2005-07-29 01:34:32.000 2020-12-23 07:21:21
9197 340 340 1 1 8541 8541 0.99 2005-07-29 10:55:01.000 2020-12-23 07:21:21
9198 340 340 2 2 8551 8551 4.99 2005-07-29 11:13:11.000 2020-12-23 07:21:21
9199 340 340 1 1 8606 8606 4.99 2005-07-29 13:14:24.000 2020-12-23 07:21:21
9200 340 340 1 1 9834 9834 2.99 2005-07-31 12:05:42.000 2020-12-23 07:21:21
9201 340 340 1 1 10292 10292 2.99 2005-08-01 03:42:40.000 2020-12-23 07:21:21
9202 340 340 1 1 10667 10667 8.99 2005-08-01 16:58:22.000 2020-12-23 07:21:21
9203 340 340 2 2 10674 10674 3.99 2005-08-01 17:11:52.000 2020-12-23 07:21:21
9204 340 340 1 1 10809 10809 0.99 2005-08-01 22:39:27.000 2020-12-23 07:21:21
9205 340 340 1 1 10995 10995 0.99 2005-08-02 04:48:00.000 2020-12-23 07:21:21
9206 340 340 2 2 12598 12598 4.99 2005-08-18 16:34:03.000 2020-12-23 07:21:21
9207 340 340 2 2 12908 12908 1.99 2005-08-19 04:19:05.000 2020-12-23 07:21:21
9208 340 340 2 2 12940 12940 2.99 2005-08-19 05:38:29.000 2020-12-23 07:21:21
9209 340 340 1 1 13425 13425 2.99 2005-08-19 23:11:44.000 2020-12-23 07:21:21
9210 340 340 1 1 14457 14457 4.99 2005-08-21 12:47:38.000 2020-12-23 07:21:21
9211 340 340 2 2 14718 14718 0.99 2005-08-21 21:39:25.000 2020-12-23 07:21:21
9212 340 340 1 1 14895 14895 2.99 2005-08-22 04:19:23.000 2020-12-23 07:21:21
9213 340 340 2 2 15306 15306 2.99 2005-08-22 19:46:36.000 2020-12-23 07:21:21
9214 340 340 1 1 15378 15378 9.99 2005-08-22 22:25:17.000 2020-12-23 07:21:21

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