Click here to Skip to main content
15,893,668 members
Home / Discussions / Database
   

Database

 
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 
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 
I'm not sure if I understand your question. I think this will do what you want:

select * from Models
where C_Model like '%306 -97%'
or '306 -97' like C_Model + '%'


It won't be the fastest query in the world, but it should do what you want. It will pick out models that have 306 -97 anywhere in the model number, (e.g. '4306 -97') and it will also get all the rows with model numbers '306'. If there are any rows with model number '3' or '30' it will get those too, but that's what you seem to be asking for.
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 
GeneralRe: how to connect to magic database Pin
Ashfield19-Aug-09 21:00
Ashfield19-Aug-09 21:00 
Questionhow to attatch, restore database to msde using vb.net or c# .ne Pin
Ageesh18-Aug-09 22:43
Ageesh18-Aug-09 22:43 
AnswerRe: how to attatch, restore database to msde using vb.net or c# .ne Pin
Mycroft Holmes19-Aug-09 17:46
professionalMycroft Holmes19-Aug-09 17:46 
QuestionHow to calculate the total memory occupied by the database Pin
Krishna Aditya18-Aug-09 22:42
Krishna Aditya18-Aug-09 22:42 

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.