home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.ms-sqlserver      Notorious Rube Goldberg contraption      19,505 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 19,019 of 19,505   
   Tony Johansson to All   
   Is it good to have a price column imn Or   
   26 Feb 14 23:26:26   
   
   From: johansson.andersson@telia.com   
      
   We have a many to many relations between Order and Product table.   
   We therefore create a connection table in between and call it OrderLine.   
   In the product table we have for example a field called Price for a specific   
   product.   
      
   In the OrderLine table we have field such as OrderId and ProductId and   
   quantity.   
      
   Now to my question is it good to have a price column in the OrderLine table.   
   ?   
   If we have a price will that mean the total price per line   
   such as if we have ordered 3 shoes and this specific shoes cost 10 the price   
   field in OrderLine would be 30   
      
   //Tony   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca