What the best table design for item and it's serials ?

I have Item's Table that hold Items meta data
what the solution in the case that i bought 500 Item (Ex: Hard Disk) within different serial no for each item
when  i save this serials will be in one to many ...
when i think in this solution i found that the table have serial no will be in 2 months about 500,000 record
is that best case or there is another solution ?
another one ,
If i have item with multiple colors
best case to save every item with its color as one item  (item_ID,Item_name ,Item_color,....)
or save item in table and colors in table ... and create table to obtain many to many relationship
what the best case and Fastest ?

I have Item's Table that hold Items meta data
what the solution in the case that i bought 500 Item (Ex: Hard Disk) within different serial no for each item
when  i save this serials will be in one to many ...
when i think in this solution i found that the table have serial no will be in 2 months about 500,000 record
is that best case or there is another solution ?
another one ,
If i have item with multiple colors
best case to save every item with its color as one item  (item_ID,Item_name ,Item_color,....)
or save item in table and colors in table ... and create table to obtain many to many relationship
what the best case and Fastest ?
1. I don't think there is any problem in having 1:N relation between ITEM and SERIAL table. That is how relational database works.
2. I will recomend you to use 1:N rather than N:M. For DML operation 1:N has minimum impact when compare to N:M. For instance if the item color field is added in the serial number table, i may need to update multiple rows however if i add the color code
field in item table then i may need to update or insert only one row.
------------------ RECOMENDATION
ITEM
 ITEM_ID int (PK)
 ITEM_NAME VARCHAR(50)
 ITEM_DESCRIPTION VARCHAR(100)
 ITEM_TYPE VARCHAR(10)
 ITEM_CATEGORY VARCHAR(10)
 ITEM_COLOR VARCHAR(10)
SERIAL
 ITEM_ID INT (FK)
 SERIAL_NUM VARCHAR(20) (UNIQUE)
Regards, RSingh

