home / sakila

payment

15 rows where customer_id = 248

✎ 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
6699 248 248 2 2 330 330 7.99 2005-05-27 02:15:30.000 2020-12-23 07:20:44
6700 248 248 1 1 618 618 4.99 2005-05-28 15:50:07.000 2020-12-23 07:20:44
6701 248 248 1 1 2066 2066 3.99 2005-06-17 16:07:08.000 2020-12-23 07:20:44
6702 248 248 2 2 2371 2371 0.99 2005-06-18 14:35:29.000 2020-12-23 07:20:44
6703 248 248 1 1 3910 3910 0.99 2005-07-06 20:05:18.000 2020-12-23 07:20:44
6704 248 248 2 2 4541 4541 4.99 2005-07-08 04:04:19.000 2020-12-23 07:20:44
6705 248 248 1 1 4841 4841 0.99 2005-07-08 18:18:23.000 2020-12-23 07:20:44
6706 248 248 1 1 5370 5370 2.99 2005-07-09 18:43:19.000 2020-12-23 07:20:44
6707 248 248 2 2 6617 6617 2.99 2005-07-12 08:39:56.000 2020-12-23 07:20:44
6708 248 248 2 2 7778 7778 5.99 2005-07-28 07:10:11.000 2020-12-23 07:20:44
6709 248 248 2 2 10418 10418 4.99 2005-08-01 08:11:07.000 2020-12-23 07:20:44
6710 248 248 1 1 12241 12241 0.99 2005-08-18 03:33:17.000 2020-12-23 07:20:44
6711 248 248 1 1 13918 13918 0.99 2005-08-20 16:47:32.000 2020-12-23 07:20:44
6712 248 248 2 2 14704 14704 0.99 2005-08-21 21:02:22.000 2020-12-23 07:20:44
6713 248 248 2 2 14885 14885 5.99 2005-08-22 03:58:29.000 2020-12-23 07:20:44

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