Coin Community Family of Web Sites Join Thousands of Coin, Bullion, & Money Collectors
Specializing in Modern Numismatics Royal Canadian Mint products, Canadian, Polish, American, and world coins and banknotes. Royal Estate Auctions - $1 Coin AuctionsVancouvers #1 Coin and Paper Money Dealer Join Thousands of Coin, Bullion, & Money Collectors 300,000 items to help build your collection! Coin, Banknote and Medal Collectors's Online Mall








Username:
Password:
Save Password
Forgot your Password?


This page may contain links that result in small commissions to keep this free site up and running.

Welcome Guest! Registering and/or logging in will remove the anchor (bottom) ads. It's Free!

Kinda Proud Of Myself...thought I Would Share! **bonus**

To participate in the forum you must log in or register.
Author Previous TopicReplies: 52 / Views: 5,461Next Topic
Page: of 4
Pillar of the Community
coppercoins's Avatar
United States
7629 Posts
 Posted 04/07/2011  10:05 pm  Show Profile   Bookmark this reply Add coppercoins to your friends list Get a Link to this Reply
Geesh...where were you guys this morning when I figured out that using a "SELECT DISTINCT" was completely useless when selecting the primary key - the item ID numbers. I had to figure out to select everything, then group by year, mint, grade, and die number. That solved the issue.

Another issue I quickly solved (while I was completely "logic lucid") was how to get the sort to correctly sort the mints by P, D, S - the way we assume all lists to be in coins. Of course when you do a natural "ORDER BY" it turns out as D, P, S - alphabetical. I simply created a little lookup table with IDs and mints in the order I wanted them, then did a LEFT JOIN by mintID and it worked like a champ. That killed about 20 lines of array multisort (grrr) code.
Pillar of the Community
coppercoins's Avatar
United States
7629 Posts
 Posted 04/07/2011  10:07 pm  Show Profile   Bookmark this reply Add coppercoins to your friends list Get a Link to this Reply
Okay, I officially take the "board robber" prize for the week. Two different threads I started this week went into burning status within an hour, and neither of them were asking or answering coin questions.
Valued Member
oldcoach's Avatar
United States
402 Posts
 Posted 04/07/2011  10:08 pm  Show Profile   Bookmark this reply Add oldcoach to your friends list Get a Link to this Reply
That was really nice of you coppercoins. Made alot of folks day.
Pillar of the Community
cladhunter13's Avatar
Canada
1161 Posts
 Posted 04/07/2011  10:23 pm  Show Profile   Bookmark this reply Add cladhunter13 to your friends list Get a Link to this Reply
Goes to show how much people appreciate your efforts here on the forums. Just like E.F.hutton...when Chuck talks...people listen.
Pillar of the Community
amida17's Avatar
United States
4897 Posts
 Posted 04/07/2011  10:30 pm  Show Profile   Bookmark this reply Add amida17 to your friends list Get a Link to this Reply
To paraphrase Liveanddie, Variety collectors are smarter than other people. So yeah when Chuck speaks we listen....LOL
Pillar of the Community
coppercoins's Avatar
United States
7629 Posts
 Posted 04/07/2011  10:39 pm  Show Profile   Bookmark this reply Add coppercoins to your friends list Get a Link to this Reply
I really don't think it's a "smarter" issue. Anyone who spends 30 years staring at pennies is BOUND to know something about them!
Pillar of the Community
Scooby Due's Avatar
United States
4000 Posts
 Posted 04/07/2011  10:43 pm  Show Profile   Bookmark this reply Add Scooby Due to your friends list Get a Link to this Reply
Yeah, I think all he meant was that the E/V collector has to know more about the minting process than the average year/mm collector.
Pillar of the Community
XavierOfGreen's Avatar
United States
2589 Posts
 Posted 04/07/2011  10:44 pm  Show Profile   Bookmark this reply Add XavierOfGreen to your friends list Get a Link to this Reply
Im sure there are some mint workers whove been staring at pennies for decades and hate them lol
Pillar of the Community
amida17's Avatar
United States
4897 Posts
 Posted 04/07/2011  11:45 pm  Show Profile   Bookmark this reply Add amida17 to your friends list Get a Link to this Reply
Ok then how about more knowledgable....or at least more estute.
Moderator
Learn More...
John1's Avatar
United States
56855 Posts
 Posted 04/08/2011  07:21 am  Show Profile   Bookmark this reply Add John1 to your friends list Get a Link to this Reply
Good job coppercoins.
John1
Pillar of the Community
scurry64's Avatar
United States
900 Posts
 Posted 04/08/2011  07:34 am  Show Profile   Bookmark this reply Add scurry64 to your friends list Get a Link to this Reply

Quote:
Of course when you do a natural "ORDER BY" it turns out as D, P, S - alphabetical. I simply created a little lookup table with IDs and mints in the order I wanted them, then did a LEFT JOIN by mintID and it worked like a champ. That killed about 20 lines of array multisort (grrr) code.


Was that English?
Pillar of the Community
KenKat's Avatar
United States
4085 Posts
 Posted 04/08/2011  08:26 am  Show Profile   Bookmark this reply Add KenKat to your friends list Get a Link to this Reply
I'm embarrased to admit I understood every word he said!

Nice work there, CD!
Edited by KenKat
04/08/2011 08:28 am
Valued Member
trent's Avatar
United States
355 Posts
 Posted 04/08/2011  11:02 am  Show Profile   Bookmark this reply Add trent to your friends list Get a Link to this Reply

Quote:
All-right...I'm feeling especially generous today...but NO MORE after this post.

amida17, trent - you guys made it in by the skin of your teeth...I'm giving seven of these away now.

Send your addresses please. cd@coppercoins.com


Wow. I thought I missed out. I was the 4th reply when I hit the reply button. But then I was going to type some stuff about SQL assuming that post position is set when creating a post, not submitting a post. By the time I submitted there 6 extra replies before me. I though I lost. Thanks for being so generous!
Oh, and the email has been sent.
Edited by trent
04/08/2011 11:04 am
Valued Member
Changeless's Avatar
273 Posts
 Posted 04/10/2011  10:11 am  Show Profile   Bookmark this reply Add Changeless to your friends list Get a Link to this Reply
Coppercoins, your lincolncent.com site is excellent. My compliments on having programming 'sense'.
Pillar of the Community
fenton's Avatar
United States
4989 Posts
 Posted 04/10/2011  10:41 am  Show Profile   Bookmark this reply Add fenton to your friends list Get a Link to this Reply
Gets more fun when you start needing LEFT OUTER JOIN and RIGHT OUTER JOIN :)

Of course the trend is toward NO-SQL databases nowadays so start learning some map-reduce <grin>
  Previous TopicReplies: 52 / Views: 5,461Next Topic
Page: of 4

To participate in the forum you must log in or register.



    




Disclaimer: While a tremendous amount of effort goes into ensuring the accuracy of the information contained in this site, Coin Community assumes no liability for errors. Copyright 2005 - 2026 Coin Community Family- all rights reserved worldwide. Use of any images or content on this website without prior written permission of Coin Community or the original lender is strictly prohibited.
Contact Us  |  Advertise Here  |  Privacy Policy / Terms of Use

Coin Community Forum © 2005 - 2026 Coin Community Forums
It took 0.38 seconds to rattle this change. Forums