Similar Messages

  • Whats the best web designer for mac?

    My site, jayapps.co.uk, is built on iWeb. But whats the best designer to use? (Mustn't be flash)

    I concur, this is what most professionals use. Dreamweaver is a horrible tool for this purpose, but it's favored because of it being packaged with other Adobe tools and there being a certain level of integration between them.
    If you are on a Mac and not already tithing to Adobe, you might like Freeway Pro, or even something basic like Nvu might satisfy your needs.
    Unfortunately, I've never really found what I would personally consider a reasonable platform for web-design: a powerful editor with integrated JavaScript debugger and real-time preview that can read actual HTML, CSS, and JavaScript as the native format; one that handles refactoring and changing the filesystem layout properly, integrates image editing, etc.

  • What's the best approach/program for finding and eliminating duplicate photos on my hard drive?

    What's the best approach/program for finding and eliminating duplicate photos on my hard drive? I have a "somewhat" older version of iPhoto (5.0.4), and it doesn't seem to offer anything like that except during the importing phase of syncing my phone...

    I wonder, is there room to transfer them to your phone, & then back to filter them?

  • Whats the best 500gb harddive for G5 june 2004?

    whats the best 500gb harddive for G5 june 2004?
    any links to uk website or give me the name and i'll look it up.

    This one for sure...
    Backwards compatible to SATA 1.5Gb/s or 3Gb/s systems.
    http://eshop.macsales.com/item/Western%20Digital/WD5002AALX/
    UK...
    http://www.amazon.co.uk/WD-Caviar-Black-WD5002AALX-internal/dp/B004DMFAJ2
    Jumper settings...
    http://wdc.cu

  • Whats the BEST Deployment Practice for appsTier (2 Node) with RAC Database

    Hi All,
    Whats the BEST Deployment Practice for appsTier on Shared APPL_TOP between two application tier Nodes and a RAC Database.
    Regards
    Satish

    Satish,
    Could you elaborate; are you looking for how to distribute the tiers(forms, web, conc., etc.); are you asking about PCP (parallelt concurrent processing)..
    Regards,

  • My iPad screen is not responding, whats the best way to clean it and what could be the problem, its 2 days old

    my iPad screen is not responding, whats the best way to clean it and what could be the problem, its 2 days old

    Braunzoes wrote:
    my iPad screen is not responding, ...
    Try a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430
    Braunzoes wrote:
    ... whats the best way to clean it ...
    How to Clean Apple Products
    http://support.apple.com/kb/HT3226
    Braunzoes wrote:
    ... its 2 days old
    iPad User Guide iOS 6

  • Whats the best virus checker for a MAC

    whats the best virus checker for a MAC

    rkaufmann87 wrote:
    And I'm of the school that says no virus checker is needed. This assumes the user has a minor amount of common sense and does download illegal software, visits *********** sites and keeps OS X up-to-date by using Software Update regularly.
    I'm in almost full agreement with everything you've said except for the ************** sites part. Most current Mac malware comes from very ordinary and even top level sites these days. Flashback came from hundreds of main stream WordPress blog sites. The New York Times primary web site was spreading malware for 24 hours before it was discovered. Users can no longer feel confident of not being infected just because they avoid sketchy sites.

  • Hi Whats the best solar charger for my i phone 4

    Hi. Whats the best solar charger for my iphone 4. Thanks  James

    Hi James,
    I do a lot of biking and I found a company called Misuny that make a solar battery charger that your iphone slides into. You can charge it via USB and when I'm out and about it tops itself up by the solar panel. When your iPhone is running low on battery power just press the power button twice and it transfers the charge. It solved my problems! (although i cant make excuses to my wife that my battery ran out anymore!)
    misuny.co.uk for UK orders and i think misunycanada.com for US.
    Cheers!
    Jason

  • Do any imacs come with a touch screen if not whats the best touch  screen for a 2012 13inch macbook air

    Do any imacs come with a touch screen if not whats the best touch  screen for a 2012 13inch macbook air?
    Thx

    No they don't.
    Apple's position is that touchscreens are for tablets and phones (in Apple's case the iPad and iPhone) and that OSX does not need a touchscreen - the trackpad and/or mouse is more flexible.
    That may change in future but no one here knows.
    In answer to your second question, there is NO touch screen available for the MacBook Air (2012 or any other vintage), nor for the MacBook Pro.  If you must have a touchscreen, consider an iPad with a stand and a wireless keyboard.  Alternatively, a Windows 8.1 laptop or desktop???

  • Adobe flash player 11 doesen't works on 10.8.1! what can i do? whats the best flash player for mac?

    adobe flash player 11 doesen't works on 10.8.1! what can i do? whats the best flash player for mac?

    First try deleting Flash Player by carefully following the instructions on Adobe's website:
    http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-mac-os.html
    Then install it again from this location only:
    http://get.adobe.com/flashplayer/

  • What is the best leaked OS for Z10 and why??!

    What is the best system update for the BlackBerry z10 in terms of battery and use of the device?>>> "leaked ones"
    Please advise me please ^ ^ Thank you?? 

    Hello AZUZJUMA.
    Amigo is depends on the taste of each person acuerdate each OS works differently on each device, but in my case I recommend the OS 10.1.0.4543 is one that has been more fluid and has been much better in performance ...
    I'll leave the link for you to download if you like.
    http://crackberry.com/leaked-os-10104537-blackberry-z10
    Regards.
    Kudos **Do not forget to give those people who help and advise you regarding your questions, as well give the answer like**
    @ gutijose14
    BBM Channels  PIN: C0007093A
    Do not forget to give LIKE    Those people who help you and advise you about your doubts.  if the review has been SOLVED** # 4LL  #ÉliteRoad  Make a backup of your BlackBerry
    BlackBerry Protect and  BlackBerry Link constantly.  #ichooseBlackBerry10 Gutijose14 Forums Veteran I

  • Whats the best gaming controller for mac?

    I have 27 inch i mac that works awesome with games. So wondering what the best controller to get would be so i dont have to use mouse  and keyboard

    I concur, this is what most professionals use. Dreamweaver is a horrible tool for this purpose, but it's favored because of it being packaged with other Adobe tools and there being a certain level of integration between them.
    If you are on a Mac and not already tithing to Adobe, you might like Freeway Pro, or even something basic like Nvu might satisfy your needs.
    Unfortunately, I've never really found what I would personally consider a reasonable platform for web-design: a powerful editor with integrated JavaScript debugger and real-time preview that can read actual HTML, CSS, and JavaScript as the native format; one that handles refactoring and changing the filesystem layout properly, integrates image editing, etc.

  • Whats the best mobile phone for syncing to macbook?

    I am about to buy a mobile phone and i want to know which one is the best, for ease of connection?

    Personally, I would recommend any of the later Sony Ericsson models. Either the K800 or K610 (supported in iSync 2.4), or any of the additional models supported by iSync Phone Plugins from here.
    You can see what data is synced on the page linked above. You can also use them with the Mac Address Book for SMS and Calls.

  • What is the best MIDI controller for Logic, and is Axiom Pro the only line with "Hyper Control?

    What is the best MIDI keyboard/control surface to use with LOGIC (Studio - which I assume is the latest & greatest version) and is Axiom Pro the only line that has Hyper control? I already own the Axiom Pro 61, but prefer more keys, and though I like much about it, the keys aren't very easy for playing more complex material, and there is an obvious delay regarding attack response (esp. noticeable at faster speeds). There are other issues as well I've read of regarding key sticking (though I consider myself lucky mine do not, there is nontheless a sluggish clunckiness issue which neither helps agility/acuracy nor the delay factor.) and the unit not lasting very long before it breaks and needs repairing. And lastly, I am no fan of Avid and care not to support them in the least.

    Sorry, but is this an iPad question? Axiom Pro 61 is not an iPad-compatible peripheral, so perhaps you mean to post in the Logic forum?

  • What is the best DNS server for iCloud and Apple services?

    Hello. Im wondering what is the best DNS server to use with iCloud, and apple services.
    Does apple have a dedicatrd DNS server?
    I read a couple of articles stating that the google DNS servers like 8.8.8.8 and 8.8.4.4 slow down apple and facebook services.
    Did a couple of tests like iTunes streaming and found out that its true in some cases.

    Not always!
    Found what i was shearching for:
    http://www.who.is/dns/icloud.com/

Maybe you are looking for