home / sakila

payment

33 rows where customer_id = 259

✎ View and edit SQL

This data as json, xlsx, CSV (advanced)

Suggested facets: staff_id, amount, payment_date (date), last_update (date)

payment_id ▼ customer_id staff_id rental_id amount payment_date last_update
6980 259 259 2 2 722 722 6.99 2005-05-29 05:30:31.000 2020-12-23 07:20:48
6981 259 259 2 2 901 901 2.99 2005-05-30 09:40:40.000 2020-12-23 07:20:48
6982 259 259 1 1 1147 1147 5.99 2005-05-31 20:37:52.000 2020-12-23 07:20:48
6983 259 259 1 1 1641 1641 7.99 2005-06-16 08:46:26.000 2020-12-23 07:20:48
6984 259 259 2 2 1723 1723 7.99 2005-06-16 15:14:18.000 2020-12-23 07:20:48
6985 259 259 2 2 1813 1813 2.99 2005-06-16 21:11:00.000 2020-12-23 07:20:48
6986 259 259 2 2 2375 2375 5.99 2005-06-18 14:47:29.000 2020-12-23 07:20:48
6987 259 259 2 2 4199 4199 5.99 2005-07-07 11:13:07.000 2020-12-23 07:20:48
6988 259 259 2 2 4489 4489 4.99 2005-07-08 01:23:58.000 2020-12-23 07:20:48
6989 259 259 1 1 6074 6074 0.99 2005-07-11 04:59:56.000 2020-12-23 07:20:48
6990 259 259 2 2 6539 6539 3.99 2005-07-12 04:50:49.000 2020-12-23 07:20:48
6991 259 259 2 2 7188 7188 2.99 2005-07-27 08:32:08.000 2020-12-23 07:20:48
6992 259 259 2 2 7774 7774 7.99 2005-07-28 07:03:25.000 2020-12-23 07:20:48
6993 259 259 1 1 7817 7817 4.99 2005-07-28 08:20:55.000 2020-12-23 07:20:48
6994 259 259 2 2 9205 9205 6.99 2005-07-30 12:46:40.000 2020-12-23 07:20:48
6995 259 259 1 1 9282 9282 6.99 2005-07-30 15:17:31.000 2020-12-23 07:20:48
6996 259 259 1 1 9444 9444 7.99 2005-07-30 21:48:44.000 2020-12-23 07:20:48
6997 259 259 1 1 10510 10510 3.99 2005-08-01 11:28:30.000 2020-12-23 07:20:48
6998 259 259 1 1 10781 10781 2.99 2005-08-01 21:22:41.000 2020-12-23 07:20:48
6999 259 259 1 1 11184 11184 3.99 2005-08-02 11:01:26.000 2020-12-23 07:20:48
7000 259 259 2 2 12680 12680 6.99 2005-08-18 19:43:46.000 2020-12-23 07:20:48
7001 259 259 1 1 13109 13109 4.99 2005-08-19 11:23:20.000 2020-12-23 07:20:48
7002 259 259 2 2 13112 13112 2.99 2005-08-19 11:27:10.000 2020-12-23 07:20:48
7003 259 259 2 2 13366 13366 4.99 2005-08-19 21:14:45.000 2020-12-23 07:20:48
7004 259 259 1 1 13598 13598 5.99 2005-08-20 05:59:17.000 2020-12-23 07:20:48
7005 259 259 2 2 13649 13649 4.99 2005-08-20 07:48:38.000 2020-12-23 07:20:48
7006 259 259 2 2 14067 14067 6.99 2005-08-20 22:49:23.000 2020-12-23 07:20:48
7007 259 259 2 2 14170 14170 4.99 2005-08-21 03:00:39.000 2020-12-23 07:20:48
7008 259 259 2 2 14966 14966 2.99 2005-08-22 06:45:57.000 2020-12-23 07:20:48
7009 259 259 1 1 15425 15425 10.99 2005-08-23 00:05:57.000 2020-12-23 07:20:48
7010 259 259 1 1 15473 15473 2.99 2005-08-23 01:39:10.000 2020-12-23 07:20:48
7011 259 259 2 2   1.99 2005-08-23 06:13:16.000 2020-12-23 07:20:48
7012 259 259 1 1 15689 15689 2.99 2005-08-23 09:52:55.000 2020-12-23 07:20:48

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