home / sakila

payment

33 rows where customer_id = 237

✎ 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
6386 237 237 2 2 133 133 0.99 2005-05-25 21:48:30.000 2020-12-23 07:20:39
6387 237 237 1 1 182 182 4.99 2005-05-26 04:49:17.000 2020-12-23 07:20:39
6388 237 237 1 1 1500 1500 0.99 2005-06-15 22:00:45.000 2020-12-23 07:20:39
6389 237 237 2 2 1518 1518 0.99 2005-06-15 23:36:37.000 2020-12-23 07:20:39
6390 237 237 1 1 2156 2156 4.99 2005-06-17 23:08:12.000 2020-12-23 07:20:39
6391 237 237 1 1 2492 2492 2.99 2005-06-18 22:04:15.000 2020-12-23 07:20:39
6392 237 237 2 2 3069 3069 2.99 2005-06-20 14:13:00.000 2020-12-23 07:20:39
6393 237 237 1 1 4844 4844 4.99 2005-07-08 18:28:13.000 2020-12-23 07:20:39
6394 237 237 2 2 6053 6053 4.99 2005-07-11 03:51:59.000 2020-12-23 07:20:39
6395 237 237 1 1 7193 7193 2.99 2005-07-27 08:37:00.000 2020-12-23 07:20:39
6396 237 237 2 2 7330 7330 3.99 2005-07-27 13:56:46.000 2020-12-23 07:20:39
6397 237 237 1 1 7812 7812 4.99 2005-07-28 08:06:52.000 2020-12-23 07:20:39
6398 237 237 2 2 7951 7951 8.99 2005-07-28 13:21:16.000 2020-12-23 07:20:39
6399 237 237 2 2 8102 8102 2.99 2005-07-28 18:49:43.000 2020-12-23 07:20:39
6400 237 237 2 2 8748 8748 2.99 2005-07-29 19:08:37.000 2020-12-23 07:20:39
6401 237 237 2 2 8799 8799 6.99 2005-07-29 21:16:47.000 2020-12-23 07:20:39
6402 237 237 1 1 8835 8835 3.99 2005-07-29 22:44:35.000 2020-12-23 07:20:39
6403 237 237 1 1 9276 9276 5.99 2005-07-30 15:09:28.000 2020-12-23 07:20:39
6404 237 237 1 1 9661 9661 4.99 2005-07-31 06:06:37.000 2020-12-23 07:20:39
6405 237 237 2 2 9715 9715 1.99 2005-07-31 08:16:58.000 2020-12-23 07:20:39
6406 237 237 2 2 10056 10056 0.99 2005-07-31 19:19:13.000 2020-12-23 07:20:39
6407 237 237 2 2 10058 10058 2.99 2005-07-31 19:20:21.000 2020-12-23 07:20:39
6408 237 237 2 2 11125 11125 4.99 2005-08-02 08:55:35.000 2020-12-23 07:20:39
6409 237 237 2 2 11479 11479 11.99 2005-08-02 22:18:13.000 2020-12-23 07:20:39
6410 237 237 2 2 11772 11772 5.99 2005-08-17 10:18:57.000 2020-12-23 07:20:39
6411 237 237 1 1 12469 12469 0.99 2005-08-18 11:53:07.000 2020-12-23 07:20:39
6412 237 237 2 2 13914 13914 6.99 2005-08-20 16:38:57.000 2020-12-23 07:20:39
6413 237 237 2 2 13922 13922 6.99 2005-08-20 17:02:37.000 2020-12-23 07:20:39
6414 237 237 2 2 13969 13969 6.99 2005-08-20 18:42:40.000 2020-12-23 07:20:39
6415 237 237 2 2 14453 14453 3.99 2005-08-21 12:33:34.000 2020-12-23 07:20:39
6416 237 237 2 2 15139 15139 8.99 2005-08-22 13:38:11.000 2020-12-23 07:20:39
6417 237 237 1 1 15337 15337 0.99 2005-08-22 20:49:51.000 2020-12-23 07:20:39
6418 237 237 2 2 15931 15931 1.99 2005-08-23 18:28:09.000 2020-12-23 07:20:39

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