home / sakila

payment

20 rows where customer_id = 320

✎ 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
8653 320 320 2 2 1258 1258 4.99 2005-06-15 06:21:30.000 2020-12-23 07:21:12
8654 320 320 2 2 1484 1484 3.99 2005-06-15 21:22:35.000 2020-12-23 07:21:12
8655 320 320 2 2 1567 1567 1.99 2005-06-16 03:13:30.000 2020-12-23 07:21:12
8656 320 320 1 1 2216 2216 4.99 2005-06-18 03:08:17.000 2020-12-23 07:21:12
8657 320 320 2 2 2883 2883 7.99 2005-06-20 01:29:10.000 2020-12-23 07:21:12
8658 320 320 2 2 3519 3519 0.99 2005-07-06 00:57:29.000 2020-12-23 07:21:12
8659 320 320 2 2 3756 3756 4.99 2005-07-06 12:40:38.000 2020-12-23 07:21:12
8660 320 320 2 2 4173 4173 2.99 2005-07-07 09:57:26.000 2020-12-23 07:21:12
8661 320 320 2 2 7057 7057 4.99 2005-07-27 03:50:03.000 2020-12-23 07:21:12
8662 320 320 2 2 7064 7064 3.99 2005-07-27 03:53:29.000 2020-12-23 07:21:13
8663 320 320 2 2 7930 7930 4.99 2005-07-28 12:21:08.000 2020-12-23 07:21:13
8664 320 320 2 2 8144 8144 4.99 2005-07-28 20:30:55.000 2020-12-23 07:21:13
8665 320 320 2 2 8235 8235 4.99 2005-07-29 00:22:56.000 2020-12-23 07:21:13
8666 320 320 1 1 8238 8238 0.99 2005-07-29 00:30:06.000 2020-12-23 07:21:13
8667 320 320 2 2 8794 8794 4.99 2005-07-29 20:59:38.000 2020-12-23 07:21:13
8668 320 320 1 1 9509 9509 0.99 2005-07-31 00:22:42.000 2020-12-23 07:21:13
8669 320 320 1 1 11208 11208 0.99 2005-08-02 12:02:37.000 2020-12-23 07:21:13
8670 320 320 2 2 11560 11560 2.99 2005-08-17 01:20:30.000 2020-12-23 07:21:13
8671 320 320 2 2 14171 14171 0.99 2005-08-21 03:00:42.000 2020-12-23 07:21:13
8672 320 320 1 1 15302 15302 2.99 2005-08-22 19:44:53.000 2020-12-23 07:21:13

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