home / sakila

payment

22 rows where customer_id = 514

✎ 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
13838 514 514 2 2 536 536 4.99 2005-05-28 06:17:33.000 2020-12-23 07:22:24
13839 514 514 2 2 1692 1692 4.99 2005-06-16 12:30:19.000 2020-12-23 07:22:24
13840 514 514 1 1 2002 2002 3.99 2005-06-17 11:39:58.000 2020-12-23 07:22:24
13841 514 514 2 2 2362 2362 0.99 2005-06-18 13:31:15.000 2020-12-23 07:22:24
13842 514 514 1 1 2789 2789 0.99 2005-06-19 18:48:21.000 2020-12-23 07:22:24
13843 514 514 2 2 3084 3084 2.99 2005-06-20 15:35:24.000 2020-12-23 07:22:24
13844 514 514 1 1 3385 3385 0.99 2005-06-21 14:16:48.000 2020-12-23 07:22:25
13845 514 514 2 2 3668 3668 5.99 2005-07-06 08:36:48.000 2020-12-23 07:22:25
13846 514 514 2 2 3860 3860 2.99 2005-07-06 17:20:24.000 2020-12-23 07:22:25
13847 514 514 1 1 7791 7791 4.99 2005-07-28 07:22:51.000 2020-12-23 07:22:25
13848 514 514 1 1 9038 9038 3.99 2005-07-30 06:23:35.000 2020-12-23 07:22:25
13849 514 514 1 1 11675 11675 1.99 2005-08-17 05:57:54.000 2020-12-23 07:22:25
13850 514 514 2 2 12067 12067 4.99 2005-08-17 21:36:47.000 2020-12-23 07:22:25
13851 514 514 1 1 12293 12293 4.99 2005-08-18 05:13:36.000 2020-12-23 07:22:25
13852 514 514 1 1 12302 12302 4.99 2005-08-18 05:41:39.000 2020-12-23 07:22:25
13853 514 514 2 2 12578 12578 0.99 2005-08-18 15:47:11.000 2020-12-23 07:22:25
13854 514 514 1 1 12752 12752 2.99 2005-08-18 22:33:36.000 2020-12-23 07:22:25
13855 514 514 2 2 13344 13344 3.99 2005-08-19 20:22:44.000 2020-12-23 07:22:25
13856 514 514 1 1 14052 14052 0.99 2005-08-20 22:11:46.000 2020-12-23 07:22:25
13857 514 514 1 1 14386 14386 1.99 2005-08-21 10:06:34.000 2020-12-23 07:22:25
13858 514 514 1 1 15451 15451 2.99 2005-08-23 00:56:27.000 2020-12-23 07:22:25
13859 514 514 1 1 15776 15776 5.99 2005-08-23 13:26:01.000 2020-12-23 07:22:25

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