home / sakila

payment

32 rows where customer_id = 158

✎ 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
4292 158 158 2 2 245 245 4.99 2005-05-26 13:46:59.000 2020-12-23 07:20:10
4293 158 158 1 1 293 293 5.99 2005-05-26 20:27:02.000 2020-12-23 07:20:10
4294 158 158 1 1 1380 1380 0.99 2005-06-15 15:13:10.000 2020-12-23 07:20:10
4295 158 158 2 2 1790 1790 4.99 2005-06-16 19:58:40.000 2020-12-23 07:20:10
4296 158 158 2 2 2035 2035 6.99 2005-06-17 13:45:09.000 2020-12-23 07:20:10
4297 158 158 2 2 3203 3203 8.99 2005-06-21 00:34:56.000 2020-12-23 07:20:10
4298 158 158 1 1 4117 4117 8.99 2005-07-07 06:58:14.000 2020-12-23 07:20:10
4299 158 158 1 1 5672 5672 2.99 2005-07-10 08:19:38.000 2020-12-23 07:20:10
4300 158 158 1 1 5988 5988 4.99 2005-07-11 00:55:38.000 2020-12-23 07:20:10
4301 158 158 1 1 6416 6416 2.99 2005-07-11 23:29:14.000 2020-12-23 07:20:10
4302 158 158 2 2 6901 6901 5.99 2005-07-12 21:46:33.000 2020-12-23 07:20:10
4303 158 158 2 2 7159 7159 2.99 2005-07-27 07:24:00.000 2020-12-23 07:20:10
4304 158 158 1 1 7732 7732 0.99 2005-07-28 05:03:32.000 2020-12-23 07:20:10
4305 158 158 2 2 7952 7952 2.99 2005-07-28 13:23:49.000 2020-12-23 07:20:10
4306 158 158 1 1 8750 8750 2.99 2005-07-29 19:14:21.000 2020-12-23 07:20:10
4307 158 158 1 1 8957 8957 1.99 2005-07-30 03:34:10.000 2020-12-23 07:20:10
4308 158 158 1 1 9393 9393 2.99 2005-07-30 20:04:48.000 2020-12-23 07:20:10
4309 158 158 1 1 9713 9713 1.99 2005-07-31 08:13:28.000 2020-12-23 07:20:10
4310 158 158 1 1 9801 9801 2.99 2005-07-31 11:03:13.000 2020-12-23 07:20:10
4311 158 158 2 2 11077 11077 4.99 2005-08-02 07:26:43.000 2020-12-23 07:20:10
4312 158 158 1 1 11103 11103 6.99 2005-08-02 08:09:54.000 2020-12-23 07:20:10
4313 158 158 1 1 11272 11272 0.99 2005-08-02 14:20:27.000 2020-12-23 07:20:10
4314 158 158 1 1 11420 11420 2.99 2005-08-02 19:47:56.000 2020-12-23 07:20:10
4315 158 158 2 2 12070 12070 1.99 2005-08-17 21:46:47.000 2020-12-23 07:20:10
4316 158 158 2 2 12421 12421 5.99 2005-08-18 10:04:06.000 2020-12-23 07:20:10
4317 158 158 2 2 13212 13212 1.99 2005-08-19 15:24:07.000 2020-12-23 07:20:10
4318 158 158 2 2 13854 13854 2.99 2005-08-20 14:48:42.000 2020-12-23 07:20:10
4319 158 158 1 1 13926 13926 2.99 2005-08-20 17:09:27.000 2020-12-23 07:20:10
4320 158 158 2 2 14028 14028 0.99 2005-08-20 21:23:03.000 2020-12-23 07:20:10
4321 158 158 1 1 15763 15763 2.99 2005-08-23 13:02:59.000 2020-12-23 07:20:10
4322 158 158 1 1 15796 15796 5.99 2005-08-23 14:12:22.000 2020-12-23 07:20:10
4323 158 158 1 1 15802 15802 5.99 2005-08-23 14:26:51.000 2020-12-23 07:20:10

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