home / sakila

payment

23 rows where customer_id = 76

✎ 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
2062 76 76 2 2 574 574 1.99 2005-05-28 10:44:28.000 2020-12-23 07:19:38
2063 76 76 1 1 926 926 0.99 2005-05-30 12:15:54.000 2020-12-23 07:19:38
2064 76 76 2 2 1487 1487 0.99 2005-06-15 21:27:42.000 2020-12-23 07:19:38
2065 76 76 1 1 1791 1791 6.99 2005-06-16 20:04:28.000 2020-12-23 07:19:38
2066 76 76 2 2 2111 2111 0.99 2005-06-17 19:47:21.000 2020-12-23 07:19:38
2067 76 76 2 2 2397 2397 1.99 2005-06-18 15:51:25.000 2020-12-23 07:19:38
2068 76 76 1 1 2894 2894 0.99 2005-06-20 02:22:42.000 2020-12-23 07:19:38
2069 76 76 2 2 3416 3416 0.99 2005-06-21 17:05:29.000 2020-12-23 07:19:38
2070 76 76 2 2 4099 4099 4.99 2005-07-07 06:20:33.000 2020-12-23 07:19:38
2071 76 76 2 2 5571 5571 0.99 2005-07-10 03:48:20.000 2020-12-23 07:19:39
2072 76 76 2 2 6789 6789 0.99 2005-07-12 16:34:40.000 2020-12-23 07:19:39
2073 76 76 2 2 8253 8253 6.99 2005-07-29 00:57:06.000 2020-12-23 07:19:39
2074 76 76 2 2 8357 8357 2.99 2005-07-29 04:59:44.000 2020-12-23 07:19:39
2075 76 76 2 2 8405 8405 3.99 2005-07-29 06:28:19.000 2020-12-23 07:19:39
2076 76 76 1 1 8935 8935 0.99 2005-07-30 02:38:45.000 2020-12-23 07:19:39
2077 76 76 2 2 9312 9312 2.99 2005-07-30 16:59:17.000 2020-12-23 07:19:39
2078 76 76 2 2 10082 10082 0.99 2005-07-31 20:09:32.000 2020-12-23 07:19:39
2079 76 76 2 2 10795 10795 4.99 2005-08-01 21:56:37.000 2020-12-23 07:19:39
2080 76 76 2 2 11172 11172 7.99 2005-08-02 10:27:52.000 2020-12-23 07:19:39
2081 76 76 2 2 13697 13697 3.99 2005-08-20 09:21:08.000 2020-12-23 07:19:39
2082 76 76 1 1 14637 14637 2.99 2005-08-21 19:01:00.000 2020-12-23 07:19:39
2083 76 76 2 2 15169 15169 4.99 2005-08-22 15:21:56.000 2020-12-23 07:19:39
2084 76 76 1 1 15566 15566 10.99 2005-08-23 05:17:23.000 2020-12-23 07:19:39

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