home / sakila

payment

31 rows where customer_id = 309

✎ 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
8381 309 309 2 2 218 218 6.99 2005-05-26 09:27:09.000 2020-12-23 07:21:08
8382 309 309 2 2 723 723 0.99 2005-05-29 05:34:44.000 2020-12-23 07:21:08
8383 309 309 1 1 1837 1837 4.99 2005-06-16 23:16:15.000 2020-12-23 07:21:08
8384 309 309 2 2 2560 2560 9.99 2005-06-19 03:12:42.000 2020-12-23 07:21:08
8385 309 309 2 2 2644 2644 3.99 2005-06-19 09:42:30.000 2020-12-23 07:21:08
8386 309 309 2 2 2688 2688 6.99 2005-06-19 12:50:56.000 2020-12-23 07:21:08
8387 309 309 2 2 3837 3837 4.99 2005-07-06 16:27:43.000 2020-12-23 07:21:08
8388 309 309 2 2 3896 3896 7.99 2005-07-06 19:09:15.000 2020-12-23 07:21:08
8389 309 309 2 2 4172 4172 4.99 2005-07-07 09:49:09.000 2020-12-23 07:21:08
8390 309 309 1 1 4540 4540 4.99 2005-07-08 04:03:28.000 2020-12-23 07:21:08
8391 309 309 2 2 5305 5305 8.99 2005-07-09 15:55:36.000 2020-12-23 07:21:08
8392 309 309 1 1 5980 5980 4.99 2005-07-11 00:18:21.000 2020-12-23 07:21:08
8393 309 309 2 2 6480 6480 4.99 2005-07-12 01:49:29.000 2020-12-23 07:21:08
8394 309 309 2 2 7214 7214 5.99 2005-07-27 09:23:33.000 2020-12-23 07:21:09
8395 309 309 2 2 7722 7722 4.99 2005-07-28 04:44:58.000 2020-12-23 07:21:09
8396 309 309 1 1 7846 7846 5.99 2005-07-28 09:21:18.000 2020-12-23 07:21:09
8397 309 309 1 1 8341 8341 4.99 2005-07-29 04:42:01.000 2020-12-23 07:21:09
8398 309 309 1 1 8501 8501 2.99 2005-07-29 09:12:51.000 2020-12-23 07:21:09
8399 309 309 1 1 8681 8681 2.99 2005-07-29 16:12:01.000 2020-12-23 07:21:09
8400 309 309 1 1 8917 8917 2.99 2005-07-30 01:47:02.000 2020-12-23 07:21:09
8401 309 309 2 2 9945 9945 2.99 2005-07-31 15:47:51.000 2020-12-23 07:21:09
8402 309 309 1 1 9949 9949 0.99 2005-07-31 15:50:10.000 2020-12-23 07:21:09
8403 309 309 1 1 10458 10458 2.99 2005-08-01 09:19:48.000 2020-12-23 07:21:09
8404 309 309 1 1 10728 10728 0.99 2005-08-01 19:15:09.000 2020-12-23 07:21:09
8405 309 309 1 1 10818 10818 2.99 2005-08-01 22:52:45.000 2020-12-23 07:21:09
8406 309 309 2 2 11964 11964 6.99 2005-08-17 17:37:03.000 2020-12-23 07:21:09
8407 309 309 2 2 13021 13021 5.99 2005-08-19 08:08:04.000 2020-12-23 07:21:09
8408 309 309 2 2 13502 13502 0.99 2005-08-20 01:58:15.000 2020-12-23 07:21:09
8409 309 309 2 2 13909 13909 4.99 2005-08-20 16:26:36.000 2020-12-23 07:21:09
8410 309 309 2 2 14846 14846 5.99 2005-08-22 02:13:48.000 2020-12-23 07:21:09
8411 309 309 2 2 15422 15422 4.99 2005-08-22 23:58:09.000 2020-12-23 07:21:09

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