home / sakila

payment

31 rows where customer_id = 214

✎ 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
5801 214 214 1 1 242 242 1.99 2005-05-26 13:05:08.000 2020-12-23 07:20:31
5802 214 214 1 1 278 278 3.99 2005-05-26 17:40:58.000 2020-12-23 07:20:31
5803 214 214 1 1 1076 1076 2.99 2005-05-31 10:14:31.000 2020-12-23 07:20:31
5804 214 214 2 2 1093 1093 2.99 2005-05-31 12:32:26.000 2020-12-23 07:20:32
5805 214 214 2 2 1112 1112 0.99 2005-05-31 15:51:39.000 2020-12-23 07:20:32
5806 214 214 2 2 1275 1275 4.99 2005-06-15 07:55:43.000 2020-12-23 07:20:32
5807 214 214 2 2 2085 2085 2.99 2005-06-17 17:30:56.000 2020-12-23 07:20:32
5808 214 214 2 2 2868 2868 2.99 2005-06-20 00:08:58.000 2020-12-23 07:20:32
5809 214 214 2 2 4211 4211 0.99 2005-07-07 11:50:41.000 2020-12-23 07:20:32
5810 214 214 1 1 4783 4783 3.99 2005-07-08 16:09:24.000 2020-12-23 07:20:32
5811 214 214 2 2 4984 4984 3.99 2005-07-09 00:35:31.000 2020-12-23 07:20:32
5812 214 214 2 2 5172 5172 2.99 2005-07-09 09:31:27.000 2020-12-23 07:20:32
5813 214 214 1 1 6602 6602 7.99 2005-07-12 07:50:24.000 2020-12-23 07:20:32
5814 214 214 2 2 7417 7417 4.99 2005-07-27 16:58:33.000 2020-12-23 07:20:32
5815 214 214 2 2 7826 7826 5.99 2005-07-28 08:35:51.000 2020-12-23 07:20:32
5816 214 214 1 1 8663 8663 4.99 2005-07-29 15:33:18.000 2020-12-23 07:20:32
5817 214 214 1 1 10563 10563 3.99 2005-08-01 13:06:03.000 2020-12-23 07:20:32
5818 214 214 2 2 10749 10749 4.99 2005-08-01 20:02:01.000 2020-12-23 07:20:32
5819 214 214 2 2 11450 11450 2.99 2005-08-02 20:45:54.000 2020-12-23 07:20:32
5820 214 214 2 2 11474 11474 4.99 2005-08-02 21:53:08.000 2020-12-23 07:20:32
5821 214 214 2 2 12463 12463 4.99 2005-08-18 11:31:34.000 2020-12-23 07:20:32
5822 214 214 2 2 13138 13138 2.99 2005-08-19 12:30:01.000 2020-12-23 07:20:32
5823 214 214 2 2 13350 13350 9.99 2005-08-19 20:44:00.000 2020-12-23 07:20:32
5824 214 214 1 1 13409 13409 2.99 2005-08-19 22:36:26.000 2020-12-23 07:20:32
5825 214 214 1 1 13565 13565 0.99 2005-08-20 04:38:52.000 2020-12-23 07:20:32
5826 214 214 1 1 13726 13726 0.99 2005-08-20 10:08:40.000 2020-12-23 07:20:32
5827 214 214 1 1 13864 13864 4.99 2005-08-20 14:59:55.000 2020-12-23 07:20:32
5828 214 214 2 2 14347 14347 4.99 2005-08-21 08:42:31.000 2020-12-23 07:20:32
5829 214 214 1 1 14567 14567 0.99 2005-08-21 16:27:25.000 2020-12-23 07:20:32
5830 214 214 2 2 15639 15639 2.99 2005-08-23 08:03:25.000 2020-12-23 07:20:32
5831 214 214 2 2 15645 15645 2.99 2006-02-14 15:16:03.000 2020-12-23 07:20:32

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