Devam Ediyor

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

Beceriler: C++ Programlama, SQL

Daha fazlasını görün: c program for binary search using function, binary search function in c, query form sql database to show in textboxs c, query form sql database to show in textboxs c#, vba sql query connection string, sql query search xml files, sql php search function, sql query tree children, sql query tree structure, connection string sql express serviceprovider, sql query child child, sql server search zip code, create query query search results php, asterisk call forward database sql query, sql query tree structure records

İşveren Hakkında:
( 22 değerlendirme ) Mississauga, Canada

Proje NO: #13107565

Seçilen:

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.

1 gün içinde 135$ USD
(17 Değerlendirme)
5.5

26 freelancer bu iş için ortalamada 164$ teklif veriyor

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.

in 2 gün içinde112$ USD
(850 Değerlendirme)
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 Daha fazlası

in 5 gün içinde222$ USD
(57 Değerlendirme)
7.0
in 3 gün içinde147$ USD
(192 Değerlendirme)
6.6
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 Daha fazlası

in 2 gün içinde120$ USD
(68 Değerlendirme)
6.4
in 3 gün içinde155$ USD
(27 Değerlendirme)
5.7
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 Daha fazlası

in 4 gün içinde200$ USD
(78 Değerlendirme)
5.8
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 Daha fazlası

in 3 gün içinde45$ USD
(44 Değerlendirme)
5.1
in 3 gün içinde100$ USD
(53 Değerlendirme)
5.0
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

in 3 gün içinde100$ USD
(11 Değerlendirme)
4.6
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 Daha fazlası

in 3 gün içinde88$ USD
(17 Değerlendirme)
4.2
in 3 gün içinde100$ USD
(10 Değerlendirme)
4.1
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 Daha fazlası

in 5 gün içinde250$ USD
(31 Değerlendirme)
4.4
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 Daha fazlası

in 3 gün içinde155$ USD
(4 Değerlendirme)
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 Daha fazlası

in 10 gün içinde1000$ USD
(4 Değerlendirme)
3.8
in 3 gün içinde155$ USD
(10 Değerlendirme)
4.2
in 10 gün içinde222$ USD
(6 Değerlendirme)
2.9
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

in 2 gün içinde50$ USD
(1 Değerlendirme)
2.9
aramgz

Lot of academics, professors wrote lot of articles, books about translation theory and You want it to have for few hundred dollars in freelance? Seriously?

1 gün içinde 30$ USD
(2 Değerlendirme)
2.6
huongth

Hi. I am an expert in VBA, VBScript, Visual Basic, C#, C++, Delphi, Java, ASP, ASP.NET, Access, MySQL, MSSQL, QuickBooks, Oracle. I can create auto scripts to scrape websites, auto click, format txt, csv, xls, xlsx, do Daha fazlası

in 3 gün içinde150$ USD
(2 Değerlendirme)
2.4
saadq

Hello, Vast C++ programming experience and in addition to this I have done projects in MFC and for that please see my profile. Furthermore,Please see my profile as i Have great ratting and that shows i can delive Daha fazlası

in 3 gün içinde155$ USD
(2 Değerlendirme)
2.0