Click here to Skip to main content
16,006,886 members
Home / Discussions / Database
   

Database

 
GeneralRe: Save and retrieve an image with SQL Server 2005 Pin
MCAST762-May-07 16:47
MCAST762-May-07 16:47 
GeneralRe: Save and retrieve an image with SQL Server 2005 Pin
Giorgi Dalakishvili2-May-07 21:05
mentorGiorgi Dalakishvili2-May-07 21:05 
Questionsql string format Pin
hero19952-May-07 5:42
hero19952-May-07 5:42 
AnswerRe: sql string format Pin
Rob Graham2-May-07 9:17
Rob Graham2-May-07 9:17 
QuestionHow do you resume next? Pin
kayos5922-May-07 5:42
kayos5922-May-07 5:42 
AnswerRe: How do you resume next? Pin
Colin Angus Mackay2-May-07 6:06
Colin Angus Mackay2-May-07 6:06 
GeneralRe: How do you resume next? Pin
kayos5922-May-07 6:54
kayos5922-May-07 6:54 
QuestionSQL Query Problem Pin
rachitdamani2-May-07 1:14
rachitdamani2-May-07 1:14 
Hi all,

I need some help regarding SQL query.

I have the following requirement:

I have 3 tables(in bold) with columns as following:

Unit

UnitId

ListUnit

UnitId,ListId

List

ListId


And I have the records as following in the above mentioned tables:

Unit

1
2
3


ListUnit

1,1
1,3
2,1
2,2
3,2
3,1


List

1
2
3

Now I want to retrieve only top 1st (UnitId,ListId) from the group
I.e. 1,2 from (1,2
1,1
1,3) group.

Then

2,1 from (2,1
2,2) group.

And

3,2 from (3,2
3,1) group.

So how could I write SQL Query for this?


Thanks,
Rachit Damani.
AnswerRe: SQL Query Problem Pin
gauthee2-May-07 1:48
gauthee2-May-07 1:48 
QuestionGranting Permissions: Under what authority? Pin
Brady Kelly1-May-07 23:56
Brady Kelly1-May-07 23:56 
AnswerRe: Granting Permissions: Under what authority? Pin
Colin Angus Mackay2-May-07 0:19
Colin Angus Mackay2-May-07 0:19 
GeneralRe: Granting Permissions: Under what authority? Pin
Brady Kelly2-May-07 1:20
Brady Kelly2-May-07 1:20 
Questionplease tell me the truth Pin
hero19951-May-07 23:36
hero19951-May-07 23:36 
AnswerRe: please tell me the truth Pin
gauthee8-May-07 0:10
gauthee8-May-07 0:10 
GeneralRe: please tell me the truth Pin
hero199523-May-07 18:59
hero199523-May-07 18:59 
Questionhow to strore video in database Pin
Rama krishna.M1-May-07 21:49
Rama krishna.M1-May-07 21:49 
AnswerRe: how to strore video in database Pin
Pete O'Hanlon1-May-07 22:38
mvePete O'Hanlon1-May-07 22:38 
Questionremoving duplicate rows Pin
chinnivinay1-May-07 21:09
chinnivinay1-May-07 21:09 
AnswerRe: removing duplicate rows Pin
Pete O'Hanlon1-May-07 22:39
mvePete O'Hanlon1-May-07 22:39 
Questionconnection string for connect to SQL server 2000 Pin
Rupesh Kumar Swami1-May-07 20:35
Rupesh Kumar Swami1-May-07 20:35 
AnswerRe: connection string for connect to SQL server 2000 Pin
Vimalsoft(Pty) Ltd1-May-07 21:54
professionalVimalsoft(Pty) Ltd1-May-07 21:54 
GeneralRe: connection string for connect to SQL server 2000 Pin
Rupesh Kumar Swami1-May-07 22:38
Rupesh Kumar Swami1-May-07 22:38 
GeneralRe: connection string for connect to SQL server 2000 [modified] Pin
Vimalsoft(Pty) Ltd1-May-07 22:54
professionalVimalsoft(Pty) Ltd1-May-07 22:54 
GeneralRe: connection string for connect to SQL server 2000 Pin
Rupesh Kumar Swami1-May-07 23:32
Rupesh Kumar Swami1-May-07 23:32 
GeneralRe: connection string for connect to SQL server 2000 Pin
Vimalsoft(Pty) Ltd1-May-07 23:39
professionalVimalsoft(Pty) Ltd1-May-07 23:39 

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.