Click here to Skip to main content
15,892,839 members
Home / Discussions / Database
   

Database

 
AnswerRe: reference data from database to textboxes Pin
Colin Angus Mackay27-Aug-07 0:56
Colin Angus Mackay27-Aug-07 0:56 
QuestionOh No, How this happened???? Pin
RaveRare26-Aug-07 20:21
RaveRare26-Aug-07 20:21 
QuestionDatabase Login Pin
Bonsta26-Aug-07 8:47
Bonsta26-Aug-07 8:47 
AnswerRe: Database Login Pin
Marek Grzenkowicz26-Aug-07 21:43
Marek Grzenkowicz26-Aug-07 21:43 
QuestionWhy the Column from Type BigInt must have name [Size] in SQL 2000 to work well ?!! Pin
I Believe In GOD26-Aug-07 5:39
I Believe In GOD26-Aug-07 5:39 
AnswerRe: Why the Column from Type BigInt must have name [Size] in SQL 2000 to work well ?!! Pin
Michael Sync26-Aug-07 17:44
Michael Sync26-Aug-07 17:44 
QuestionPleaes help me with this query Pin
Meysam Mahfouzi26-Aug-07 4:22
Meysam Mahfouzi26-Aug-07 4:22 
AnswerRe: Pleaes help me with this query Pin
Colin Angus Mackay26-Aug-07 5:35
Colin Angus Mackay26-Aug-07 5:35 
First, remember that your WHERE clause is checked against only one row, not multiple rows. What you are aksing for is a check over multiple rows.

What you are asking for is KeyId=1 AND value=10 on one row AND KeyId=2 AND value=11 on another row where title is the same.

So, perhaps what you need is to join the rows together.

SELECT * 
FROM (SELECT * FROM table WHERE keyId=1 AND value=10) AS t1
INNER JOIN (SELECT * FROM table WHERE keyId=2 AND value=11) AS t2 ON t1.title = t2.title


Just a thought - I've not tried this so I don't know if it works, but I think it is going in the right direction.


-- Always write code as if the maintenance programmer were an axe murderer who knows where you live.

Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ...
* Reading: SQL Bits


My website

GeneralRe: Pleaes help me with this query Pin
Meysam Mahfouzi26-Aug-07 11:32
Meysam Mahfouzi26-Aug-07 11:32 
GeneralRe: Pleaes help me with this query Pin
Colin Angus Mackay26-Aug-07 11:44
Colin Angus Mackay26-Aug-07 11:44 
GeneralRe: Pleaes help me with this query Pin
Meysam Mahfouzi28-Aug-07 3:25
Meysam Mahfouzi28-Aug-07 3:25 
AnswerRe: Pleaes help me with this query Pin
Michael Potter27-Aug-07 5:41
Michael Potter27-Aug-07 5:41 
GeneralRe: Pleaes help me with this query Pin
Meysam Mahfouzi28-Aug-07 3:08
Meysam Mahfouzi28-Aug-07 3:08 
GeneralRe: Pleaes help me with this query Pin
Colin Angus Mackay28-Aug-07 6:55
Colin Angus Mackay28-Aug-07 6:55 
GeneralRe: Pleaes help me with this query Pin
Meysam Mahfouzi28-Aug-07 21:38
Meysam Mahfouzi28-Aug-07 21:38 
QuestionProblem with cursor Pin
Developer61126-Aug-07 4:06
Developer61126-Aug-07 4:06 
AnswerRe: Problem with cursor [modified] Pin
John-ph26-Aug-07 20:10
John-ph26-Aug-07 20:10 
AnswerRe: Problem with cursor Pin
John-ph26-Aug-07 21:08
John-ph26-Aug-07 21:08 
Questionconnect to MYSQL database located on web Pin
Rupesh Kumar Swami25-Aug-07 23:19
Rupesh Kumar Swami25-Aug-07 23:19 
QuestionHow to drop builtin\administrators account from sql server Pin
Developer61125-Aug-07 22:39
Developer61125-Aug-07 22:39 
AnswerRe: How to drop builtin\administrators account from sql server Pin
Mark Churchill26-Aug-07 18:07
Mark Churchill26-Aug-07 18:07 
GeneralRe: How to drop builtin\administrators account from sql server Pin
Developer61126-Aug-07 19:35
Developer61126-Aug-07 19:35 
GeneralRe: How to drop builtin\administrators account from sql server Pin
Burnsys229-Aug-07 4:35
Burnsys229-Aug-07 4:35 
Questionoutput to struct Pin
ginjikun25-Aug-07 6:53
ginjikun25-Aug-07 6:53 
AnswerRe: output to struct Pin
Christian Graus26-Aug-07 0:30
protectorChristian Graus26-Aug-07 0:30 

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.