home / sakila

payment

22 rows where customer_id = 539

✎ 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
14507 539 539 2 2 250 250 4.99 2005-05-26 14:30:24.000 2020-12-23 07:22:33
14508 539 539 1 1 342 342 0.99 2005-05-27 04:11:04.000 2020-12-23 07:22:33
14509 539 539 2 2 1282 1282 3.99 2005-06-15 08:25:33.000 2020-12-23 07:22:33
14510 539 539 1 1 1327 1327 0.99 2005-06-15 11:11:39.000 2020-12-23 07:22:33
14511 539 539 2 2 1444 1444 4.99 2005-06-15 19:08:16.000 2020-12-23 07:22:33
14512 539 539 1 1 4035 4035 2.99 2005-07-07 02:45:02.000 2020-12-23 07:22:33
14513 539 539 1 1 4247 4247 0.99 2005-07-07 13:51:54.000 2020-12-23 07:22:33
14514 539 539 2 2 5086 5086 4.99 2005-07-09 05:40:04.000 2020-12-23 07:22:34
14515 539 539 2 2 5139 5139 7.99 2005-07-09 08:01:51.000 2020-12-23 07:22:34
14516 539 539 2 2 5493 5493 2.99 2005-07-10 00:11:44.000 2020-12-23 07:22:34
14517 539 539 2 2 6874 6874 5.99 2005-07-12 20:20:53.000 2020-12-23 07:22:34
14518 539 539 1 1 7781 7781 2.99 2005-07-28 07:13:20.000 2020-12-23 07:22:34
14519 539 539 2 2 8247 8247 6.99 2005-07-29 00:41:38.000 2020-12-23 07:22:34
14520 539 539 2 2 8761 8761 5.99 2005-07-29 19:26:47.000 2020-12-23 07:22:34
14521 539 539 2 2 9250 9250 0.99 2005-07-30 14:18:16.000 2020-12-23 07:22:34
14522 539 539 1 1 9777 9777 7.99 2005-07-31 10:01:06.000 2020-12-23 07:22:34
14523 539 539 1 1 9796 9796 4.99 2005-07-31 10:52:43.000 2020-12-23 07:22:34
14524 539 539 2 2 10922 10922 3.99 2005-08-02 02:14:40.000 2020-12-23 07:22:34
14525 539 539 1 1 12848 12848 2.99 2005-08-19 02:05:11.000 2020-12-23 07:22:34
14526 539 539 2 2 13615 13615 2.99 2005-08-20 06:28:53.000 2020-12-23 07:22:34
14527 539 539 2 2 13778 13778 5.99 2005-08-20 12:03:44.000 2020-12-23 07:22:34
14528 539 539 1 1 15356 15356 2.99 2005-08-22 21:24:19.000 2020-12-23 07:22:34

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