home / sakila

payment

14 rows where customer_id = 281

✎ 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
7611 281 281 2 2 650 650 2.99 2005-05-28 19:45:40.000 2020-12-23 07:20:57
7612 281 281 2 2 754 754 2.99 2005-05-29 10:18:59.000 2020-12-23 07:20:57
7613 281 281 2 2 1485 1485 5.99 2005-06-15 21:24:10.000 2020-12-23 07:20:57
7614 281 281 1 1 2254 2254 5.99 2005-06-18 05:15:14.000 2020-12-23 07:20:57
7615 281 281 1 1 4607 4607 0.99 2005-07-08 07:15:14.000 2020-12-23 07:20:57
7616 281 281 2 2 4864 4864 6.99 2005-07-08 19:05:34.000 2020-12-23 07:20:57
7617 281 281 2 2 5410 5410 5.99 2005-07-09 20:21:10.000 2020-12-23 07:20:57
7618 281 281 2 2 6825 6825 0.99 2005-07-12 18:28:12.000 2020-12-23 07:20:57
7619 281 281 2 2 7034 7034 2.99 2005-07-27 03:03:37.000 2020-12-23 07:20:57
7620 281 281 1 1 7525 7525 3.99 2005-07-27 21:13:28.000 2020-12-23 07:20:57
7621 281 281 2 2 8131 8131 0.99 2005-07-28 19:55:21.000 2020-12-23 07:20:57
7622 281 281 2 2 8180 8180 4.99 2005-07-28 22:05:24.000 2020-12-23 07:20:57
7623 281 281 1 1 13641 13641 2.99 2005-08-20 07:34:42.000 2020-12-23 07:20:57
7624 281 281 1 1 14196 14196 1.99 2005-08-21 03:40:40.000 2020-12-23 07:20:57

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