home / sakila

payment

32 rows where customer_id = 329

✎ 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
8875 329 329 1 1 1183 1183 2.99 2005-06-15 00:49:19.000 2020-12-23 07:21:16
8876 329 329 1 1 2010 2010 5.99 2005-06-17 11:54:15.000 2020-12-23 07:21:16
8877 329 329 2 2 2024 2024 0.99 2005-06-17 13:00:51.000 2020-12-23 07:21:16
8878 329 329 1 1 2151 2151 0.99 2005-06-17 22:52:37.000 2020-12-23 07:21:16
8879 329 329 1 1 2303 2303 2.99 2005-06-18 08:27:59.000 2020-12-23 07:21:16
8880 329 329 2 2 2702 2702 2.99 2005-06-19 13:35:56.000 2020-12-23 07:21:16
8881 329 329 1 1 3052 3052 5.99 2005-06-20 13:09:19.000 2020-12-23 07:21:16
8882 329 329 2 2 3053 3053 0.99 2005-06-20 13:10:30.000 2020-12-23 07:21:16
8883 329 329 2 2 3268 3268 4.99 2005-06-21 04:55:49.000 2020-12-23 07:21:16
8884 329 329 2 2 3976 3976 2.99 2005-07-06 23:00:20.000 2020-12-23 07:21:16
8885 329 329 2 2 4076 4076 4.99 2005-07-07 04:52:15.000 2020-12-23 07:21:16
8886 329 329 1 1 4415 4415 4.99 2005-07-07 22:01:43.000 2020-12-23 07:21:16
8887 329 329 1 1 4465 4465 1.99 2005-07-08 00:07:45.000 2020-12-23 07:21:16
8888 329 329 2 2 4674 4674 2.99 2005-07-08 10:19:28.000 2020-12-23 07:21:16
8889 329 329 1 1 7980 7980 4.99 2005-07-28 14:16:49.000 2020-12-23 07:21:16
8890 329 329 2 2 8172 8172 7.99 2005-07-28 21:34:36.000 2020-12-23 07:21:16
8891 329 329 1 1 8460 8460 6.99 2005-07-29 08:08:03.000 2020-12-23 07:21:16
8892 329 329 2 2 8941 8941 0.99 2005-07-30 02:59:21.000 2020-12-23 07:21:16
8893 329 329 2 2 9024 9024 4.99 2005-07-30 05:44:42.000 2020-12-23 07:21:16
8894 329 329 2 2 9219 9219 0.99 2005-07-30 13:15:21.000 2020-12-23 07:21:16
8895 329 329 1 1 9381 9381 0.99 2005-07-30 19:23:04.000 2020-12-23 07:21:16
8896 329 329 1 1 9827 9827 6.99 2005-07-31 11:56:55.000 2020-12-23 07:21:16
8897 329 329 1 1 10473 10473 7.99 2005-08-01 09:56:24.000 2020-12-23 07:21:16
8898 329 329 2 2 10490 10490 0.99 2005-08-01 10:37:11.000 2020-12-23 07:21:16
8899 329 329 1 1 11130 11130 2.99 2005-08-02 09:08:59.000 2020-12-23 07:21:16
8900 329 329 2 2 11169 11169 3.99 2005-08-02 10:19:42.000 2020-12-23 07:21:16
8901 329 329 2 2 11697 11697 0.99 2005-08-17 07:09:19.000 2020-12-23 07:21:16
8902 329 329 1 1 12659 12659 6.99 2005-08-18 19:05:49.000 2020-12-23 07:21:16
8903 329 329 1 1 13627 13627 8.99 2005-08-20 06:59:00.000 2020-12-23 07:21:16
8904 329 329 1 1 14900 14900 4.99 2005-08-22 04:27:48.000 2020-12-23 07:21:16
8905 329 329 2 2 15011 15011 4.99 2005-08-22 08:31:07.000 2020-12-23 07:21:16
8906 329 329 1 1 15308 15308 2.99 2005-08-22 19:54:31.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 10.109ms