Click here to Skip to main content
15,891,951 members
Home / Discussions / Database
   

Database

 
AnswerRe: How many primary key constraints can we have in a table of ms-access? Pin
riced18-Jun-09 7:03
riced18-Jun-09 7:03 
AnswerRe: How many primary key constraints can we have in a table of ms-access? Pin
Niladri_Biswas19-Jun-09 4:03
Niladri_Biswas19-Jun-09 4:03 
QuestionCreating primary key constraints on a table using VB.NET Pin
sivakumar.mariappan18-Jun-09 0:30
sivakumar.mariappan18-Jun-09 0:30 
AnswerRe: Creating primary key constraints on a table using VB.NET Pin
riced18-Jun-09 7:15
riced18-Jun-09 7:15 
QuestionHow do I do that? [modified] Pin
kripa2117-Jun-09 22:48
kripa2117-Jun-09 22:48 
AnswerRe: check all values in select qry Pin
Colin Angus Mackay17-Jun-09 23:00
Colin Angus Mackay17-Jun-09 23:00 
GeneralRe: check all values in select qry Pin
kripa2117-Jun-09 23:30
kripa2117-Jun-09 23:30 
GeneralRe: check all values in select qry Pin
Colin Angus Mackay17-Jun-09 23:45
Colin Angus Mackay17-Jun-09 23:45 
kripa ostwal wrote:
where ammCode in (2,3)


That is because you are asking for any cars with ammCode of 2 OR 3.

Try a join instead between two result sets.

First set:
SELECT carCode from carAmm WHERE ammCode = 2

Second Set:
SELECT carCode from carAmm WHERE ammCode = 3

Something like this:
SELECT c1.carCode
FROM carAmm AS c1
INNER JOIN carAmm AS c2 ON c1.carCode = c2.carCode
WHERE
c1.ammCode = 2
AND
c2.ammCode = 3

GeneralRe: check all values in select qry Pin
kripa2118-Jun-09 0:00
kripa2118-Jun-09 0:00 
GeneralRe: check all values in select qry Pin
Colin Angus Mackay18-Jun-09 0:05
Colin Angus Mackay18-Jun-09 0:05 
GeneralRe: check all values in select qry Pin
kripa2118-Jun-09 0:14
kripa2118-Jun-09 0:14 
Question2 people create new record in datagridview on dataset, both save, last to save gets primary key violation - fix? Pin
sherifffruitfly17-Jun-09 13:57
sherifffruitfly17-Jun-09 13:57 
AnswerRe: 2 people create new record in datagridview on dataset, both save, last to save gets primary key violation - fix? Pin
Colin Angus Mackay17-Jun-09 14:47
Colin Angus Mackay17-Jun-09 14:47 
GeneralRe: 2 people create new record in datagridview on dataset, both save, last to save gets primary key violation - fix? Pin
sherifffruitfly17-Jun-09 14:51
sherifffruitfly17-Jun-09 14:51 
QuestionSQL Server Backup and Restore questions Pin
Hypermommy17-Jun-09 8:43
Hypermommy17-Jun-09 8:43 
AnswerRe: SQL Server Backup and Restore questions Pin
Colin Angus Mackay17-Jun-09 14:53
Colin Angus Mackay17-Jun-09 14:53 
GeneralRe: SQL Server Backup and Restore questions Pin
Hypermommy30-Jul-09 1:13
Hypermommy30-Jul-09 1:13 
Question"Make sure you have not released a resource before attempting to use it". HELP!!!! Pin
ChiSmile17-Jun-09 7:26
ChiSmile17-Jun-09 7:26 
AnswerRe: "Make sure you have not released a resource before attempting to use it". HELP!!!! Pin
Colin Angus Mackay17-Jun-09 15:01
Colin Angus Mackay17-Jun-09 15:01 
Questionvarchar Pin
zeeShan anSari17-Jun-09 4:03
zeeShan anSari17-Jun-09 4:03 
AnswerRe: varchar Pin
Tim Carmichael17-Jun-09 5:11
Tim Carmichael17-Jun-09 5:11 
AnswerRe: varchar Pin
Ashfield17-Jun-09 9:02
Ashfield17-Jun-09 9:02 
AnswerRe: varchar Pin
Niladri_Biswas17-Jun-09 20:37
Niladri_Biswas17-Jun-09 20:37 
QuestionColumns renaming Pin
jonhbt17-Jun-09 2:57
jonhbt17-Jun-09 2:57 
AnswerRe: Columns renaming Pin
Jerry Hammond17-Jun-09 5:20
Jerry Hammond17-Jun-09 5:20 

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.