home / sakila

payment

32 rows where customer_id = 346

✎ 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
9336 346 346 1 1 65 65 4.99 2005-05-25 09:32:03.000 2020-12-23 07:21:23
9337 346 346 1 1 810 810 4.99 2005-05-29 19:12:04.000 2020-12-23 07:21:23
9338 346 346 1 1 1994 1994 5.99 2005-06-17 11:07:06.000 2020-12-23 07:21:23
9339 346 346 2 2 3372 3372 2.99 2005-06-21 13:34:19.000 2020-12-23 07:21:23
9340 346 346 1 1 3421 3421 2.99 2005-06-21 17:22:58.000 2020-12-23 07:21:23
9341 346 346 2 2 4420 4420 4.99 2005-07-07 22:07:31.000 2020-12-23 07:21:23
9342 346 346 1 1 4958 4958 8.99 2005-07-08 23:19:52.000 2020-12-23 07:21:23
9343 346 346 1 1 5428 5428 4.99 2005-07-09 21:12:50.000 2020-12-23 07:21:23
9344 346 346 2 2 5557 5557 4.99 2005-07-10 03:10:21.000 2020-12-23 07:21:23
9345 346 346 2 2 6136 6136 4.99 2005-07-11 08:34:09.000 2020-12-23 07:21:23
9346 346 346 2 2 6323 6323 2.99 2005-07-11 19:02:19.000 2020-12-23 07:21:23
9347 346 346 2 2 6881 6881 8.99 2005-07-12 20:46:35.000 2020-12-23 07:21:23
9348 346 346 2 2 7943 7943 6.99 2005-07-28 12:50:55.000 2020-12-23 07:21:23
9349 346 346 2 2 8272 8272 5.99 2005-07-29 01:29:51.000 2020-12-23 07:21:23
9350 346 346 1 1 8505 8505 6.99 2005-07-29 09:22:52.000 2020-12-23 07:21:23
9351 346 346 2 2 8543 8543 0.99 2005-07-29 11:01:57.000 2020-12-23 07:21:23
9352 346 346 2 2 8732 8732 8.99 2005-07-29 18:25:03.000 2020-12-23 07:21:23
9353 346 346 2 2 9566 9566 4.99 2005-07-31 02:32:10.000 2020-12-23 07:21:23
9354 346 346 1 1 9848 9848 4.99 2005-07-31 12:44:33.000 2020-12-23 07:21:23
9355 346 346 1 1 9927 9927 2.99 2005-07-31 15:12:13.000 2020-12-23 07:21:23
9356 346 346 1 1 10304 10304 5.99 2005-08-01 04:14:12.000 2020-12-23 07:21:23
9357 346 346 2 2 10389 10389 3.99 2005-08-01 06:46:43.000 2020-12-23 07:21:23
9358 346 346 2 2 10521 10521 0.99 2005-08-01 11:46:17.000 2020-12-23 07:21:23
9359 346 346 2 2 11062 11062 4.99 2005-08-02 06:52:54.000 2020-12-23 07:21:23
9360 346 346 1 1 11375 11375 4.99 2005-08-02 18:14:56.000 2020-12-23 07:21:23
9361 346 346 2 2 11470 11470 2.99 2005-08-02 21:48:28.000 2020-12-23 07:21:23
9362 346 346 1 1 14890 14890 5.99 2005-08-22 04:10:49.000 2020-12-23 07:21:23
9363 346 346 2 2 15459 15459 2.99 2005-08-23 01:09:48.000 2020-12-23 07:21:23
9364 346 346 1 1 15535 15535 0.99 2005-08-23 03:58:02.000 2020-12-23 07:21:23
9365 346 346 1 1 15661 15661 8.99 2005-08-23 08:52:03.000 2020-12-23 07:21:23
9366 346 346 2 2 15825 15825 5.99 2005-08-23 15:10:42.000 2020-12-23 07:21:23
9367 346 346 1 1 15827 15827 0.99 2005-08-23 15:15:19.000 2020-12-23 07:21:23

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