home / sakila

payment

20 rows where customer_id = 449

✎ View and edit SQL

This data as json, xlsx, CSV (advanced)

Suggested facets: staff_id, amount, payment_date (date), last_update (date)

payment_id ▼ customer_id staff_id rental_id amount payment_date last_update
12114 449 449 2 2 263 263 4.99 2005-05-26 15:47:40.000 2020-12-23 07:22:02
12115 449 449 2 2 325 325 5.99 2005-05-27 01:09:55.000 2020-12-23 07:22:02
12116 449 449 1 1 849 849 7.99 2005-05-30 01:23:07.000 2020-12-23 07:22:02
12117 449 449 2 2 1295 1295 4.99 2005-06-15 09:17:20.000 2020-12-23 07:22:02
12118 449 449 1 1 2348 2348 0.99 2005-06-18 12:15:43.000 2020-12-23 07:22:02
12119 449 449 2 2 2970 2970 2.99 2005-06-20 07:51:51.000 2020-12-23 07:22:02
12120 449 449 1 1 3503 3503 0.99 2005-07-06 00:17:24.000 2020-12-23 07:22:02
12121 449 449 1 1 3977 3977 8.99 2005-07-06 23:00:49.000 2020-12-23 07:22:02
12122 449 449 2 2 4433 4433 3.99 2005-07-07 22:45:41.000 2020-12-23 07:22:02
12123 449 449 1 1 5824 5824 2.99 2005-07-10 16:19:53.000 2020-12-23 07:22:02
12124 449 449 2 2 7755 7755 6.99 2005-07-28 06:22:18.000 2020-12-23 07:22:02
12125 449 449 2 2 7803 7803 3.99 2005-07-28 07:52:13.000 2020-12-23 07:22:02
12126 449 449 2 2 8002 8002 2.99 2005-07-28 15:11:00.000 2020-12-23 07:22:02
12127 449 449 2 2 10083 10083 5.99 2005-07-31 20:10:19.000 2020-12-23 07:22:02
12128 449 449 2 2 10409 10409 2.99 2005-08-01 07:49:15.000 2020-12-23 07:22:02
12129 449 449 1 1 10416 10416 4.99 2005-08-01 08:08:39.000 2020-12-23 07:22:02
12130 449 449 1 1 10516 10516 6.99 2005-08-01 11:41:55.000 2020-12-23 07:22:02
12131 449 449 2 2 10688 10688 6.99 2005-08-01 17:53:43.000 2020-12-23 07:22:02
12132 449 449 1 1 12212 12212 4.99 2005-08-18 02:33:29.000 2020-12-23 07:22:02
12133 449 449 2 2 14962 14962 7.99 2005-08-22 06:37:43.000 2020-12-23 07:22:02

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.892ms