home / sakila

payment

33 rows where customer_id = 533

✎ 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
14339 533 533 1 1 173 173 0.99 2005-05-26 03:42:10.000 2020-12-23 07:22:31
14340 533 533 2 2 190 190 1.99 2005-05-26 06:11:28.000 2020-12-23 07:22:31
14341 533 533 1 1 615 615 5.99 2005-05-28 15:35:52.000 2020-12-23 07:22:31
14342 533 533 1 1 1421 1421 5.99 2005-06-15 17:57:04.000 2020-12-23 07:22:31
14343 533 533 1 1 1652 1652 0.99 2005-06-16 09:31:37.000 2020-12-23 07:22:31
14344 533 533 1 1 1859 1859 0.99 2005-06-17 01:13:38.000 2020-12-23 07:22:31
14345 533 533 1 1 1954 1954 2.99 2005-06-17 08:37:55.000 2020-12-23 07:22:31
14346 533 533 2 2 2770 2770 6.99 2005-06-19 17:54:22.000 2020-12-23 07:22:31
14347 533 533 1 1 2956 2956 0.99 2005-06-20 06:47:23.000 2020-12-23 07:22:31
14348 533 533 1 1 4112 4112 8.99 2005-07-07 06:49:09.000 2020-12-23 07:22:31
14349 533 533 1 1 4788 4788 4.99 2005-07-08 16:17:35.000 2020-12-23 07:22:31
14350 533 533 2 2 6781 6781 2.99 2005-07-12 16:21:47.000 2020-12-23 07:22:31
14351 533 533 2 2 6834 6834 0.99 2005-07-12 18:53:37.000 2020-12-23 07:22:31
14352 533 533 2 2 6837 6837 9.99 2005-07-12 18:59:45.000 2020-12-23 07:22:31
14353 533 533 2 2 7555 7555 4.99 2005-07-27 22:17:05.000 2020-12-23 07:22:31
14354 533 533 1 1 8093 8093 8.99 2005-07-28 18:29:16.000 2020-12-23 07:22:31
14355 533 533 2 2 8104 8104 2.99 2005-07-28 18:59:36.000 2020-12-23 07:22:31
14356 533 533 2 2 8250 8250 2.99 2005-07-29 00:49:15.000 2020-12-23 07:22:31
14357 533 533 1 1 8471 8471 2.99 2005-07-29 08:32:11.000 2020-12-23 07:22:31
14358 533 533 1 1 8676 8676 1.99 2005-07-29 15:59:06.000 2020-12-23 07:22:31
14359 533 533 2 2 8786 8786 1.99 2005-07-29 20:39:49.000 2020-12-23 07:22:31
14360 533 533 2 2 10090 10090 3.99 2005-07-31 20:22:01.000 2020-12-23 07:22:31
14361 533 533 1 1 10380 10380 2.99 2005-08-01 06:34:36.000 2020-12-23 07:22:31
14362 533 533 1 1 10614 10614 6.99 2005-08-01 14:57:00.000 2020-12-23 07:22:31
14363 533 533 2 2 11524 11524 7.99 2005-08-17 00:10:55.000 2020-12-23 07:22:31
14364 533 533 1 1 11758 11758 8.99 2005-08-17 09:33:02.000 2020-12-23 07:22:31
14365 533 533 1 1 11918 11918 2.99 2005-08-17 16:08:42.000 2020-12-23 07:22:31
14366 533 533 1 1 12602 12602 0.99 2005-08-18 16:49:50.000 2020-12-23 07:22:31
14367 533 533 1 1 12655 12655 6.99 2005-08-18 18:57:44.000 2020-12-23 07:22:31
14368 533 533 1 1 14263 14263 7.99 2005-08-21 06:08:15.000 2020-12-23 07:22:31
14369 533 533 1 1 14800 14800 4.99 2005-08-22 00:46:18.000 2020-12-23 07:22:31
14370 533 533 2 2 16006 16006 0.99 2005-08-23 21:01:09.000 2020-12-23 07:22:31
14371 533 533 2 2 14018 14018 2.99 2006-02-14 15:16:03.000 2020-12-23 07:22:31

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