home / sakila

payment

19 rows where customer_id = 117

✎ 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
3148 117 117 1 1 700 700 0.99 2005-05-29 02:18:54.000 2020-12-23 07:19:54
3149 117 117 2 2 1114 1114 0.99 2005-05-31 16:00:33.000 2020-12-23 07:19:54
3150 117 117 1 1 1755 1755 2.99 2005-06-16 17:18:44.000 2020-12-23 07:19:54
3151 117 117 2 2 3218 3218 2.99 2005-06-21 01:38:09.000 2020-12-23 07:19:54
3152 117 117 2 2 5506 5506 5.99 2005-07-10 00:45:48.000 2020-12-23 07:19:54
3153 117 117 1 1 5673 5673 0.99 2005-07-10 08:21:54.000 2020-12-23 07:19:54
3154 117 117 1 1 6093 6093 9.99 2005-07-11 05:52:50.000 2020-12-23 07:19:54
3155 117 117 1 1 6449 6449 6.99 2005-07-12 00:48:58.000 2020-12-23 07:19:54
3156 117 117 1 1 8687 8687 2.99 2005-07-29 16:19:17.000 2020-12-23 07:19:54
3157 117 117 2 2 10556 10556 2.99 2005-08-01 12:58:42.000 2020-12-23 07:19:54
3158 117 117 1 1 10558 10558 4.99 2005-08-01 13:00:20.000 2020-12-23 07:19:54
3159 117 117 2 2 11467 11467 3.99 2005-08-02 21:47:07.000 2020-12-23 07:19:54
3160 117 117 1 1 12143 12143 2.99 2005-08-18 00:06:26.000 2020-12-23 07:19:54
3161 117 117 1 1 12337 12337 2.99 2005-08-18 07:02:24.000 2020-12-23 07:19:55
3162 117 117 1 1 12575 12575 6.99 2005-08-18 15:37:42.000 2020-12-23 07:19:55
3163 117 117 1 1 12618 12618 4.99 2005-08-18 17:24:02.000 2020-12-23 07:19:55
3164 117 117 1 1 14784 14784 0.99 2005-08-22 00:23:13.000 2020-12-23 07:19:55
3165 117 117 2 2 14854 14854 2.99 2005-08-22 02:26:47.000 2020-12-23 07:19:55
3166 117 117 1 1 15432 15432 2.99 2005-08-23 00:26:52.000 2020-12-23 07:19:55

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