home / sakila

payment

31 rows where customer_id = 494

✎ 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
13299 494 494 1 1 608 608 4.99 2005-05-28 15:03:44.000 2020-12-23 07:22:17
13300 494 494 1 1 1683 1683 2.99 2005-06-16 11:54:55.000 2020-12-23 07:22:17
13301 494 494 1 1 3511 3511 0.99 2005-07-06 00:42:01.000 2020-12-23 07:22:17
13302 494 494 2 2 3803 3803 2.99 2005-07-06 15:06:55.000 2020-12-23 07:22:17
13303 494 494 2 2 3913 3913 0.99 2005-07-06 20:11:00.000 2020-12-23 07:22:17
13304 494 494 1 1 4086 4086 3.99 2005-07-07 05:26:06.000 2020-12-23 07:22:17
13305 494 494 2 2 4397 4397 5.99 2005-07-07 21:14:54.000 2020-12-23 07:22:17
13306 494 494 2 2 4551 4551 7.99 2005-07-08 04:36:21.000 2020-12-23 07:22:17
13307 494 494 2 2 5083 5083 4.99 2005-07-09 05:30:32.000 2020-12-23 07:22:17
13308 494 494 1 1 5180 5180 2.99 2005-07-09 10:06:53.000 2020-12-23 07:22:17
13309 494 494 2 2 7258 7258 3.99 2005-07-27 11:05:54.000 2020-12-23 07:22:17
13310 494 494 2 2 7546 7546 8.99 2005-07-27 21:50:09.000 2020-12-23 07:22:17
13311 494 494 2 2 7737 7737 1.99 2005-07-28 05:15:03.000 2020-12-23 07:22:17
13312 494 494 2 2 8333 8333 2.99 2005-07-29 04:16:40.000 2020-12-23 07:22:17
13313 494 494 2 2 8895 8895 2.99 2005-07-30 00:49:17.000 2020-12-23 07:22:17
13314 494 494 1 1 8934 8934 4.99 2005-07-30 02:37:05.000 2020-12-23 07:22:17
13315 494 494 2 2 9012 9012 4.99 2005-07-30 05:18:57.000 2020-12-23 07:22:17
13316 494 494 2 2 9510 9510 7.99 2005-07-31 00:24:17.000 2020-12-23 07:22:17
13317 494 494 1 1 9799 9799 2.99 2005-07-31 10:58:32.000 2020-12-23 07:22:17
13318 494 494 2 2 9943 9943 7.99 2005-07-31 15:37:29.000 2020-12-23 07:22:17
13319 494 494 1 1 10403 10403 0.99 2005-08-01 07:30:45.000 2020-12-23 07:22:17
13320 494 494 1 1 10623 10623 2.99 2005-08-01 15:22:38.000 2020-12-23 07:22:17
13321 494 494 2 2 11152 11152 3.99 2005-08-02 09:53:36.000 2020-12-23 07:22:17
13322 494 494 1 1 11987 11987 5.99 2005-08-17 18:21:59.000 2020-12-23 07:22:17
13323 494 494 2 2 13094 13094 0.99 2005-08-19 10:47:58.000 2020-12-23 07:22:17
13324 494 494 2 2 13301 13301 3.99 2005-08-19 18:53:15.000 2020-12-23 07:22:17
13325 494 494 2 2 14634 14634 5.99 2005-08-21 18:51:28.000 2020-12-23 07:22:17
13326 494 494 1 1 14832 14832 4.99 2005-08-22 01:43:29.000 2020-12-23 07:22:18
13327 494 494 1 1 15086 15086 6.99 2005-08-22 11:21:08.000 2020-12-23 07:22:18
13328 494 494 2 2 15156 15156 9.99 2005-08-22 14:29:11.000 2020-12-23 07:22:18
13329 494 494 2 2 15291 15291 4.99 2005-08-22 19:28:04.000 2020-12-23 07:22:18

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