home / sakila

payment

23 rows where customer_id = 192

✎ 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
5196 192 192 1 1 895 895 1.99 2005-05-30 08:50:43.000 2020-12-23 07:20:23
5197 192 192 1 1 2760 2760 3.99 2005-06-19 17:16:33.000 2020-12-23 07:20:23
5198 192 192 1 1 3902 3902 2.99 2005-07-06 19:25:18.000 2020-12-23 07:20:23
5199 192 192 1 1 4469 4469 4.99 2005-07-08 00:18:32.000 2020-12-23 07:20:23
5200 192 192 1 1 5400 5400 2.99 2005-07-09 19:56:40.000 2020-12-23 07:20:23
5201 192 192 2 2 6223 6223 0.99 2005-07-11 13:27:09.000 2020-12-23 07:20:23
5202 192 192 2 2 6691 6691 0.99 2005-07-12 12:26:38.000 2020-12-23 07:20:23
5203 192 192 2 2 7147 7147 2.99 2005-07-27 07:02:34.000 2020-12-23 07:20:23
5204 192 192 2 2 8051 8051 0.99 2005-07-28 16:56:16.000 2020-12-23 07:20:23
5205 192 192 2 2 8292 8292 7.99 2005-07-29 02:29:36.000 2020-12-23 07:20:23
5206 192 192 1 1 9462 9462 7.99 2005-07-30 22:30:44.000 2020-12-23 07:20:23
5207 192 192 1 1 9831 9831 2.99 2005-07-31 11:59:32.000 2020-12-23 07:20:23
5208 192 192 2 2 10238 10238 0.99 2005-08-01 02:08:05.000 2020-12-23 07:20:23
5209 192 192 1 1 10843 10843 7.99 2005-08-01 23:43:03.000 2020-12-23 07:20:23
5210 192 192 1 1 11385 11385 4.99 2005-08-02 18:23:11.000 2020-12-23 07:20:23
5211 192 192 1 1 11815 11815 4.99 2005-08-17 12:13:26.000 2020-12-23 07:20:24
5212 192 192 1 1 13125 13125 5.99 2005-08-19 11:57:49.000 2020-12-23 07:20:24
5213 192 192 2 2 14146 14146 4.99 2005-08-21 02:13:31.000 2020-12-23 07:20:24
5214 192 192 2 2 14238 14238 7.99 2005-08-21 05:16:40.000 2020-12-23 07:20:24
5215 192 192 1 1 14404 14404 4.99 2005-08-21 10:43:04.000 2020-12-23 07:20:24
5216 192 192 2 2 14692 14692 6.99 2005-08-21 20:43:21.000 2020-12-23 07:20:24
5217 192 192 2 2 15855 15855 2.99 2005-08-23 15:59:01.000 2020-12-23 07:20:24
5218 192 192 1 1 11611 11611 4.99 2006-02-14 15:16:03.000 2020-12-23 07:20:24

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