home / sakila

payment

32 rows where customer_id = 15

✎ View and edit SQL

This data as json, xlsx, CSV (advanced)

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

payment_id ▼ customer_id staff_id rental_id amount payment_date last_update
386 15 15 1 1 2486 2486 2.99 2005-06-18 21:26:56.000 2020-12-23 07:19:15
387 15 15 1 1 2937 2937 5.99 2005-06-20 05:15:37.000 2020-12-23 07:19:15
388 15 15 2 2 3182 3182 0.99 2005-06-20 22:52:18.000 2020-12-23 07:19:15
389 15 15 1 1 3550 3550 7.99 2005-07-06 02:29:21.000 2020-12-23 07:19:15
390 15 15 1 1 4127 4127 5.99 2005-07-07 07:26:19.000 2020-12-23 07:19:15
391 15 15 1 1 5717 5717 2.99 2005-07-10 11:02:03.000 2020-12-23 07:19:15
392 15 15 2 2 5975 5975 2.99 2005-07-11 00:14:19.000 2020-12-23 07:19:15
393 15 15 1 1 7105 7105 4.99 2005-07-27 05:15:37.000 2020-12-23 07:19:15
394 15 15 1 1 8193 8193 0.99 2005-07-28 22:50:50.000 2020-12-23 07:19:15
395 15 15 2 2 8615 8615 6.99 2005-07-29 13:36:01.000 2020-12-23 07:19:15
396 15 15 2 2 8927 8927 4.99 2005-07-30 02:13:31.000 2020-12-23 07:19:15
397 15 15 1 1 9987 9987 2.99 2005-07-31 17:22:35.000 2020-12-23 07:19:15
398 15 15 1 1 11118 11118 2.99 2005-08-02 08:44:18.000 2020-12-23 07:19:15
399 15 15 1 1 11141 11141 2.99 2005-08-02 09:29:11.000 2020-12-23 07:19:15
400 15 15 2 2 11307 11307 2.99 2005-08-02 15:48:08.000 2020-12-23 07:19:15
401 15 15 2 2 11341 11341 2.99 2005-08-02 17:09:24.000 2020-12-23 07:19:15
402 15 15 1 1 11922 11922 7.99 2005-08-17 16:20:37.000 2020-12-23 07:19:15
403 15 15 2 2 12272 12272 2.99 2005-08-18 04:39:10.000 2020-12-23 07:19:15
404 15 15 2 2 12551 12551 2.99 2005-08-18 14:46:26.000 2020-12-23 07:19:15
405 15 15 1 1 12635 12635 2.99 2005-08-18 18:00:23.000 2020-12-23 07:19:15
406 15 15 2 2 13339 13339 8.99 2005-08-19 20:18:36.000 2020-12-23 07:19:15
407 15 15 1 1 13393 13393 5.99 2005-08-19 22:03:46.000 2020-12-23 07:19:15
408 15 15 2 2 13503 13503 5.99 2005-08-20 02:00:33.000 2020-12-23 07:19:15
409 15 15 1 1 13541 13541 4.99 2005-08-20 03:41:41.000 2020-12-23 07:19:15
410 15 15 2 2 13677 13677 3.99 2005-08-20 08:34:41.000 2020-12-23 07:19:15
411 15 15 2 2 14569 14569 0.99 2005-08-21 16:31:22.000 2020-12-23 07:19:15
412 15 15 2 2 14776 14776 4.99 2005-08-21 23:53:35.000 2020-12-23 07:19:15
413 15 15 2 2 14872 14872 8.99 2005-08-22 03:23:41.000 2020-12-23 07:19:15
414 15 15 1 1 15178 15178 0.99 2005-08-22 15:36:04.000 2020-12-23 07:19:15
415 15 15 1 1 15897 15897 4.99 2005-08-23 17:12:31.000 2020-12-23 07:19:15
416 15 15 1 1 13798 13798 3.98 2006-02-14 15:16:03.000 2020-12-23 07:19:15
417 15 15 2 2 13968 13968 0 2006-02-14 15:16:03.000 2020-12-23 07:19:15

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.008ms