home / sakila

payment

33 rows where customer_id = 7

✎ 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
174 7 7 2 2 46 46 5.99 2005-05-25 06:04:08.000 2020-12-23 07:19:12
175 7 7 2 2 117 117 0.99 2005-05-25 19:30:46.000 2020-12-23 07:19:12
176 7 7 2 2 748 748 2.99 2005-05-29 09:27:00.000 2020-12-23 07:19:12
177 7 7 1 1 975 975 4.99 2005-05-30 21:07:15.000 2020-12-23 07:19:12
178 7 7 1 1 1063 1063 5.99 2005-05-31 08:44:29.000 2020-12-23 07:19:12
179 7 7 2 2 1810 1810 0.99 2005-06-16 21:06:00.000 2020-12-23 07:19:12
180 7 7 1 1 2250 2250 2.99 2005-06-18 05:03:36.000 2020-12-23 07:19:12
181 7 7 1 1 2709 2709 0.99 2005-06-19 14:00:26.000 2020-12-23 07:19:12
182 7 7 1 1 2888 2888 4.99 2005-06-20 01:50:56.000 2020-12-23 07:19:12
183 7 7 1 1 3007 3007 0.99 2005-06-20 10:11:53.000 2020-12-23 07:19:12
184 7 7 2 2 3639 3639 5.99 2005-07-06 07:09:17.000 2020-12-23 07:19:12
185 7 7 2 2 4238 4238 2.99 2005-07-07 13:22:20.000 2020-12-23 07:19:12
186 7 7 2 2 4787 4787 5.99 2005-07-08 16:16:04.000 2020-12-23 07:19:12
187 7 7 1 1 4856 4856 4.99 2005-07-08 18:47:38.000 2020-12-23 07:19:12
188 7 7 1 1 5441 5441 8.99 2005-07-09 21:52:05.000 2020-12-23 07:19:12
189 7 7 1 1 5921 5921 7.99 2005-07-10 21:35:12.000 2020-12-23 07:19:12
190 7 7 1 1 6174 6174 1.99 2005-07-11 10:36:28.000 2020-12-23 07:19:12
191 7 7 1 1 6295 6295 2.99 2005-07-11 17:30:58.000 2020-12-23 07:19:12
192 7 7 2 2 6761 6761 3.99 2005-07-12 15:17:42.000 2020-12-23 07:19:12
193 7 7 2 2 8422 8422 5.99 2005-07-29 07:02:55.000 2020-12-23 07:19:12
194 7 7 2 2 9624 9624 7.99 2005-07-31 04:30:03.000 2020-12-23 07:19:12
195 7 7 2 2 10330 10330 6.99 2005-08-01 04:57:04.000 2020-12-23 07:19:12
196 7 7 1 1 10423 10423 5.99 2005-08-01 08:19:53.000 2020-12-23 07:19:12
197 7 7 1 1 10514 10514 4.99 2005-08-01 11:39:26.000 2020-12-23 07:19:12
198 7 7 2 2 10644 10644 4.99 2005-08-01 15:52:00.000 2020-12-23 07:19:12
199 7 7 2 2 10989 10989 3.99 2005-08-02 04:40:54.000 2020-12-23 07:19:12
200 7 7 2 2 11542 11542 7.99 2005-08-17 00:51:32.000 2020-12-23 07:19:12
201 7 7 1 1 12367 12367 8.99 2005-08-18 07:57:14.000 2020-12-23 07:19:12
202 7 7 1 1 12730 12730 2.99 2005-08-18 21:55:01.000 2020-12-23 07:19:12
203 7 7 2 2 13373 13373 2.99 2005-08-19 21:23:31.000 2020-12-23 07:19:12
204 7 7 1 1 13476 13476 2.99 2005-08-20 01:06:04.000 2020-12-23 07:19:12
205 7 7 1 1 13594 13594 0.99 2005-08-20 05:53:31.000 2020-12-23 07:19:12
206 7 7 1 1 14222 14222 5.99 2005-08-21 04:49:48.000 2020-12-23 07:19:12

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