home / sakila

payment

32 rows where customer_id = 254

✎ 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
6839 254 254 1 1 183 183 2.99 2005-05-26 05:01:18.000 2020-12-23 07:20:46
6840 254 254 1 1 1108 1108 5.99 2005-05-31 15:05:12.000 2020-12-23 07:20:46
6841 254 254 1 1 1285 1285 2.99 2005-06-15 08:33:06.000 2020-12-23 07:20:46
6842 254 254 2 2 1390 1390 0.99 2005-06-15 16:06:29.000 2020-12-23 07:20:46
6843 254 254 1 1 2082 2082 2.99 2005-06-17 17:13:32.000 2020-12-23 07:20:46
6844 254 254 1 1 2138 2138 2.99 2005-06-17 21:28:14.000 2020-12-23 07:20:46
6845 254 254 2 2 2687 2687 3.99 2005-06-19 12:46:52.000 2020-12-23 07:20:46
6846 254 254 1 1 3882 3882 4.99 2005-07-06 18:38:21.000 2020-12-23 07:20:46
6847 254 254 2 2 5042 5042 2.99 2005-07-09 03:20:30.000 2020-12-23 07:20:46
6848 254 254 1 1 5072 5072 3.99 2005-07-09 05:01:58.000 2020-12-23 07:20:46
6849 254 254 2 2 5080 5080 2.99 2005-07-09 05:23:55.000 2020-12-23 07:20:46
6850 254 254 1 1 5537 5537 0.99 2005-07-10 02:35:41.000 2020-12-23 07:20:46
6851 254 254 1 1 5550 5550 5.99 2005-07-10 02:58:35.000 2020-12-23 07:20:46
6852 254 254 1 1 5826 5826 7.99 2005-07-10 16:21:02.000 2020-12-23 07:20:46
6853 254 254 2 2 5930 5930 4.99 2005-07-10 21:59:32.000 2020-12-23 07:20:46
6854 254 254 2 2 7011 7011 0.99 2005-07-27 01:58:34.000 2020-12-23 07:20:46
6855 254 254 1 1 7413 7413 4.99 2005-07-27 16:45:40.000 2020-12-23 07:20:46
6856 254 254 2 2 8216 8216 7.99 2005-07-28 23:43:59.000 2020-12-23 07:20:46
6857 254 254 2 2 8581 8581 4.99 2005-07-29 12:02:06.000 2020-12-23 07:20:46
6858 254 254 2 2 9494 9494 1.99 2005-07-30 23:52:46.000 2020-12-23 07:20:46
6859 254 254 1 1 10522 10522 4.99 2005-08-01 11:48:51.000 2020-12-23 07:20:46
6860 254 254 1 1 11190 11190 0.99 2005-08-02 11:21:34.000 2020-12-23 07:20:46
6861 254 254 1 1 11665 11665 6.99 2005-08-17 05:36:57.000 2020-12-23 07:20:46
6862 254 254 2 2 12148 12148 0.99 2005-08-18 00:13:15.000 2020-12-23 07:20:46
6863 254 254 1 1 12206 12206 0.99 2005-08-18 02:22:20.000 2020-12-23 07:20:46
6864 254 254 1 1 12247 12247 2.99 2005-08-18 03:51:51.000 2020-12-23 07:20:46
6865 254 254 1 1 12874 12874 0.99 2005-08-19 03:07:57.000 2020-12-23 07:20:46
6866 254 254 2 2 13001 13001 4.99 2005-08-19 07:36:44.000 2020-12-23 07:20:46
6867 254 254 1 1 13045 13045 4.99 2005-08-19 09:17:35.000 2020-12-23 07:20:46
6868 254 254 2 2 13130 13130 2.99 2005-08-19 12:06:42.000 2020-12-23 07:20:46
6869 254 254 2 2 14497 14497 4.99 2005-08-21 14:09:47.000 2020-12-23 07:20:46
6870 254 254 1 1 15774 15774 0.99 2005-08-23 13:25:08.000 2020-12-23 07:20:46

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