Click here to Skip to main content
15,912,329 members
Home / Discussions / Database
   

Database

 
GeneralRe: Reverse of * Pin
Ray Cassick23-Jul-10 10:08
Ray Cassick23-Jul-10 10:08 
GeneralRe: Reverse of * Pin
Mycroft Holmes23-Jul-10 13:37
professionalMycroft Holmes23-Jul-10 13:37 
GeneralRe: Reverse of * Pin
Ray Cassick23-Jul-10 13:57
Ray Cassick23-Jul-10 13:57 
AnswerRe: Reverse of * Pin
Eddy Vluggen23-Jul-10 9:17
professionalEddy Vluggen23-Jul-10 9:17 
GeneralRe: Reverse of * Pin
Ray Cassick23-Jul-10 10:11
Ray Cassick23-Jul-10 10:11 
AnswerRe: Reverse of * Pin
Mycroft Holmes23-Jul-10 13:41
professionalMycroft Holmes23-Jul-10 13:41 
QuestionCannot test the registered server in SQL Server 2008, neither start, pause or stop Pin
Kujtim Hyseni23-Jul-10 6:01
Kujtim Hyseni23-Jul-10 6:01 
Questionproblem getting data in a group Pin
Dhyanga23-Jul-10 2:54
Dhyanga23-Jul-10 2:54 
I have a problem getting the right data from the database.
I have two tables named "Category" and "Items". Under one category, there can be multiple items.
table for category looks like:

catagory_ID | catagory_Name | catagory_Description


and the table for item looks like:

item_ID | cat_ID | item_Name | item_Description


Here category_ID and item_ID are unique keys and cat_ID is the foreign key which is the category_ID.
now i want the query which gives the list of data under typical category in the list format.
e.g if Book is the category Name and book_name1,book_name2,book_name3 are the items under category, it should look like

Book
    book_name1
    book_name2
    book_name3


how to do that? Well i can get something like this:

Book book_name1
Book book_name2
Book book_name3


but I want the category just once in the output..what should be the query for that ??
suchita

AnswerRe: problem getting data in a group Pin
Corporal Agarn23-Jul-10 5:47
professionalCorporal Agarn23-Jul-10 5:47 
AnswerRe: problem getting data in a group Pin
Mycroft Holmes23-Jul-10 13:45
professionalMycroft Holmes23-Jul-10 13:45 
AnswerRe: problem getting data in a group Pin
CitrusTech23-Jul-10 21:11
CitrusTech23-Jul-10 21:11 
QuestionTable Optimization Problem - SQL Server Pin
Jacobus0123-Jul-10 2:36
Jacobus0123-Jul-10 2:36 
AnswerRe: Table Optimization Problem - SQL Server Pin
Eddy Vluggen23-Jul-10 5:06
professionalEddy Vluggen23-Jul-10 5:06 
AnswerRe: Table Optimization Problem - SQL Server Pin
Mycroft Holmes23-Jul-10 14:00
professionalMycroft Holmes23-Jul-10 14:00 
Questionprimary key Pin
Neha_Gupta23-Jul-10 2:28
Neha_Gupta23-Jul-10 2:28 
AnswerRe: primary key Pin
R. Giskard Reventlov23-Jul-10 2:34
R. Giskard Reventlov23-Jul-10 2:34 
AnswerRe: primary key Pin
Dhyanga23-Jul-10 3:01
Dhyanga23-Jul-10 3:01 
GeneralRe: primary key Pin
Neha_Gupta23-Jul-10 3:37
Neha_Gupta23-Jul-10 3:37 
GeneralRe: primary key Pin
Eddy Vluggen23-Jul-10 4:55
professionalEddy Vluggen23-Jul-10 4:55 
QuestionDatabase Normalisation Pin
Euhemerus22-Jul-10 9:00
Euhemerus22-Jul-10 9:00 
AnswerRe: Database Normalisation Pin
David Mujica22-Jul-10 10:56
David Mujica22-Jul-10 10:56 
GeneralRe: Database Normalisation Pin
Euhemerus22-Jul-10 11:05
Euhemerus22-Jul-10 11:05 
AnswerRe: Database Normalisation Pin
Mycroft Holmes22-Jul-10 14:21
professionalMycroft Holmes22-Jul-10 14:21 
AnswerRe: Database Normalisation Pin
Goutam Patra22-Jul-10 22:00
professionalGoutam Patra22-Jul-10 22:00 
AnswerRe: Database Normalisation Pin
R. Giskard Reventlov22-Jul-10 22:43
R. Giskard Reventlov22-Jul-10 22:43 

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.