home / sakila

payment

32 rows where customer_id = 452

✎ 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
12193 452 452 1 1 354 354 2.99 2005-05-27 06:12:26.000 2020-12-23 07:22:03
12194 452 452 2 2 714 714 2.99 2005-05-29 04:15:21.000 2020-12-23 07:22:03
12195 452 452 1 1 726 726 1.99 2005-05-29 06:05:29.000 2020-12-23 07:22:03
12196 452 452 2 2 1203 1203 4.99 2005-06-15 02:09:02.000 2020-12-23 07:22:03
12197 452 452 1 1 1512 1512 5.99 2005-06-15 22:53:03.000 2020-12-23 07:22:03
12198 452 452 1 1 1794 1794 3.99 2005-06-16 20:08:37.000 2020-12-23 07:22:03
12199 452 452 1 1 2263 2263 0.99 2005-06-18 05:57:47.000 2020-12-23 07:22:03
12200 452 452 2 2 2266 2266 4.99 2005-06-18 06:05:02.000 2020-12-23 07:22:03
12201 452 452 1 1 2504 2504 0.99 2005-06-18 23:19:53.000 2020-12-23 07:22:03
12202 452 452 2 2 2661 2661 0.99 2005-06-19 10:50:52.000 2020-12-23 07:22:03
12203 452 452 2 2 3638 3638 3.99 2005-07-06 07:08:17.000 2020-12-23 07:22:03
12204 452 452 1 1 3791 3791 2.99 2005-07-06 14:24:56.000 2020-12-23 07:22:03
12205 452 452 2 2 3907 3907 6.99 2005-07-06 19:39:14.000 2020-12-23 07:22:03
12206 452 452 1 1 4348 4348 0.99 2005-07-07 19:02:05.000 2020-12-23 07:22:03
12207 452 452 2 2 4353 4353 4.99 2005-07-07 19:19:05.000 2020-12-23 07:22:03
12208 452 452 2 2 4417 4417 2.99 2005-07-07 22:05:05.000 2020-12-23 07:22:03
12209 452 452 1 1 4720 4720 0.99 2005-07-08 12:34:34.000 2020-12-23 07:22:03
12210 452 452 1 1 5177 5177 1.99 2005-07-09 09:43:21.000 2020-12-23 07:22:03
12211 452 452 2 2 5480 5480 0.99 2005-07-09 23:49:07.000 2020-12-23 07:22:03
12212 452 452 2 2 6959 6959 2.99 2005-07-27 00:07:51.000 2020-12-23 07:22:03
12213 452 452 2 2 7899 7899 6.99 2005-07-28 11:10:12.000 2020-12-23 07:22:03
12214 452 452 1 1 8898 8898 1.99 2005-07-30 01:02:20.000 2020-12-23 07:22:03
12215 452 452 2 2 9379 9379 6.99 2005-07-30 19:13:01.000 2020-12-23 07:22:03
12216 452 452 2 2 11715 11715 4.99 2005-08-17 07:40:55.000 2020-12-23 07:22:03
12217 452 452 1 1 11735 11735 3.99 2005-08-17 08:35:42.000 2020-12-23 07:22:03
12218 452 452 1 1 12355 12355 0.99 2005-08-18 07:36:23.000 2020-12-23 07:22:03
12219 452 452 1 1 12630 12630 4.99 2005-08-18 17:49:28.000 2020-12-23 07:22:03
12220 452 452 1 1 13080 13080 4.99 2005-08-19 10:18:00.000 2020-12-23 07:22:03
12221 452 452 1 1 13642 13642 3.99 2005-08-20 07:42:17.000 2020-12-23 07:22:03
12222 452 452 1 1 14660 14660 0.99 2005-08-21 19:43:21.000 2020-12-23 07:22:03
12223 452 452 1 1 15909 15909 0.99 2005-08-23 17:42:42.000 2020-12-23 07:22:03
12224 452 452 1 1 14175 14175 4.99 2006-02-14 15:16:03.000 2020-12-23 07:22:03

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