Shopping at LEGO or Amazon?
Please use our links:
LEGO.com •
Amazon
As an Amazon Associate we earn from qualifying purchases.
This might seem an odd question...
...but does anyone know if there's a list of sets numbers that have never/not yet been used for Lego sets? Now, bear in mind, I'm not talking about "imaginary" set numbers, as it were. What I mean is, if you have a case where there's a jump from, say,
#70819 to
#70900, I don't think a list of every number from 70820 to 70899 is necessary. This is more a case of "missing" numbers-like how there's a set
#1896 and a set
#1898 but not a number 1897. Now, if some intrepid soul has actually put together a list of imaginary and missing Lego sets numbers, based on what's already been released, more power to them. I was just kind of curious.
0
Shopping at LEGO.com or Amazon?
Please use our links: LEGO.com • Amazon
Recent discussions •
Categories •
Privacy Policy •
Brickset.com
Comments
If what you're after is simply a list of unused set numbers that are sandwiched by existing set numbers, then that's easy and the list will be smaller than the number of distinct sets in existence.
Or to answer the opening question, if you want a list of all set numbers that haven't been used yet, then the list will be infinite in length (or nearly 10 million in length if you only include set numbers up to 7 digits long).
71208
71224,25,26
71243
71249,50
71252
71254
71259,60,61,62,63
71265
71268-84
71288-71339 not in Dimensions, but loads of Bionicle sets here
71341
71345
71347
@Astrobricks those are certainly applicable as well-I know there have been some where a set was numbered but never released.
If anyone can suggest some TSQL to try I'll run it.
EDIT: This is essentially @brickmatt's solution, sans the excel :P
https://stackoverflow.com/questions/21425546/how-to-generate-a-range-of-numbers-between-two-numbers
and adding a "where number not in (select set_id from sets...)" clause, but you'd also need to restrict the set_id's to be numeric, and to strip off the "-1" at the end too.
It took 16 seconds to run. I could run it to find those < 88004 if it provides what the OP is after, as a one off, although I fail to see that it provides anything interesting or useful!
Please proceed to TRU and buy the last #70145 Ice Mammoth that has been on 5% 'clearance' since 2014. They need to sell the shelving.
I wonder if you can look for every possible set number and check if the corresponding value in the database is null. I suspect it may have to check through the whole database until the required set number is found for each set ? or when you find a set, you could put the id in a variable and resume search from it?
my sql is a bit rusty, is there a table named "sets" and another one named "#sets"?