home / sakila

payment

33 rows where customer_id = 51

✎ 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
1392 51 51 2 2 119 119 4.99 2005-05-25 19:37:02.000 2020-12-23 07:19:29
1393 51 51 1 1 661 661 4.99 2005-05-28 21:01:25.000 2020-12-23 07:19:29
1394 51 51 2 2 1028 1028 4.99 2005-05-31 03:48:05.000 2020-12-23 07:19:29
1395 51 51 2 2 1373 1373 1.99 2005-06-15 14:48:04.000 2020-12-23 07:19:29
1396 51 51 1 1 1477 1477 0.99 2005-06-15 21:11:18.000 2020-12-23 07:19:29
1397 51 51 1 1 3525 3525 9.99 2005-07-06 01:02:39.000 2020-12-23 07:19:29
1398 51 51 1 1 5230 5230 2.99 2005-07-09 12:30:23.000 2020-12-23 07:19:29
1399 51 51 2 2 5304 5304 5.99 2005-07-09 15:48:06.000 2020-12-23 07:19:29
1400 51 51 1 1 5473 5473 7.99 2005-07-09 23:19:11.000 2020-12-23 07:19:29
1401 51 51 1 1 5606 5606 4.99 2005-07-10 05:07:55.000 2020-12-23 07:19:29
1402 51 51 1 1 7207 7207 5.99 2005-07-27 09:13:26.000 2020-12-23 07:19:29
1403 51 51 1 1 7398 7398 6.99 2005-07-27 16:07:22.000 2020-12-23 07:19:29
1404 51 51 1 1 7636 7636 5.99 2005-07-28 01:08:36.000 2020-12-23 07:19:29
1405 51 51 1 1 8495 8495 4.99 2005-07-29 09:05:06.000 2020-12-23 07:19:29
1406 51 51 1 1 8693 8693 0.99 2005-07-29 16:44:13.000 2020-12-23 07:19:29
1407 51 51 1 1 8880 8880 0.99 2005-07-30 00:16:55.000 2020-12-23 07:19:29
1408 51 51 2 2 9649 9649 0.99 2005-07-31 05:46:54.000 2020-12-23 07:19:29
1409 51 51 2 2 10244 10244 4.99 2005-08-01 02:20:01.000 2020-12-23 07:19:29
1410 51 51 1 1 10780 10780 2.99 2005-08-01 21:14:24.000 2020-12-23 07:19:29
1411 51 51 1 1 10894 10894 0.99 2005-08-02 01:12:35.000 2020-12-23 07:19:29
1412 51 51 1 1 11302 11302 2.99 2005-08-02 15:38:03.000 2020-12-23 07:19:29
1413 51 51 2 2 11685 11685 4.99 2005-08-17 06:39:16.000 2020-12-23 07:19:29
1414 51 51 2 2 11751 11751 6.99 2005-08-17 09:07:56.000 2020-12-23 07:19:29
1415 51 51 1 1 12184 12184 0.99 2005-08-18 01:36:00.000 2020-12-23 07:19:29
1416 51 51 1 1 12725 12725 4.99 2005-08-18 21:43:09.000 2020-12-23 07:19:29
1417 51 51 2 2 13098 13098 2.99 2005-08-19 10:51:59.000 2020-12-23 07:19:29
1418 51 51 1 1 13302 13302 2.99 2005-08-19 18:54:26.000 2020-12-23 07:19:29
1419 51 51 1 1 13868 13868 0.99 2005-08-20 15:06:26.000 2020-12-23 07:19:29
1420 51 51 2 2 13882 13882 2.99 2005-08-20 15:23:26.000 2020-12-23 07:19:29
1421 51 51 2 2 14221 14221 6.99 2005-08-21 04:49:41.000 2020-12-23 07:19:29
1422 51 51 2 2 14512 14512 4.99 2005-08-21 14:47:09.000 2020-12-23 07:19:29
1423 51 51 1 1 14617 14617 4.99 2005-08-21 18:07:40.000 2020-12-23 07:19:29
1424 51 51 1 1 14903 14903 4.99 2005-08-22 04:31:50.000 2020-12-23 07:19:29

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