home / sakila

payment

22 rows where customer_id = 68

✎ 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
1845 68 68 2 2 1828 1828 5.99 2005-06-16 22:04:34.000 2020-12-23 07:19:35
1846 68 68 2 2 1957 1957 8.99 2005-06-17 08:50:58.000 2020-12-23 07:19:35
1847 68 68 2 2 2633 2633 2.99 2005-06-19 08:53:10.000 2020-12-23 07:19:35
1848 68 68 2 2 2662 2662 4.99 2005-06-19 10:53:42.000 2020-12-23 07:19:35
1849 68 68 1 1 2686 2686 2.99 2005-06-19 12:44:20.000 2020-12-23 07:19:35
1850 68 68 1 1 3598 3598 0.99 2005-07-06 05:11:04.000 2020-12-23 07:19:35
1851 68 68 2 2 3801 3801 4.99 2005-07-06 15:05:50.000 2020-12-23 07:19:35
1852 68 68 1 1 3864 3864 0.99 2005-07-06 17:41:42.000 2020-12-23 07:19:35
1853 68 68 2 2 4555 4555 6.99 2005-07-08 04:48:36.000 2020-12-23 07:19:35
1854 68 68 1 1 4925 4925 3.99 2005-07-08 21:56:00.000 2020-12-23 07:19:35
1855 68 68 1 1 6512 6512 4.99 2005-07-12 03:42:49.000 2020-12-23 07:19:35
1856 68 68 2 2 9339 9339 3.99 2005-07-30 18:03:28.000 2020-12-23 07:19:35
1857 68 68 1 1 9538 9538 3.99 2005-07-31 01:25:22.000 2020-12-23 07:19:35
1858 68 68 2 2 9642 9642 4.99 2005-07-31 05:33:57.000 2020-12-23 07:19:35
1859 68 68 1 1 10115 10115 7.99 2005-07-31 21:13:47.000 2020-12-23 07:19:35
1860 68 68 1 1 11277 11277 2.99 2005-08-02 14:28:50.000 2020-12-23 07:19:35
1861 68 68 2 2 12742 12742 2.99 2005-08-18 22:22:03.000 2020-12-23 07:19:35
1862 68 68 2 2 13475 13475 4.99 2005-08-20 01:05:05.000 2020-12-23 07:19:35
1863 68 68 2 2 14242 14242 0.99 2005-08-21 05:25:59.000 2020-12-23 07:19:35
1864 68 68 2 2 14455 14455 5.99 2005-08-21 12:36:11.000 2020-12-23 07:19:36
1865 68 68 1 1 14947 14947 1.99 2005-08-22 06:07:52.000 2020-12-23 07:19:36
1866 68 68 1 1 15524 15524 4.99 2005-08-23 03:36:26.000 2020-12-23 07:19:36

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