SQL using SUCH as I get an error

I get the following error:

Run database query error.

Query of queries syntax error.
Meeting 'society' at line 0, column 0. Conditional expression incorrect, incorrect conditional expression, a lexical error at line 0, column 0. ' Met: ' \ ' "(34), after:

The error occurred in C:\Inetpub\wwwroot\ExtranetServices\prc\testing\dump_ticketing_search.cfm: line 13

11: < / cfinvoke >
12: <!-< cfquery datasource = "DB_PREMIER_QA" name = "tb_ftn8_ticket" > - >
13: < cfquery dbtype = "query" name = "tb_ftn8_ticket" >
14: SELECT *.
15: FROM myQuery


--------------------------------------------------------------------------------

SQL SELECT * FROM myQuery WHERE (0 = 0) AND company AS "NETWORK OPTIMAL %.

Please, try the following:

Use single quotes and reject the lines where the company is NULL.


SELECT *.
FROM myQuery
WHERE (0 = 0)
AND the company IS NOT NULL
AND LIKE '% OPTIMAL NETWORK' society

Phil

Tags: ColdFusion

Similar Questions

Maybe you are looking for

  • Connect a printer non-airprint for the Airport express

    Can I use an express train from the airport as a stand-alone wireless network to allow printing from an IOS device.  I want to connect an AirPrint not printer to the usb port on the Express with no ethernet cable is connected and so no internet and u

  • installation ID

    Hello my name is ranjith two days back my laptop was damaged so I alreay taken windows 8 back up.so I reinstall the same .after times the installation it asks installation id .or do you get installation id.i buyed the laptop in shopping.so online ple

  • iTunes cannot be opened while it is being updated

    I use an iMac and upgraded to El Capitan version 10.11.1 a month ago.  Now when I select iTunes I get a box that says "iTunes cannot be opened while it is being updated" (and your only option is to press OK).  This message is constant and never chang

  • is that someone online who can help you

    did not always get sound and system restore

  • HP Envy 5530 won't print computer this weekend.

    HP Envy 5530 won't print computer this weekend.  I turned off and unplugged.  Bought on 25/10/13.  It has happened, but this time cannot operate.  Impressions of my iPad.