home / sakila

payment

23 rows where customer_id = 345

✎ 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
9313 345 345 1 1 206 206 0.99 2005-05-26 08:01:54.000 2020-12-23 07:21:22
9314 345 345 1 1 363 363 0.99 2005-05-27 07:14:00.000 2020-12-23 07:21:22
9315 345 345 2 2 1210 1210 0.99 2005-06-15 02:57:51.000 2020-12-23 07:21:22
9316 345 345 1 1 1457 1457 4.99 2005-06-15 20:05:49.000 2020-12-23 07:21:22
9317 345 345 2 2 1550 1550 0.99 2005-06-16 01:58:35.000 2020-12-23 07:21:22
9318 345 345 2 2 2766 2766 4.99 2005-06-19 17:45:15.000 2020-12-23 07:21:22
9319 345 345 2 2 4422 4422 2.99 2005-07-07 22:09:45.000 2020-12-23 07:21:22
9320 345 345 1 1 4425 4425 2.99 2005-07-07 22:22:44.000 2020-12-23 07:21:22
9321 345 345 2 2 4450 4450 4.99 2005-07-07 23:20:05.000 2020-12-23 07:21:22
9322 345 345 2 2 5508 5508 3.99 2005-07-10 00:50:01.000 2020-12-23 07:21:22
9323 345 345 1 1 6307 6307 7.99 2005-07-11 18:04:29.000 2020-12-23 07:21:22
9324 345 345 1 1 7092 7092 6.99 2005-07-27 04:46:00.000 2020-12-23 07:21:22
9325 345 345 2 2 8129 8129 2.99 2005-07-28 19:47:02.000 2020-12-23 07:21:22
9326 345 345 2 2 8694 8694 8.99 2005-07-29 16:44:48.000 2020-12-23 07:21:22
9327 345 345 1 1 9163 9163 4.99 2005-07-30 11:23:22.000 2020-12-23 07:21:22
9328 345 345 2 2 9207 9207 2.99 2005-07-30 12:49:57.000 2020-12-23 07:21:22
9329 345 345 2 2 10215 10215 8.99 2005-08-01 01:04:28.000 2020-12-23 07:21:22
9330 345 345 2 2 10982 10982 4.99 2005-08-02 04:19:11.000 2020-12-23 07:21:22
9331 345 345 1 1 11865 11865 2.99 2005-08-17 14:03:46.000 2020-12-23 07:21:22
9332 345 345 1 1 12485 12485 4.99 2005-08-18 12:41:41.000 2020-12-23 07:21:22
9333 345 345 2 2 12805 12805 4.99 2005-08-19 00:36:34.000 2020-12-23 07:21:23
9334 345 345 1 1 14702 14702 10.99 2005-08-21 21:00:03.000 2020-12-23 07:21:23
9335 345 345 1 1 15551 15551 4.99 2005-08-23 04:28:25.000 2020-12-23 07:21: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 10.496ms