home / sakila

payment

33 rows where customer_id = 451

✎ 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
12160 451 451 2 2 77 77 0.99 2005-05-25 11:31:59.000 2020-12-23 07:22:03
12161 451 451 2 2 328 328 2.99 2005-05-27 01:29:31.000 2020-12-23 07:22:03
12162 451 451 2 2 1113 1113 2.99 2005-05-31 15:58:44.000 2020-12-23 07:22:03
12163 451 451 1 1 1202 1202 0.99 2005-06-15 02:08:04.000 2020-12-23 07:22:03
12164 451 451 1 1 1851 1851 0.99 2005-06-17 00:32:26.000 2020-12-23 07:22:03
12165 451 451 1 1 1940 1940 6.99 2005-06-17 07:42:22.000 2020-12-23 07:22:03
12166 451 451 1 1 2671 2671 1.99 2005-06-19 11:33:11.000 2020-12-23 07:22:03
12167 451 451 1 1 2909 2909 3.99 2005-06-20 03:19:10.000 2020-12-23 07:22:03
12168 451 451 2 2 2917 2917 0.99 2005-06-20 04:08:35.000 2020-12-23 07:22:03
12169 451 451 1 1 3316 3316 6.99 2005-06-21 08:20:18.000 2020-12-23 07:22:03
12170 451 451 2 2 3826 3826 4.99 2005-07-06 15:51:58.000 2020-12-23 07:22:03
12171 451 451 1 1 4538 4538 2.99 2005-07-08 03:56:29.000 2020-12-23 07:22:03
12172 451 451 1 1 4794 4794 8.99 2005-07-08 16:30:11.000 2020-12-23 07:22:03
12173 451 451 2 2 4930 4930 4.99 2005-07-08 22:15:48.000 2020-12-23 07:22:03
12174 451 451 1 1 5005 5005 3.99 2005-07-09 01:21:44.000 2020-12-23 07:22:03
12175 451 451 2 2 5518 5518 8.99 2005-07-10 01:15:11.000 2020-12-23 07:22:03
12176 451 451 1 1 7018 7018 2.99 2005-07-27 02:20:22.000 2020-12-23 07:22:03
12177 451 451 2 2 10337 10337 8.99 2005-08-01 05:01:46.000 2020-12-23 07:22:03
12178 451 451 1 1 10856 10856 2.99 2005-08-02 00:07:14.000 2020-12-23 07:22:03
12179 451 451 2 2 10950 10950 2.99 2005-08-02 03:25:08.000 2020-12-23 07:22:03
12180 451 451 2 2 11167 11167 6.99 2005-08-02 10:15:51.000 2020-12-23 07:22:03
12181 451 451 2 2 11381 11381 6.99 2005-08-02 18:19:29.000 2020-12-23 07:22:03
12182 451 451 1 1 11790 11790 2.99 2005-08-17 11:00:08.000 2020-12-23 07:22:03
12183 451 451 2 2 12371 12371 2.99 2005-08-18 08:02:46.000 2020-12-23 07:22:03
12184 451 451 1 1 12422 12422 4.99 2005-08-18 10:13:12.000 2020-12-23 07:22:03
12185 451 451 2 2 13003 13003 1.99 2005-08-19 07:39:29.000 2020-12-23 07:22:03
12186 451 451 2 2 13100 13100 2.99 2005-08-19 10:55:45.000 2020-12-23 07:22:03
12187 451 451 2 2 13252 13252 2.99 2005-08-19 16:50:50.000 2020-12-23 07:22:03
12188 451 451 2 2 13380 13380 0.99 2005-08-19 21:36:58.000 2020-12-23 07:22:03
12189 451 451 1 1 13666 13666 2.99 2005-08-20 08:20:19.000 2020-12-23 07:22:03
12190 451 451 1 1 13705 13705 2.99 2005-08-20 09:32:23.000 2020-12-23 07:22:03
12191 451 451 2 2 14500 14500 0.99 2005-08-21 14:11:30.000 2020-12-23 07:22:03
12192 451 451 1 1 15651 15651 4.99 2005-08-23 08:31:49.000 2020-12-23 07:22:03

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