home / sakila

payment

21 rows where customer_id = 159

✎ 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
4324 159 159 2 2 475 475 2.99 2005-05-27 22:16:26.000 2020-12-23 07:20:10
4325 159 159 2 2 549 549 1.99 2005-05-28 07:35:37.000 2020-12-23 07:20:10
4326 159 159 1 1 598 598 0.99 2005-05-28 14:04:50.000 2020-12-23 07:20:10
4327 159 159 1 1 832 832 3.99 2005-05-29 22:51:20.000 2020-12-23 07:20:10
4328 159 159 1 1 1695 1695 0.99 2005-06-16 12:40:28.000 2020-12-23 07:20:10
4329 159 159 1 1 2572 2572 0.99 2005-06-19 04:21:26.000 2020-12-23 07:20:10
4330 159 159 2 2 3914 3914 5.99 2005-07-06 20:11:10.000 2020-12-23 07:20:10
4331 159 159 2 2 4273 4273 4.99 2005-07-07 14:40:22.000 2020-12-23 07:20:10
4332 159 159 2 2 5656 5656 0.99 2005-07-10 07:31:07.000 2020-12-23 07:20:10
4333 159 159 2 2 6885 6885 4.99 2005-07-12 20:56:04.000 2020-12-23 07:20:10
4334 159 159 2 2 8212 8212 2.99 2005-07-28 23:37:23.000 2020-12-23 07:20:10
4335 159 159 1 1 8470 8470 0.99 2005-07-29 08:28:50.000 2020-12-23 07:20:10
4336 159 159 2 2 9022 9022 3.99 2005-07-30 05:34:45.000 2020-12-23 07:20:11
4337 159 159 2 2 9132 9132 0.99 2005-07-30 09:56:00.000 2020-12-23 07:20:11
4338 159 159 1 1 9559 9559 7.99 2005-07-31 02:15:53.000 2020-12-23 07:20:11
4339 159 159 1 1 9917 9917 4.99 2005-07-31 14:55:11.000 2020-12-23 07:20:11
4340 159 159 2 2 11225 11225 4.99 2005-08-02 12:43:27.000 2020-12-23 07:20:11
4341 159 159 2 2 13270 13270 1.99 2005-08-19 17:41:16.000 2020-12-23 07:20:11
4342 159 159 1 1 13933 13933 0.99 2005-08-20 17:17:07.000 2020-12-23 07:20:11
4343 159 159 2 2 14575 14575 8.99 2005-08-21 16:51:34.000 2020-12-23 07:20:11
4344 159 159 1 1 15197 15197 0.99 2005-08-22 16:14:25.000 2020-12-23 07:20:11

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