home / sakila

payment

23 rows where customer_id = 184

✎ 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
4997 184 184 1 1 196 196 2.99 2005-05-26 06:55:58.000 2020-12-23 07:20:20
4998 184 184 2 2 534 534 4.99 2005-05-28 06:15:25.000 2020-12-23 07:20:20
4999 184 184 1 1 567 567 1.99 2005-05-28 09:56:20.000 2020-12-23 07:20:20
5000 184 184 2 2 1976 1976 2.99 2005-06-17 09:38:08.000 2020-12-23 07:20:20
5001 184 184 1 1 2312 2312 0.99 2005-06-18 08:55:46.000 2020-12-23 07:20:20
5002 184 184 1 1 4314 4314 0.99 2005-07-07 17:38:31.000 2020-12-23 07:20:20
5003 184 184 2 2 4882 4882 6.99 2005-07-08 19:42:03.000 2020-12-23 07:20:20
5004 184 184 1 1 5891 5891 0.99 2005-07-10 20:01:17.000 2020-12-23 07:20:20
5005 184 184 2 2 6493 6493 2.99 2005-07-12 02:40:41.000 2020-12-23 07:20:20
5006 184 184 2 2 6700 6700 6.99 2005-07-12 12:47:22.000 2020-12-23 07:20:20
5007 184 184 2 2 7051 7051 4.99 2005-07-27 03:34:37.000 2020-12-23 07:20:20
5008 184 184 2 2 7686 7686 6.99 2005-07-28 03:19:23.000 2020-12-23 07:20:20
5009 184 184 1 1 8892 8892 4.99 2005-07-30 00:47:03.000 2020-12-23 07:20:20
5010 184 184 1 1 9162 9162 0.99 2005-07-30 11:21:56.000 2020-12-23 07:20:20
5011 184 184 2 2 12166 12166 9.99 2005-08-18 00:57:06.000 2020-12-23 07:20:20
5012 184 184 2 2 12454 12454 2.99 2005-08-18 11:19:02.000 2020-12-23 07:20:20
5013 184 184 1 1 12532 12532 2.99 2005-08-18 13:57:58.000 2020-12-23 07:20:21
5014 184 184 1 1 13134 13134 0.99 2005-08-19 12:14:14.000 2020-12-23 07:20:21
5015 184 184 1 1 13262 13262 5.99 2005-08-19 17:20:15.000 2020-12-23 07:20:21
5016 184 184 1 1 13303 13303 4.99 2005-08-19 18:55:21.000 2020-12-23 07:20:21
5017 184 184 2 2 14472 14472 4.99 2005-08-21 13:13:57.000 2020-12-23 07:20:21
5018 184 184 1 1 14801 14801 5.99 2005-08-22 00:46:54.000 2020-12-23 07:20:21
5019 184 184 2 2 15611 15611 0.99 2005-08-23 06:56:18.000 2020-12-23 07:20:21

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