home / sakila

payment

21 rows where customer_id = 165

✎ 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
4467 165 165 2 2 338 338 4.99 2005-05-27 03:42:52.000 2020-12-23 07:20:12
4468 165 165 1 1 2013 2013 3.99 2005-06-17 12:03:01.000 2020-12-23 07:20:12
4469 165 165 2 2 3195 3195 2.99 2005-06-21 00:02:10.000 2020-12-23 07:20:12
4470 165 165 2 2 3531 3531 4.99 2005-07-06 01:24:08.000 2020-12-23 07:20:12
4471 165 165 1 1 3784 3784 5.99 2005-07-06 13:57:56.000 2020-12-23 07:20:12
4472 165 165 2 2 4304 4304 0.99 2005-07-07 17:01:19.000 2020-12-23 07:20:12
4473 165 165 2 2 4945 4945 2.99 2005-07-08 22:45:02.000 2020-12-23 07:20:12
4474 165 165 1 1 5472 5472 4.99 2005-07-09 23:16:40.000 2020-12-23 07:20:13
4475 165 165 2 2 5658 5658 4.99 2005-07-10 07:34:08.000 2020-12-23 07:20:13
4476 165 165 2 2 5901 5901 6.99 2005-07-10 20:22:12.000 2020-12-23 07:20:13
4477 165 165 1 1 5973 5973 0.99 2005-07-11 00:09:17.000 2020-12-23 07:20:13
4478 165 165 1 1 7074 7074 2.99 2005-07-27 04:06:24.000 2020-12-23 07:20:13
4479 165 165 1 1 8608 8608 0.99 2005-07-29 13:18:52.000 2020-12-23 07:20:13
4480 165 165 2 2 9182 9182 7.99 2005-07-30 12:06:58.000 2020-12-23 07:20:13
4481 165 165 2 2 9685 9685 4.99 2005-07-31 06:49:18.000 2020-12-23 07:20:13
4482 165 165 1 1 10565 10565 4.99 2005-08-01 13:08:27.000 2020-12-23 07:20:13
4483 165 165 1 1 11484 11484 2.99 2005-08-02 22:28:23.000 2020-12-23 07:20:13
4484 165 165 2 2 12643 12643 4.99 2005-08-18 18:21:06.000 2020-12-23 07:20:13
4485 165 165 2 2 15007 15007 1.99 2005-08-22 08:21:21.000 2020-12-23 07:20:13
4486 165 165 1 1 15801 15801 3.99 2005-08-23 14:26:04.000 2020-12-23 07:20:13
4487 165 165 2 2 15834 15834 5.99 2005-08-23 15:23:50.000 2020-12-23 07:20:13

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