home / sakila

payment

23 rows where customer_id = 379

✎ 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
10248 379 379 2 2 209 209 4.99 2005-05-26 08:14:01.000 2020-12-23 07:21:35
10249 379 379 1 1 863 863 4.99 2005-05-30 03:14:59.000 2020-12-23 07:21:35
10250 379 379 1 1 1383 1383 8.99 2005-06-15 15:20:06.000 2020-12-23 07:21:35
10251 379 379 1 1 2313 2313 5.99 2005-06-18 08:56:45.000 2020-12-23 07:21:36
10252 379 379 1 1 2926 2926 2.99 2005-06-20 04:37:45.000 2020-12-23 07:21:36
10253 379 379 1 1 3788 3788 4.99 2005-07-06 14:02:02.000 2020-12-23 07:21:36
10254 379 379 2 2 4740 4740 2.99 2005-07-08 13:30:35.000 2020-12-23 07:21:36
10255 379 379 1 1 5402 5402 4.99 2005-07-09 20:01:58.000 2020-12-23 07:21:36
10256 379 379 1 1 6235 6235 7.99 2005-07-11 14:17:51.000 2020-12-23 07:21:36
10257 379 379 2 2 7041 7041 4.99 2005-07-27 03:18:32.000 2020-12-23 07:21:36
10258 379 379 1 1 10041 10041 4.99 2005-07-31 19:01:02.000 2020-12-23 07:21:36
10259 379 379 2 2 11457 11457 3.99 2005-08-02 21:14:16.000 2020-12-23 07:21:36
10260 379 379 1 1 12503 12503 4.99 2005-08-18 13:16:46.000 2020-12-23 07:21:36
10261 379 379 1 1 13334 13334 0.99 2005-08-19 20:02:33.000 2020-12-23 07:21:36
10262 379 379 2 2 13397 13397 7.99 2005-08-19 22:06:35.000 2020-12-23 07:21:36
10263 379 379 1 1 13485 13485 0.99 2005-08-20 01:20:14.000 2020-12-23 07:21:36
10264 379 379 1 1 14011 14011 5.99 2005-08-20 20:32:56.000 2020-12-23 07:21:36
10265 379 379 2 2 14152 14152 2.99 2005-08-21 02:23:50.000 2020-12-23 07:21:36
10266 379 379 1 1 14470 14470 0.99 2005-08-21 13:09:41.000 2020-12-23 07:21:36
10267 379 379 1 1 14886 14886 4.99 2005-08-22 03:59:01.000 2020-12-23 07:21:36
10268 379 379 2 2 15399 15399 4.99 2005-08-22 23:11:59.000 2020-12-23 07:21:36
10269 379 379 1 1 15446 15446 4.99 2005-08-23 00:49:24.000 2020-12-23 07:21:36
10270 379 379 2 2 15930 15930 3.99 2005-08-23 18:26:51.000 2020-12-23 07:21:36

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