home / sakila

payment

23 rows where customer_id = 328

✎ 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
8852 328 328 2 2 862 862 2.99 2005-05-30 03:09:11.000 2020-12-23 07:21:15
8853 328 328 2 2 1670 1670 2.99 2005-06-16 10:26:33.000 2020-12-23 07:21:15
8854 328 328 2 2 1980 1980 6.99 2005-06-17 09:48:05.000 2020-12-23 07:21:15
8855 328 328 2 2 2243 2243 5.99 2005-06-18 04:33:03.000 2020-12-23 07:21:15
8856 328 328 1 1 3024 3024 4.99 2005-06-20 11:29:17.000 2020-12-23 07:21:15
8857 328 328 1 1 3239 3239 0.99 2005-06-21 02:48:40.000 2020-12-23 07:21:15
8858 328 328 1 1 5450 5450 4.99 2005-07-09 22:13:25.000 2020-12-23 07:21:15
8859 328 328 1 1 8017 8017 1.99 2005-07-28 15:35:41.000 2020-12-23 07:21:15
8860 328 328 1 1 8577 8577 6.99 2005-07-29 11:56:30.000 2020-12-23 07:21:15
8861 328 328 2 2 8780 8780 4.99 2005-07-29 20:19:45.000 2020-12-23 07:21:15
8862 328 328 2 2 9557 9557 2.99 2005-07-31 02:14:01.000 2020-12-23 07:21:15
8863 328 328 1 1 9835 9835 2.99 2005-07-31 12:07:35.000 2020-12-23 07:21:15
8864 328 328 1 1 11174 11174 2.99 2005-08-02 10:32:11.000 2020-12-23 07:21:15
8865 328 328 1 1 12175 12175 4.99 2005-08-18 01:10:17.000 2020-12-23 07:21:15
8866 328 328 2 2 12825 12825 0.99 2005-08-19 01:23:58.000 2020-12-23 07:21:16
8867 328 328 1 1 13609 13609 2.99 2005-08-20 06:11:51.000 2020-12-23 07:21:16
8868 328 328 2 2 13681 13681 7.99 2005-08-20 08:47:37.000 2020-12-23 07:21:16
8869 328 328 1 1 13907 13907 3.99 2005-08-20 16:17:27.000 2020-12-23 07:21:16
8870 328 328 2 2 14307 14307 3.99 2005-08-21 07:34:52.000 2020-12-23 07:21:16
8871 328 328 1 1 14755 14755 3.99 2005-08-21 23:18:08.000 2020-12-23 07:21:16
8872 328 328 2 2 14939 14939 2.99 2005-08-22 05:53:52.000 2020-12-23 07:21:16
8873 328 328 1 1 15179 15179 4.99 2005-08-22 15:36:22.000 2020-12-23 07:21:16
8874 328 328 1 1 15863 15863 0.99 2005-08-23 16:17:09.000 2020-12-23 07:21:16

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