Click here to Skip to main content
15,909,325 members
Home / Discussions / Database
   

Database

 
GeneralRe: How to restore backup file from sqlserver2005 to sqlserver2000? Pin
Tripathi Swati19-Aug-08 3:14
Tripathi Swati19-Aug-08 3:14 
GeneralRe: How to restore backup file from sqlserver2005 to sqlserver2000? Pin
Wendelius19-Aug-08 5:02
mentorWendelius19-Aug-08 5:02 
Questionlower and UPPER String Pin
nelsonpaixao18-Aug-08 12:22
nelsonpaixao18-Aug-08 12:22 
AnswerRe: lower and UPPER String Pin
Blue_Boy18-Aug-08 12:53
Blue_Boy18-Aug-08 12:53 
QuestionPossibly a dumb question Pin
Jerry Hammond18-Aug-08 11:54
Jerry Hammond18-Aug-08 11:54 
AnswerRe: Possibly a dumb question Pin
Wendelius19-Aug-08 5:25
mentorWendelius19-Aug-08 5:25 
GeneralRe: Possibly a dumb question Pin
Jerry Hammond19-Aug-08 18:45
Jerry Hammond19-Aug-08 18:45 
Questionhelp setting up matrix cross-refrence query [modified] Pin
empulse18-Aug-08 4:49
empulse18-Aug-08 4:49 
I am not totally sure what the proper terminology for this structure is but the situation is:
I have three tables

Table One: Category
-------------------
CatID (int, index)
Category (varchar) Example Values(fruit, vegetable, mineral, language. etc)

Table Two: Objects
----------------------
ObjectID (int, index)
Parent_Category (int, Foreign Key to CatID)
ObjectName (varchar) example Values (Apples, Brocolli, Copper, etc)

table Three: Content
------------------------
ContentID (primary key)
CatID (FK to table Category)
ObjectID (Fk to table Objects)
...OtherContent...

I need to construct a select statement that produces something similar to the following format
           Fruit   Vegetable  Mineral  Language 
-------------------------------------------------
Apple        X
Bananna      X
French                                    X
Brocolli                X
Cherry       X         
Cabbage                 X
Iron                              X

Idealy, I would like to have the ContentID of the correspondig record from the third table (Content) displayed in place of each "X".

The goal is to generate an HTML page with an HREF at each "X" that links to a page that retrieves the specific record from the Content table.

Any suggestions?

modified on Monday, August 18, 2008 2:05 PM

AnswerRe: help setting up matrix cross-refrence query Pin
DerekFL18-Aug-08 10:37
DerekFL18-Aug-08 10:37 
GeneralRe: help setting up matrix cross-refrence query Pin
empulse18-Aug-08 10:56
empulse18-Aug-08 10:56 
AnswerRe: help setting up matrix cross-refrence query Pin
Tripathi Swati18-Aug-08 22:23
Tripathi Swati18-Aug-08 22:23 
AnswerRe: help setting up matrix cross-refrence query Pin
Wendelius19-Aug-08 5:19
mentorWendelius19-Aug-08 5:19 
AnswerRe: help setting up matrix cross-refrence query Pin
Mycroft Holmes19-Aug-08 22:35
professionalMycroft Holmes19-Aug-08 22:35 
QuestionWhat is the disadvantage of using select * from table name?? Pin
Tridip Bhattacharjee17-Aug-08 23:16
professionalTridip Bhattacharjee17-Aug-08 23:16 
AnswerRe: What is the disadvantage of using select * from table name?? Pin
soni uma17-Aug-08 23:35
soni uma17-Aug-08 23:35 
AnswerRe: What is the disadvantage of using select * from table name?? Pin
SomeGuyThatIsMe18-Aug-08 2:11
SomeGuyThatIsMe18-Aug-08 2:11 
AnswerRe: What is the disadvantage of using select * from table name?? Pin
Tim Carmichael18-Aug-08 6:33
Tim Carmichael18-Aug-08 6:33 
AnswerRe: What is the disadvantage of using select * from table name?? Pin
PIEBALDconsult18-Aug-08 13:00
mvePIEBALDconsult18-Aug-08 13:00 
AnswerRe: What is the disadvantage of using select * from table name?? Pin
supercat919-Aug-08 9:28
supercat919-Aug-08 9:28 
Questionhow to split a string in oracle Pin
lakshmichawala17-Aug-08 19:41
lakshmichawala17-Aug-08 19:41 
AnswerCross Post!! Pin
ChandraRam17-Aug-08 21:21
ChandraRam17-Aug-08 21:21 
AnswerRe: how to split a string in oracle Pin
DerekFL18-Aug-08 10:40
DerekFL18-Aug-08 10:40 
GeneralRe: how to split a string in oracle Pin
Wendelius19-Aug-08 10:55
mentorWendelius19-Aug-08 10:55 
QuestionProblem StoredProcedure for LINQ Pin
K V Sekhar17-Aug-08 18:33
K V Sekhar17-Aug-08 18:33 
AnswerRe: Problem StoredProcedure for LINQ Pin
Syed Mehroz Alam18-Aug-08 7:04
Syed Mehroz Alam18-Aug-08 7:04 

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.