home / sakila

payment

23 rows where customer_id = 93

✎ 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
2532 93 93 2 2 113 113 2.99 2005-05-25 19:07:40.000 2020-12-23 07:19:45
2533 93 93 2 2 420 420 6.99 2005-05-27 15:19:38.000 2020-12-23 07:19:45
2534 93 93 1 1 1025 1025 4.99 2005-05-31 03:41:37.000 2020-12-23 07:19:45
2535 93 93 2 2 2256 2256 4.99 2005-06-18 05:21:56.000 2020-12-23 07:19:45
2536 93 93 1 1 3109 3109 0.99 2005-06-20 17:33:55.000 2020-12-23 07:19:45
2537 93 93 1 1 4733 4733 2.99 2005-07-08 13:12:07.000 2020-12-23 07:19:45
2538 93 93 2 2 5130 5130 4.99 2005-07-09 07:29:45.000 2020-12-23 07:19:45
2539 93 93 2 2 6287 6287 4.99 2005-07-11 17:00:04.000 2020-12-23 07:19:45
2540 93 93 1 1 6586 6586 4.99 2005-07-12 06:56:24.000 2020-12-23 07:19:45
2541 93 93 1 1 7301 7301 2.99 2005-07-27 12:50:23.000 2020-12-23 07:19:45
2542 93 93 1 1 8233 8233 0.99 2005-07-29 00:16:23.000 2020-12-23 07:19:45
2543 93 93 2 2 11271 11271 5.99 2005-08-02 14:18:22.000 2020-12-23 07:19:45
2544 93 93 1 1 12704 12704 4.99 2005-08-18 20:43:00.000 2020-12-23 07:19:45
2545 93 93 1 1 13555 13555 2.99 2005-08-20 04:09:50.000 2020-12-23 07:19:46
2546 93 93 2 2 13904 13904 2.99 2005-08-20 16:11:34.000 2020-12-23 07:19:46
2547 93 93 1 1 13950 13950 8.99 2005-08-20 17:58:00.000 2020-12-23 07:19:46
2548 93 93 1 1 13993 13993 4.99 2005-08-20 19:32:29.000 2020-12-23 07:19:46
2549 93 93 1 1 14195 14195 0.99 2005-08-21 03:40:35.000 2020-12-23 07:19:46
2550 93 93 2 2 14333 14333 4.99 2005-08-21 08:31:03.000 2020-12-23 07:19:46
2551 93 93 2 2 15324 15324 5.99 2005-08-22 20:23:13.000 2020-12-23 07:19:46
2552 93 93 2 2 15631 15631 2.99 2005-08-23 07:30:23.000 2020-12-23 07:19:46
2553 93 93 1 1 15696 15696 0.99 2005-08-23 10:04:17.000 2020-12-23 07:19:46
2554 93 93 2 2 15913 15913 1.99 2005-08-23 17:48:30.000 2020-12-23 07:19:46

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