home / sakila

payment

22 rows where customer_id = 189

✎ 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
5127 189 189 2 2 1117 1117 5.99 2005-05-31 16:15:31.000 2020-12-23 07:20:22
5128 189 189 1 1 1541 1541 0.99 2005-06-16 01:15:59.000 2020-12-23 07:20:22
5129 189 189 1 1 1834 1834 0.99 2005-06-16 22:49:08.000 2020-12-23 07:20:22
5130 189 189 2 2 2905 2905 1.99 2005-06-20 02:56:16.000 2020-12-23 07:20:22
5131 189 189 1 1 3108 3108 6.99 2005-06-20 17:28:43.000 2020-12-23 07:20:22
5132 189 189 1 1 3346 3346 2.99 2005-06-21 11:06:53.000 2020-12-23 07:20:22
5133 189 189 1 1 3763 3763 0.99 2005-07-06 12:56:31.000 2020-12-23 07:20:22
5134 189 189 2 2 3813 3813 4.99 2005-07-06 15:23:34.000 2020-12-23 07:20:22
5135 189 189 2 2 4203 4203 0.99 2005-07-07 11:24:14.000 2020-12-23 07:20:22
5136 189 189 1 1 6193 6193 5.99 2005-07-11 11:46:57.000 2020-12-23 07:20:22
5137 189 189 1 1 7469 7469 4.99 2005-07-27 18:57:40.000 2020-12-23 07:20:22
5138 189 189 1 1 7675 7675 4.99 2005-07-28 02:55:20.000 2020-12-23 07:20:22
5139 189 189 2 2 7790 7790 2.99 2005-07-28 07:22:35.000 2020-12-23 07:20:22
5140 189 189 2 2 9171 9171 5.99 2005-07-30 11:36:24.000 2020-12-23 07:20:22
5141 189 189 2 2 9386 9386 0.99 2005-07-30 19:26:21.000 2020-12-23 07:20:22
5142 189 189 1 1 9506 9506 4.99 2005-07-31 00:19:01.000 2020-12-23 07:20:22
5143 189 189 1 1 10247 10247 9.99 2005-08-01 02:34:06.000 2020-12-23 07:20:22
5144 189 189 2 2 11059 11059 6.99 2005-08-02 06:41:38.000 2020-12-23 07:20:22
5145 189 189 2 2 13601 13601 6.99 2005-08-20 06:01:15.000 2020-12-23 07:20:23
5146 189 189 1 1 13766 13766 3.99 2005-08-20 11:42:01.000 2020-12-23 07:20:23
5147 189 189 1 1 15773 15773 1.99 2005-08-23 13:24:57.000 2020-12-23 07:20:23
5148 189 189 1 1 16008 16008 5.99 2005-08-23 21:04:51.000 2020-12-23 07:20:23

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