home / sakila

payment

21 rows where customer_id = 413

✎ 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
11170 413 413 1 1 40 40 4.99 2005-05-25 05:09:04.000 2020-12-23 07:21:48
11171 413 413 1 1 999 999 4.99 2005-05-31 00:25:10.000 2020-12-23 07:21:48
11172 413 413 2 2 2130 2130 5.99 2005-06-17 21:00:44.000 2020-12-23 07:21:48
11173 413 413 2 2 2545 2545 4.99 2005-06-19 02:23:36.000 2020-12-23 07:21:48
11174 413 413 1 1 3762 3762 4.99 2005-07-06 12:52:49.000 2020-12-23 07:21:48
11175 413 413 2 2 4491 4491 0.99 2005-07-08 01:30:46.000 2020-12-23 07:21:48
11176 413 413 1 1 5897 5897 7.99 2005-07-10 20:16:14.000 2020-12-23 07:21:48
11177 413 413 2 2 7100 7100 4.99 2005-07-27 05:05:01.000 2020-12-23 07:21:48
11178 413 413 1 1 7635 7635 0.99 2005-07-28 01:08:11.000 2020-12-23 07:21:48
11179 413 413 2 2 7731 7731 0.99 2005-07-28 05:01:18.000 2020-12-23 07:21:49
11180 413 413 1 1 10909 10909 2.99 2005-08-02 01:53:59.000 2020-12-23 07:21:49
11181 413 413 2 2 11304 11304 2.99 2005-08-02 15:40:10.000 2020-12-23 07:21:49
11182 413 413 1 1 11468 11468 0.99 2005-08-02 21:47:26.000 2020-12-23 07:21:49
11183 413 413 1 1 11532 11532 0.99 2005-08-17 00:34:14.000 2020-12-23 07:21:49
11184 413 413 2 2 12552 12552 2.99 2005-08-18 14:46:34.000 2020-12-23 07:21:49
11185 413 413 1 1 13010 13010 3.99 2005-08-19 07:52:21.000 2020-12-23 07:21:49
11186 413 413 1 1 13318 13318 2.99 2005-08-19 19:33:57.000 2020-12-23 07:21:49
11187 413 413 2 2 13824 13824 4.99 2005-08-20 13:43:12.000 2020-12-23 07:21:49
11188 413 413 2 2 13887 13887 4.99 2005-08-20 15:39:00.000 2020-12-23 07:21:49
11189 413 413 1 1 14773 14773 2.99 2005-08-21 23:50:57.000 2020-12-23 07:21:49
11190 413 413 1 1 15678 15678 2.99 2005-08-23 09:23:45.000 2020-12-23 07:21:49

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