N
N
Nixin7772018-03-07 21:04:05
SQL
Nixin777, 2018-03-07 21:04:05

How to build a query to fill a table based on another one?

There is a session table, each entry has the number of tickets sold. How to fill in the table with tickets as many times as there are tickets in the table of sessions? How to add so many ticket records knowing the number of sessions and the tickets sold per session?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2018-03-07
@tsklab

In the table (or rather the view) "Session" you need to indicate the number of tickets sold from the corresponding table. And not vice versa.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question