Käynnissä

C++ Function that Converts A Search String into an SQL Query

We have a C++ / MFC Windows application that stores data in a Microsoft Access format data file.

we need a C++ function to help with searching for text in the database. The search conventions below are very

similar to the Google Adwords search rules so you can consult them if confused.

The function should take a LPCTSTR the user has entered and convert it to a valid SQL query. Lets say the field

that will be queried is called: Description

So the function would return for the search phrase

[dell computer]

something like:

SELECT * FROM Assets WHERE [Description] = 'dell computer'

The format of the text search will be:

(1) [Search String] - the data base field must contain EXACTLY what was in between the brackets [ ] and nothing else. So the search:

[dell computer] will return only the database rows with a field that contains

dell computer

if the field contains

used dell computer

that will not be returned.

(2) "Search String" - the data base field must contain the phrase "Search String", it can contain words before or after the phrase:

Search String

but the phrase "Search String" must be in the Description field.

So if the phrase is "dell computer"

used dell computer

will be returned

dell damaged computer

would not be returned as "dell computer" must be present in the exact form shown in the quotes.

(3) +search

a '+' character before a word means the word must be present somewhere in the description field

so +dell +computer

would return rows containing:

dell damaged computer

old dell computer

computer from dell

but would not return

dell

as the words "dell" and "computer" must be in the description field.

(4) -search

a '-' character before a word means don't return any rows where the description field contains the word

So the search string -queen elizabeth

would return rows with a description field containing

elizabeth warren

elizabeth taylor

but would not return rows

queen elizabeth

queen rock band

as they contain the negative keyword: queen

Taidot: C++ -ohjelmointi, SQL

Näytä lisää: sql php search function, sql query tree children, sql query tree structure

About the Employer:
( 19 reviews ) Mississauga, Canada

Projektin tunnus: #13107565

Myönnetty käyttäjälle:

NewHorizons2016

Hi there, I've vast VC++/MFC experience, and was nearly employed by MS them selves, multiple times. Your C++ function(requirement) is actually not too complicated to implement. If you are keen, let me know.

135 $ USD 1 päivässä
(11 arvostelua)
4.8

28 freelanceria on tarjonnut keskimäärin 159 $ tähän työhön

vano101

Hello. I am expert in C++, Windows API, MFC and Microsoft Visual Studio. It's my main specialisation. Also, I have knowledge of SQL and I have some experience with Microsoft Access.

112 $ USD 2 päivässä
(819 arvostelua)
7.1
kjg197318

!!!!!!!!!!!!!!!!!!!!! Hello !!!!!!!!!!!! I am a Computer Vision expert specializing in various Computer Vision techs such as Face Recognition, ANPR(LPR), Vehicle/Pedestrian/Object Counting, General Object Classifica Lisää

222 $ USD 5 päivässä
(50 arvostelua)
6.9
hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environ Lisää

120 $ USD 2 päivässä
(62 arvostelua)
6.3
147 $ USD 3 päivässä
(133 arvostelua)
6.1
155 $ USD 3 päivässä
(20 arvostelua)
5.5
yamaf555

Oh,friendly dear!!! I have the expensive experience of 5 years in developing web,android,iphone,C++,java,C#,ruby ,python programming, and can carry out your any proposal in time completely. I understand your propos Lisää

200 $ USD 3 päivässä
(41 arvostelua)
5.2
zabolotniipavel

Hi, I have Master Degree in Computer Science. and great experience in C++ and Microsoft Access. I have few questions about project details. First of all, would you be able to provide me the database to test function o Lisää

45 $ USD 3 päivässä
(41 arvostelua)
5.0
wangbeizou

Hello. How are you. I have read and understood the project. I'm an Expert in Data Structures and Algorithms. And I know well ; Java ,C/C++, Python ,SQL. I'm interested this project. So, firstly I want to discu Lisää

200 $ USD 4 päivässä
(38 arvostelua)
4.9
100 $ USD 3 päivässä
(32 arvostelua)
4.6
SahibYar

Dear Valued Customer I am a full time Senior Engineer developing Enterprise solutions in C++ and .Net Technologies for about 3+ years. I know all the minor details of N-layer Architecture Software Design, Design Patte Lisää

250 $ USD 5 päivässä
(29 arvostelua)
4.3
sheikDev

Hello, Im interested to work on this. I have good experience in SQL queries and done many jobs successfully. I gone through your requirements Thanks, Sheik

100 $ USD 3 päivässä
(9 arvostelua)
4.1
phiona06

Hi! I'm senior lecturer on databases with 10+ years experience in different DBMS (including MS Access). Also I'm senior lecturer on designing of compilers, so I can create any parser (as I see you need not difficult st Lisää

88 $ USD 3 päivässä
(13 arvostelua)
4.0
kkokko555

Hi, Sir. I am glad to bid you. I have rich experience of C++ developing and I have completed a lot. I have just saw your project and I think I can do it perfectly. I have already do such as C++ functions of searchi Lisää

155 $ USD 3 päivässä
(4 arvostelua)
4.5
ranganathp

FREELANCER RECOMMENDED ------------------------------------------------------ Can help... I am an Expert... Lets Start! Please start a Discussion with me and we can get started from there... Please check the past p Lisää

1000 $ USD 10 päivässä
(4 arvostelua)
3.8
244 $ USD 3 päivässä
(2 arvostelua)
3.6
100 $ USD 3 päivässä
(4 arvostelua)
3.4
TopTower22

hello,how are you. i read your bid carefully. i am c/c++ expert and have full experience for 10 years. c++ language is my top skill. i can provide most quality and high speed. if you want to success, please contact Lisää

155 $ USD 3 päivässä
(3 arvostelua)
3.4
155 $ USD 3 päivässä
(3 arvostelua)
3.3
ggiloyan

Hi, I do have deep experience in c++ and sql. I will do this job within 1-2 days. I look forward to hearing from you. Regards, Garnik

50 $ USD 2 päivässä
(1 arvostelu)
2.9
222 $ USD 10 päivässä
(5 arvostelua)
2.5