Click here to Skip to main content
15,886,110 members
Home / Discussions / Database
   

Database

 
AnswerRe: I want to use @@indentity Scalar variable in Stored procedure Pin
Niladri_Biswas8-Jan-10 17:51
Niladri_Biswas8-Jan-10 17:51 
GeneralRe: I want to use @@indentity Scalar variable in Stored procedure Pin
Mycroft Holmes9-Jan-10 13:43
professionalMycroft Holmes9-Jan-10 13:43 
GeneralRe: I want to use @@indentity Scalar variable in Stored procedure Pin
Niladri_Biswas10-Jan-10 2:06
Niladri_Biswas10-Jan-10 2:06 
QuestionAccidentally posted to wrong forum. My apologies--- Trigger Help [modified] Pin
spankyleo1238-Jan-10 3:05
spankyleo1238-Jan-10 3:05 
AnswerRe: Accidentally posted to wrong forum. My apologies--- Trigger Help Pin
Bassam Saoud8-Jan-10 4:36
Bassam Saoud8-Jan-10 4:36 
QuestionDatabase Design Pin
Gjm8-Jan-10 2:14
Gjm8-Jan-10 2:14 
AnswerRe: Database Design Pin
dan!sh 8-Jan-10 3:06
professional dan!sh 8-Jan-10 3:06 
AnswerRe: Database Design Pin
riced8-Jan-10 5:56
riced8-Jan-10 5:56 
You need to think about the data - I'd get plenty of examples and see how they look - what attributes define a particular product for example.
A possible suggestion is two tables: one to hold products and the other to hold attributes. This is a simplified example of this approach.
Product Table
-------------
ProductID
ProductName
ProductType

Attribute Table
---------------
AttributeID
ProductID
Attribute
Value

Examples:
Products
1, LG XYZ, TFT Monitor
2, AX-999, Motherboard

Attributes
1, 1, Screen Size, 22
2, 1, Colour, Black
3, 2, CPU Type, AMD
4, 2, PCI Sockets, 3

You need to link the tables. Also this is probably too simplistic - think about the units for attributes. Some will numeric others strings.

Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis

GeneralRe: Database Design Pin
Gjm8-Jan-10 14:43
Gjm8-Jan-10 14:43 
QuestionEXEC Return Value Pin
dataminers7-Jan-10 7:05
dataminers7-Jan-10 7:05 
AnswerRe: EXEC Return Value Pin
Eddy Vluggen7-Jan-10 8:57
professionalEddy Vluggen7-Jan-10 8:57 
AnswerRe: EXEC Return Value Pin
Dimitri Witkowski7-Jan-10 8:59
Dimitri Witkowski7-Jan-10 8:59 
QuestionProblem in Finding Hours Duration Between two Dates Pin
Vishnu Narayan Mishra7-Jan-10 3:03
Vishnu Narayan Mishra7-Jan-10 3:03 
AnswerRe: Problem in Finding Hours Duration Between two Dates Pin
Vishnu Narayan Mishra7-Jan-10 3:23
Vishnu Narayan Mishra7-Jan-10 3:23 
Questionproblem for build a query Pin
Rupesh Kumar Swami7-Jan-10 2:41
Rupesh Kumar Swami7-Jan-10 2:41 
AnswerRe: problem for build a query Pin
Dimitri Witkowski7-Jan-10 2:50
Dimitri Witkowski7-Jan-10 2:50 
AnswerRe: problem for build a query Pin
i.j.russell7-Jan-10 3:05
i.j.russell7-Jan-10 3:05 
QuestionHow to make a query stronger in SQL Server Pin
Member 42602707-Jan-10 0:30
Member 42602707-Jan-10 0:30 
JokeRe: How to make a query stronger in SQL Server Pin
WoutL7-Jan-10 0:49
WoutL7-Jan-10 0:49 
AnswerRe: How to make a query stronger in SQL Server Pin
Jörgen Andersson7-Jan-10 1:04
professionalJörgen Andersson7-Jan-10 1:04 
AnswerRe: How to make a query stronger in SQL Server Pin
i.j.russell7-Jan-10 2:36
i.j.russell7-Jan-10 2:36 
QuestionSQL Calculation... Pin
Illegal Operation6-Jan-10 12:44
Illegal Operation6-Jan-10 12:44 
AnswerRe: SQL Calculation... Pin
_Damian S_6-Jan-10 14:36
professional_Damian S_6-Jan-10 14:36 
Question[SQLite3] handling returned data from PRAGMA table_info("table_name") in C#? Pin
bbranded6-Jan-10 9:36
bbranded6-Jan-10 9:36 
AnswerRe: [SQLite3] handling returned data from PRAGMA table_info("table_name") in C#? Pin
loyal ginger6-Jan-10 9:59
loyal ginger6-Jan-10 9:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.