home / sakila

payment

22 rows where customer_id = 430

✎ 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
11598 430 430 2 2 30 30 2.99 2005-05-25 04:01:32.000 2020-12-23 07:21:54
11599 430 430 1 1 364 364 4.99 2005-05-27 07:20:12.000 2020-12-23 07:21:54
11600 430 430 2 2 1207 1207 0.99 2005-06-15 02:27:08.000 2020-12-23 07:21:54
11601 430 430 1 1 1274 1274 2.99 2005-06-15 07:52:52.000 2020-12-23 07:21:54
11602 430 430 1 1 1538 1538 2.99 2005-06-16 01:05:50.000 2020-12-23 07:21:54
11603 430 430 1 1 1759 1759 6.99 2005-06-16 17:46:37.000 2020-12-23 07:21:54
11604 430 430 2 2 2892 2892 0.99 2005-06-20 02:06:39.000 2020-12-23 07:21:54
11605 430 430 2 2 3153 3153 0.99 2005-06-20 20:44:15.000 2020-12-23 07:21:54
11606 430 430 1 1 5002 5002 4.99 2005-07-09 01:17:08.000 2020-12-23 07:21:55
11607 430 430 1 1 5217 5217 5.99 2005-07-09 11:56:50.000 2020-12-23 07:21:55
11608 430 430 2 2 5879 5879 6.99 2005-07-10 19:12:47.000 2020-12-23 07:21:55
11609 430 430 1 1 5958 5958 6.99 2005-07-10 23:31:51.000 2020-12-23 07:21:55
11610 430 430 2 2 6043 6043 0.99 2005-07-11 03:18:10.000 2020-12-23 07:21:55
11611 430 430 1 1 8560 8560 4.99 2005-07-29 11:27:27.000 2020-12-23 07:21:55
11612 430 430 2 2 9450 9450 2.99 2005-07-30 22:04:04.000 2020-12-23 07:21:55
11613 430 430 1 1 12723 12723 0.99 2005-08-18 21:34:16.000 2020-12-23 07:21:55
11614 430 430 1 1 12965 12965 4.99 2005-08-19 06:33:00.000 2020-12-23 07:21:55
11615 430 430 1 1 13007 13007 0.99 2005-08-19 07:47:43.000 2020-12-23 07:21:55
11616 430 430 2 2 13452 13452 0.99 2005-08-20 00:20:07.000 2020-12-23 07:21:55
11617 430 430 2 2 13454 13454 2.99 2005-08-20 00:30:52.000 2020-12-23 07:21:55
11618 430 430 1 1 14058 14058 5.99 2005-08-20 22:24:35.000 2020-12-23 07:21:55
11619 430 430 1 1 15031 15031 4.99 2005-08-22 09:11:48.000 2020-12-23 07:21:55

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