Click here to Skip to main content
16,007,126 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL:Find one primary key of each duplicate records Pin
xodeblack21-Aug-09 1:28
xodeblack21-Aug-09 1:28 
GeneralRe: SQL:Find one primary key of each duplicate records Pin
Ashfield21-Aug-09 4:20
Ashfield21-Aug-09 4:20 
GeneralRe: SQL:Find one primary key of each duplicate records Pin
Coding C#20-Aug-09 22:25
Coding C#20-Aug-09 22:25 
GeneralRe: SQL:Find one primary key of each duplicate records Pin
David Skelly20-Aug-09 22:32
David Skelly20-Aug-09 22:32 
GeneralRe: SQL:Find one primary key of each duplicate records Pin
Ashfield21-Aug-09 1:19
Ashfield21-Aug-09 1:19 
QuestionLIKE Predicate Pin
TheIdleProgrammer20-Aug-09 3:50
TheIdleProgrammer20-Aug-09 3:50 
AnswerRe: LIKE Predicate Pin
Mycroft Holmes20-Aug-09 4:17
professionalMycroft Holmes20-Aug-09 4:17 
GeneralRe: LIKE Predicate Pin
TheIdleProgrammer20-Aug-09 4:28
TheIdleProgrammer20-Aug-09 4:28 
Yeah, maybe I should have explained myself better.

Take this statement from the second databases DataSet class:

return (ModelsRow[])this.Models.Select("C_Make = '" + make + "' AND C_Model LIKE '%" + model + "%'");


Is there an expression I can use to try to further enhance this expression to help me retrieve the records where C_Model is like the model passed in? If '306 -97' is passed in and the models table contains '306' rows how can I get to those rows? Like I say, it's fine if I pass in 'Fiesta' and the models table contains 'Fiesta 1', 'Fiesta 2', 'Fiesta 3' etc.

The more I think about this the more I'm beginning to think it's not possible. I just don't see how I can select rows where a certain field matches a substring of a literal string.
GeneralRe: LIKE Predicate Pin
Mycroft Holmes20-Aug-09 13:15
professionalMycroft Holmes20-Aug-09 13:15 
GeneralRe: LIKE Predicate Pin
TheIdleProgrammer20-Aug-09 22:10
TheIdleProgrammer20-Aug-09 22:10 
GeneralRe: LIKE Predicate Pin
Mycroft Holmes21-Aug-09 0:33
professionalMycroft Holmes21-Aug-09 0:33 
GeneralRe: LIKE Predicate Pin
David Skelly20-Aug-09 22:53
David Skelly20-Aug-09 22:53 
GeneralRe: LIKE Predicate Pin
TheIdleProgrammer20-Aug-09 23:07
TheIdleProgrammer20-Aug-09 23:07 
AnswerRe: LIKE Predicate Pin
Luc Pattyn20-Aug-09 4:58
sitebuilderLuc Pattyn20-Aug-09 4:58 
GeneralRe: LIKE Predicate Pin
TheIdleProgrammer20-Aug-09 22:11
TheIdleProgrammer20-Aug-09 22:11 
QuestionSql Problem Pin
AhmedGebaly19-Aug-09 23:37
AhmedGebaly19-Aug-09 23:37 
AnswerRe: Sql Problem Pin
David Skelly20-Aug-09 2:26
David Skelly20-Aug-09 2:26 
AnswerRe: Sql Problem Pin
Kschuler20-Aug-09 3:17
Kschuler20-Aug-09 3:17 
AnswerRe: Sql Problem Pin
Jerry Hammond20-Aug-09 3:41
Jerry Hammond20-Aug-09 3:41 
Questionset row number in select query Pin
nainakarri19-Aug-09 20:34
nainakarri19-Aug-09 20:34 
AnswerRe: set row number in select query Pin
_Damian S_19-Aug-09 20:41
professional_Damian S_19-Aug-09 20:41 
GeneralRe: set row number in select query Pin
nainakarri19-Aug-09 20:44
nainakarri19-Aug-09 20:44 
GeneralRe: set row number in select query Pin
Coding C#20-Aug-09 3:36
Coding C#20-Aug-09 3:36 
Questionhow to connect to magic database Pin
elimpiado19-Aug-09 19:53
elimpiado19-Aug-09 19:53 
AnswerRe: how to connect to magic database Pin
Mycroft Holmes19-Aug-09 20:22
professionalMycroft Holmes19-Aug-09 20:22 

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.