Click here to Skip to main content
16,012,028 members
Home / Discussions / Database
   

Database

 
GeneralRe: is it an average or NOT? Pin
WetRivrRat4-Jul-05 6:24
WetRivrRat4-Jul-05 6:24 
GeneralRe: is it an average or NOT? Pin
Colin Angus Mackay4-Jul-05 6:55
Colin Angus Mackay4-Jul-05 6:55 
Questionhow to read the header row in excel file? Pin
qqworm2-Jul-05 22:31
qqworm2-Jul-05 22:31 
GeneralI can not login to SQL server 2000 in case... Pin
dhtuan2-Jul-05 17:04
dhtuan2-Jul-05 17:04 
GeneralRe: I can not login to SQL server 2000 in case... Pin
RajithCAlwis3-Jul-05 20:36
RajithCAlwis3-Jul-05 20:36 
GeneralMicrosoft Access password Pin
sasan562-Jul-05 11:01
sasan562-Jul-05 11:01 
GeneralRe: Microsoft Access password Pin
RajithCAlwis3-Jul-05 20:34
RajithCAlwis3-Jul-05 20:34 
QuestionHow to avoid double Rows Pin
gharryh2-Jul-05 10:39
gharryh2-Jul-05 10:39 
I have two tables, one having only 4 records the other many.
The first called Speelzalen is indexed on Speelzaalnummer.
The second one called Groepen has at least one column called Speelzaalnummer but is not indexed on that Column. I retrieve data from boyh by:

sqlCommand = New SqlCommand("Select * from Speelzalen INNER JOIN Groepen ON Speelzalen.Speelzaalnummer = Groepen.Speelzaalnummer", sqlConnection)

After this i bind the result to two datalist and use them like this:

<td width="125"><asp:listbox id="DataList3" runat="server" Rows="1" DataTextField="SpeelzaalNaam" DataValueField="SpeelzaalNaam" /></td>

and

<td><asp:listbox id="DataList2" runat="server" Rows="1" DataTextField="Groep" DataValueField="Groep" /></td>

It all works fine with one exception: for all the records in Groepen there is alse a entry in the SpeelzaalNaam listbox, but there should only be four.

The question is two folded, one; is there a Select construction to be used to undouble the exces records, or second; is there a way to show only those records from the group database that are connected to the row in the Speelzalen table.

AnswerRe: How to avoid double Rows Pin
toxcct3-Jul-05 20:37
toxcct3-Jul-05 20:37 
GeneralRe: How to avoid double Rows Pin
gharryh4-Jul-05 2:56
gharryh4-Jul-05 2:56 
GeneralRe: How to avoid double Rows Pin
gharryh4-Jul-05 5:01
gharryh4-Jul-05 5:01 
GeneralPuzzles me how to check a columns value Pin
gharryh1-Jul-05 10:49
gharryh1-Jul-05 10:49 
GeneralRe: Puzzles me how to check a columns value Pin
Christian Graus1-Jul-05 20:25
protectorChristian Graus1-Jul-05 20:25 
GeneralRe: Puzzles me how to check a columns value Pin
gharryh1-Jul-05 21:31
gharryh1-Jul-05 21:31 
GeneralRe: Puzzles me how to check a columns value Pin
Christian Graus1-Jul-05 21:58
protectorChristian Graus1-Jul-05 21:58 
GeneralRe: Puzzles me how to check a columns value Pin
gharryh1-Jul-05 23:34
gharryh1-Jul-05 23:34 
GeneralRe: Puzzles me how to check a columns value Pin
Christian Graus3-Jul-05 11:23
protectorChristian Graus3-Jul-05 11:23 
GeneralRe: Puzzles me how to check a columns value Pin
gharryh3-Jul-05 20:08
gharryh3-Jul-05 20:08 
GeneralRe: Puzzles me how to check a columns value Pin
Christian Graus4-Jul-05 13:10
protectorChristian Graus4-Jul-05 13:10 
GeneralRe: Puzzles me how to check a columns value Pin
toxcct1-Jul-05 21:32
toxcct1-Jul-05 21:32 
GeneralRe: Puzzles me how to check a columns value Pin
toxcct1-Jul-05 21:35
toxcct1-Jul-05 21:35 
GeneralRe: Puzzles me how to check a columns value Pin
gharryh1-Jul-05 23:29
gharryh1-Jul-05 23:29 
Questionhow can i change an identity seed of a colomn via transact sql Pin
m.rastgar1-Jul-05 7:58
m.rastgar1-Jul-05 7:58 
AnswerRe: how can i change an identity seed of a colomn via transact sql Pin
Scott Serl1-Jul-05 10:57
Scott Serl1-Jul-05 10:57 
GeneralMS SQL 2000 Server database Pin
phokojoe1-Jul-05 6:01
phokojoe1-Jul-05 6:01 

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.