Find a duplicate query MySQL syntax

There is a request to "find duplicates" in SQL which is very useful, but I'm not sure what the syntax is for MySQL. It probably has something to do with a distinct group, chosen by but I'm not used to the use of these.

It is he who finds all duplicates [FullName]

SELECT CONTACTS.*
WHERE (((CONTACTS. (FULLNAME) In (SELECT [FULLNAME] [CONTACTS] As Tmp GROUP BY [FULLNAME])
After HAVING Count (*) > 1)))
ORDER OF CONTACTS. FULLNAME, CONTACTS.COMPANY

Anyone know?

RichardODreamweaver wrote:
> There is a request to "find duplicates" in SQL which is very useful, but I don't know
> What's the syntax for MySQL.

SELECT COUNT (*) AS, FULLNAME, COMPANY reps
CONTACTS
GROUP BY FULLNAME, COMPANY
HAVE > 1 repetitions

It is not something that I have used myself, but I got from MySQL Cookbook
by Paul DuBois, published by O'Reilly. I have the first edition, which
covers MySQL 4.0. I think that the second edition covers MySQL 5.0.

If you use MySQL on a regular basis, you or your employer must
Buy immediately. It will be to solve most of your problems and repay its
cost several times.

--
Adobe Community Expert David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/

Tags: Dreamweaver

Similar Questions

  • correct to write this query mysql syntax?

    Hello

    Help to write a mysql should question that I don't have the knowledge to do so.

    I have 2 tables, say table1 and table2.  I want to take (status) column data in table 1 and replace what is in the (state_id) column in table 2.

    Notes:

    The column names do not match.

    I can match the user ID unique from table1 to table2, these are the same.

    I want only to replace data in a few columns, not the entire table, other data must remain unchanged.

    I want to m data in the tables themselves from one to the other, not only compiled as a result of a mysql query.

    Wasn't sure if I should use a merger?  tried several ways but without success.

    any person in charge to write something that I can use?  I'm sure its easy to write, I just can't write advanced queries on top of my head like that :-)

    Okay, it looks like that MySQL does not support the FROM clause in the update instructions. Use a join:

    http://www.electrictoolbox.com/article/MySQL/cross-table-update/

  • find all duplicates

    Hello guys,.

    I want to know how to find all duplicate of a set of data records, in my application a duplicate is a combination of two columns, I do not want to group them, I want to know all the records duplicates


    example of

    CREATE TABLE EMPLOYER
    (
    ID NUMBER (12).
    SSN VARCHAR2 (BYTE 9),
    WGE NUMBER (10,2).
    ERR_flg VARCHAR2 (1 BYTE)
    )

    INSERT INTO EMPLOYER(ID,SSN,WGE) VALUES (1,222222222,2532)
    INSERT INTO EMPLOYER(ID,SSN,WGE) VALUES (2,111111111,2352)
    INSERT INTO EMPLOYER(ID,SSN,WGE) VALUES (3,555555555,232)
    INSERT INTO EMPLOYER(ID,SSN,WGE) VALUES (4,555555555,232)

    3RD AND 4TH RECORDS ARE DUPLICATED... I WANT TO SHOW THEM IN MY QUERY AND UPDATE THE ERR_FLG TO 1


    Thank you

    Hello

    Here's a way to get the results of a query without grouping:

    WITH     got_cnt        AS
    (
         SELECT     id, ssn, wge
         ,     COUNT (*) OVER ( PARTITION BY  ssn
                                  ,            wge
                          ) AS cnt
         FROM    employer
    )
    SELECT     id, ssn, wge
    FROM     got_cnt
    WHERE     cnt     > 1
    ;
    

    Almost all of the functions of aggregation (such as COUNT) have analytical equivalents, which can produce the same results without collapsing the data in one row per group.
    The PARTITION BY an analytical function of clause is the clause GROUP BY of an aggregate query.

    However, the update, what is wrong with grouping?
    You can use something like the query above as a subquery in an UPDATE statement, but you will get the same results more simply with GROUP BY:

    UPDATE  employer
    SET     err_flg     = '1'
    WHERE     (ssn, wge)     IN (
                        SELECT    ssn, wge
                        FROM      employer
                             GROUP BY  ssn, wge
                             HAVING    COUNT (*)     > 1
                               )
    ;
    

    Published by: Frank Kulash, 24 May 2010 15:00
    Additional UPDATE... GROUP BY example

  • find suspected duplicates after importation

    I have about 11 000 photos to organize.  I created a catalog name and chose to ignore suspected duplicates.  About 8 000 photos have been imported.  This is reasonable since I consolidated the photos from backups of two computers and current readers.

    How to find suspected duplicates?  I want to check duplicates and remove all duplicates for free disk space.  How to make the photos were not imported?

    Thank you, in advance, for any assistance.

    Ken

    Hi Ken!

    Lightroom does a pretty decent job find duplicates during the import, but is not as easily that once the images are in the catalog. Take a look at http://www.lightroom-plugins.com/DupesIndex.php. You can try it for free and see if it will help you.

  • Find the sql query in statspack report

    Salvation;
    I have 11.5.10.2 and db version 9iR2... I took a statspack report, and I should find a sql query... But admin, is kill session and I can't see complite sorted SQL query by gets for DB...

    so the question is find this query which is kiiled by admin?

    Thank you

    Hello

    Its bad news to can not find this sql... So normally it istn killed by admin, I could find it from stats$ sql_summary or v$ sql_text?

    It is possible.

    Note: 153507.1 - Applications Oracle StatsPack
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=153507.1

    And another question... If I have a sql printing is eating my cpu or my server resource, how do I find this sql? Under what title I can find in the statspack report

    Refer to:

    Note: 232443.1 - how to identify the resource intensive SQL for Tuning
    https://metalink2.Oracle.com/MetaLink/PLSQL/ml2_documents.showDocument?p_database_id=not&P_ID=232443.1

    Kind regards
    Hussein

  • Export iPhoto and Finder-creates duplicates

    How can I prevent exporters from duplicates of photos version 1.5 to the Finder.  Since I upgraded to El Capitan 10.11.4 whenever I have export photos unmodified to the finder it sends a NEF format version and a version in the form of file JPEF.  The result is that I now have double the photos.  I want only the NEF files.

    I have not found a way to export only the original RAW file.  You will need to simply delete the jpeg version after export.

  • find on a query page breaks

    When you search on a page by using the function FIND of Firefox, it ignores the query on the results page if it is in a link. Example: using Google, Yahoo, Bing, etc, I search for "airplane" (without the quotes). On the results page, I am looking for aircraft. The Firefox FIND function ignores the word "aircraft" if it's in a link. He finds it if it is plain text. I used the safe mode, deleted the cache - not good. Updated 3 addons in need. Check the list of embarrassing addons - none of my friends are on it. I have reset to the default values - no good. Then I copied localstore.rdf and prefs.js to a different location and renamed those in the profile. When I restarted Firefox the problem disappeared, but then where my addons (that's all I noticed;) I've always had my favorites). Then I changed the 2 files their original name. My favorites were back but was the problem. With the help of 3.6.17

    No problem here as long as I can see the text to highlight all find them also all occurrences.

    Make sure that sensitive has not activated (Ctrl + F or Edition > Search)

  • How can I find several duplicate files and remove the using Windows Explorer

    Somehow I see several duplicate on my computer files.  I can tell when they arrived as all the duplicate files ' _10-Mar-15_1. ' " However, I don't know how they arrived.  I think that Google Drive was the culprit, but I can't be sure.

    How we (me) use Windows Explorer to find all files with "_10-Mar-15_1." and delete them all?

    I am using Windows 7 64 bit

    Thank you!!!

    Windows Explorer can do no such thing. To remove recursively a certain file is easy - see below. To identify duplicates and remove some of them is much more difficult, because:

    • Are two files duplicates because
      -They have the same name?
      -They are the same size?
      -They have the same file date?
      -They have the same content?
      -Everything above?
    • When they are, which ones should be deleted?
      -The oldest?
      -The most recent?
      -The batch?

    Here's how to remove a certain file to recursively. Assume that they are in the folder "C:\Users\BHunter\Documents".

    1. Click the start planet.
    2. Type cmd. exe and press ENTER.
    3. Enter the following command and press ENTER:
      dir/s/b/p 'C:\Users\BHunter\Documents\_10-Mar-15_1 '.
      This will show you all the files whose name above.
    4. del /s /q "C:\Users\BHunter\Documents\_10-Mar-15_1."
      This will permanently delete all files with the name above. You cannot restore them.
  • Find tablenames duplicate, or copies of paintings

    Hi all

    I need to find the names of the tables that are recurring in the schema, or should I say tables that have multiple copies as:

    payroll
    payroll_05012014
    payrol_bkp
    payroll_backup
    payroll_bkp05012014

    In this example, the payroll is the original table, and all others are copies of it... Now considering the size of the payroll table 2800 MB, so one can imagine how much space is wasted in this scheme...

    I need the query to find out these backup copied tables...

    Thank you

    Aman

    Maybe this:

    SELECT * from user_tables

    WHERE REGEXP_LIKE (table_name,'*(bkp|backup|\d{8}) _ $')

  • Query SQL syntax - joins

    I hope it's a quick.

    I'm OK with standard inner joins that links the two tables, but what would the syntax to query three supports like this:

    tbl_Nominations

    NominationID (PK)

    Nomination

    LodgeID (foreign key to tbl_Lodges)

    tbl_Lodges

    LodgeID (PK)

    Lodge

    CountryID (Foreign Key to t/l_Countries)

    tbl_Countries

    CountryID

    Country

    Whereas for any given LodgeID I can show:

    Lodge, the appointment and the country?

    Thank you.

    Just to say that I figured it - left outer joins, no outer joins, so:

    SELECT * FROM nominations LEFT OUTER JOIN hosts designations. LodgeID = lodges. LodgeID LEFT OUTER JOIN continents we'RE staying. ContinentID is the continents. ContinentID

    gives me what I was looking for.

  • query MySQL returns a different number of records of coldfusion and navicat

    Hello

    I hope someone can suggest a basic strategy to debug it.

    I have a fairly large and complex question that is run by a function in a cfc.

    (For example), it returns 100 rows.

    If I use cfdump and then copy and paste the SQL of the query (with variables, of course) in Navicat and run exactly the same query on the same mySQL database, it returns 130 lines.

    Even string SQL, the same database, same data - the only difference is that in one instance Navicat submits the request and in the other, Coldfusion doesn't.

    Has anyone already had something like this happen before?

    OK I found the bug mine. Of * course * sql queries were not identical... they might not. My mistake was thinking that they were.

    The problem was part of the WHERE clause:

    AND orderid in (500,503,505)

    In the coldfusion code, it was

    AND orderid in ()

    which of course made in mySQL like AND orderid in ('500,503,505')

    It was not immediately obvious that the cfdump that returns in the form AND orderid in (?) with the variable in the table below.

  • query MySQL (search multiple tables in the database)

    I have 12 tables in a database - January to December.

    I need to find all the tables 'keyworrd' 12 phrases submitted by the user via a search form.

    Need to create a simpler way to do as below with 'UNION '. I have incorporated 2 tables in the query below, but I need a query more "condensed" for all tables of 12?

    $sql = (' SELECT * FROM January WHERE tourTitle = "'.") $keyword. "' UNION SELECT * FROM February WHERE tourTitle = ' '. '" $keyword.' » ") ;

    See you soon

    Operating system

    Booth wrote:

    > That's what I did last year, but thought I would break down this year in 12 easier to work with tables.

    No, Ben is correct. 1 using table for each month is absolutely the wrong way. It violates the basic rules of standardization and causes all sorts of problems.

    > Breaking down appealed to be more so I can keep all these months

    > together instead of potentially become scattered across a table.

    That's what you use the Order By clause for.

    > If by chance the customer says they want to update x, y or z, I can go

    > straight for the month in question, without the need to browse

    > dozens of pages in phpMyAdmin, because there are no real management CMS in place for this process.

    Don't know what you're saying. Performing inserts, updates and queries is much easier using a single table.

    Whenever someone asks for a way to search through more than one table, he told me that the data structure is not well designed.

    When I did this job last year there were about 60 pages created in phpMyAdmin. Records of January could be anywhere on these 60 pages I might add on additional folders much later in the process.

    My thought behind this was to combine all entries of the month so I could view them easily in phpMyAdmin.

    Now, due to my lack of knowledge on phpMyAdmin, it would be possible to create a query to show only entries from January, I suspect that she can do.

    I agree it is much simpler using 1 table to select and browse BUT I need if the opportunity presents itself to be able to view all entries January or February etc. one after another, not 10 on page 2 and 3 on page 7 and 5 more to page 47 of phpMyAdmin.

    So I quess what I really need, it is write a select query in phpMyAdmin that shows only the entries selected for the requested month. I did not much research into what phpMyAdmin can do... so I guess I have to.

    PUBLISHED:

    Arrgh, you see it WAS so SIMPLE:

    SELECT * FROM 'towers' months WHERE = "March".

    It's because I'm afraid of the bloody thing in case I mess up something!

  • Query MySQL do not appear

    I'm building a query simple db using MAMP - PHP/MySQL and have managed to access the DB and am able to query the DB compared to the breast of Recordset links. I have the defined query to locate an ID locator and then go back and see the other two fields - name and expiration date. I am using a configuration of php SUBMIT pointing to a PHP file configured to display results. If I enter an ID (which I know is here) the result window opens to display an empty field.

    Here's the code for subnmit:

    <? php require_once('.. / Connections/Test999.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    $editFormAction = $_SERVER ['PHP_SELF'];

    If (isset {}

    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);

    }

    If ((isset($_POST["MM_update"])) & & ($_POST ["MM_update"] == "form1")) {}

    $updateSQL = sprintf ("UPDATE tblPatients SET name = %s, posted = %s, PatientID = %s WHERE idtblPatients = %s",

    GetSQLValueString ($_POST ['name'], "text").

    GetSQLValueString ($_POST ["' show"], "date").

    GetSQLValueString ($_POST ["'PatientID"], "text").

    GetSQLValueString ($_POST ['idtblPatients'], "int"));

    @mysql_select_db ($database_Test999, $Test999);

    $Result1 = mysql_query ($updateSQL, $Test999) or die (mysql_error ());

    }

    @mysql_select_db ($database_Test999, $Test999);

    $query_Recordset1 = "SELECT * FROM tblPatients";

    $Recordset1 = mysql_query ($query_Recordset1, $Test999) or die (mysql_error ());

    $row_Recordset1 = mysql_fetch_assoc ($Recordset1);

    $totalRows_Recordset1 = mysql_num_rows ($Recordset1);

    # FileName = "Connection_php_mysql.htm"

    # Type = 'MYSQL '.

    # HTTP = 'true '.

    $hostname_Test999 = "localhost";

    $database_Test999 = "xediTHM";

    $username_Test999 = 'root ';

    $password_Test999 = 'root ';

    $Test999 = mysql_pconnect ($hostname_Test999, $username_Test999, $password_Test999) or trigger_error (mysql_error (), E_USER_ERROR);

    mysql_free_result ($Recordset1);

    ? >

    < do action = "<?" PHP echo $editFormAction;? ">" method = "post" name = "form1" id = "form1" >

    < table align = "center" >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > IdtblPatients: < table >

    < td > <? PHP echo $row_Recordset1 ["idtblPatients"];? > < table >

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > name: < table >

    < td > < input type = "text" name = "Name" value = "<?" PHP echo htmlentities ($row_Recordset1 ['name'], ENT_COMPAT, ");? ">" size = "32" / > < table >

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > displayed: < table >

    < td > < input type = "text" name = "Posted" value = "<?" PHP echo htmlentities ($row_Recordset1 ['display'], ENT_COMPAT, ");? ">" size = "32" / > < table >

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > PatientID: < table >

    < td > < input type = "text" name = "PatientID" value = "<?" PHP echo htmlentities ($row_Recordset1 ['PatientID'], ENT_COMPAT, ");? ">" size = "32" / > < table >

    < /tr >

    < tr valign = 'of basic">

    < td nowrap = "nowrap" align = "right" > < table >

    < td > < input type = "submit" value = "Update file" / > < table >

    < /tr >

    < /table >

    < input type = "hidden" name = "MM_update" value = "form1" / >

    < input type = "hidden" name = "idtblPatients" value = "<?" PHP echo $row_Recordset1 ["idtblPatients"];? ">" / >

    < / make >

    < p > < / p >

    Here is the code of the page of query results:

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"

    < title > validate < /title >

    < style type = "text/css" >

    {body

    background-color: #09F;

    }

    < / style >

    < / head >

    < body >

    < table width = "386" border = "1" >

    < b >

    Name < td > < table >

    posted < td > < table >

    < /tr >

    <? PHP {? >}

    < b >

    < height td = "39" > <? PHP echo $row_Recordset88 ['name'];? > < table >

    < td > <? PHP echo $row_Recordset88 ['display'];? > < table >

    < /tr >

    <? PHP} while ($row_Recordset88 = mysql_fetch_array ($Recordset88));? >

    < /table >

    < / body >

    < / html >

    <? PHP

    mysql_free_result ($Recordset88);

    ? >

    <? php require_once('Connections/Test999.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    $maxRows_Recordset88 = 2;

    $pageNum_Recordset88 = 0;

    If (isset($_GET['pageNum_Recordset88'])) {}

    $pageNum_Recordset88 = $_GET ['pageNum_Recordset88'];

    }

    $startRow_Recordset88 = $pageNum_Recordset88 * $maxRows_Recordset88;

    $colname_Recordset88 = "-1";

    If (isset($_GET['PatientID'])) {}

    $colname_Recordset88 = $_GET ["PatientID"];

    }

    @mysql_select_db ($database_Test999, $Test999);

    $query_Recordset88 = sprintf ("" SELECT name, showed WHERE the PatientID = %s tblPatients ", GetSQLValueString ($colname_Recordset88,"text")");

    $query_limit_Recordset88 = sprintf ("%s LIMIT %d, %d", $query_Recordset88, $startRow_Recordset88, $maxRows_Recordset88);

    $Recordset88 = mysql_query ($query_limit_Recordset88, $Test999) or die (mysql_error ());

    $row_Recordset88 = mysql_fetch_array ($Recordset88);

    If (isset($_GET['totalRows_Recordset88'])) {}

    $totalRows_Recordset88 = $_GET ['totalRows_Recordset88'];

    } else {}

    $all_Recordset88 = mysql_query ($query_Recordset88);

    $totalRows_Recordset88 = mysql_num_rows ($all_Recordset88);

    }

    $totalPages_Recordset88 = ceil($totalRows_Recordset88/$maxRows_Recordset88)-1;

    ? >

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

    What is shown is without name and date.

    Dreamweaver1.png

    I'm new to PHP/MySQL any ideas where I made a blunder would be most appreciated.

    Thank you

    Your form is by using the POST method, but you will recover the PatientID using GET. You must use the same method to send and receive.

  • Help query MySQL DW

    I am fairly new to DW and MySQL. I'm developing what I thought was a simple app search and results, but am apparently having a problem of program logic

    I have a form with 2 radio buttons, the code below:

    < name of the form = "card_search" id = "card_search" method = "post" action = "card_search_results.asp" >
    < p >
    < label >
    < input < % if (CStr ((rsCardCatBaseball.Fields.Item("catID").) (Value)) = CStr("1")) then Response.Write ("CHECKED"): Response.Write("") % > type = "radio" name = "RadioGroupCardCat" value = "1" / >
    Baseball < / label >
    < br / >
    < label >
    < input < % if (CStr ((rsCardCatBaseball.Fields.Item("catID").) (Value)) = CStr("2")) then Response.Write ("CHECKED"): Response.Write("") % > type = "radio" name = "RadioGroupCardCat" value = "2" / >
    Football < / label >
    < br / >
    < input name = "submit_card_cat" type = "submit" id = "submit_card_cat" value = "Submit" / >
    < /p >
    < / make >

    When testing using the URL GET param. I see that the RadioGroupCardCat var = 1 (baseball) or RadioGroupCardCat = 2 (football) go directly to the page card_search_results.asp. However, I can't understand how to capture the values of RadioGroupCardCat (1 or 2) in my SQL queries. I currently have 2 recordset of applications (rsCardCatBaseball and rsCardCatFootball) below.

    rsCardCatBaseball:

    SELECT tblcard.cardyear, tblcardvend.vendname, tblcard.cardnum
    OF tblcard, tblcardcat, tblcardvend
    WHERE RadioGroupCardCat = 1 AND tblcardvend.vendid = tblcard.vendid AND tblcardcat.catid = tblcard.catid

    rsCardCatFootball:

    SELECT tblcard.cardyear, tblcardvend.vendname, tblcard.cardnum
    OF tblcard, tblcardcat, tblcardvend
    WHERE RadioGroupCardCat = 2 AND tblcardvend.vendid = tblcard.vendid AND tblcardcat.catid = tblcard.catid

    "catid" corresponds to the field in MySQL table with a value of 1 (baseball) or 2 (football). I am using ASP/VBScript, so here's how the variable is declared in the variable box DW Recordset.

    FOR rsCardCatBaseball:

    NAME
    RadioGroupCardCat

    DEFAULT VALUE
    1

    RUNNING VALUE
    Request ("CATID")

    For rsCardCatFootball:

    NAME
    RadioGroupCardCat

    DEFAULT VALUE
    2

    RUNNING VALUE
    Request ("CATID")

    The problem is that I get the same results for both queries. The rsCardCatFootball query results are identicle to the rsCardCatBaseball query. Don't I just assumed to have 2 recordsets separate in the results page so that it went from a value and other RS Gets the value else? Any help is appreciated. Thank you.

    Thanks for the reply. I finally found the answer to my question at:

    http://www.Adobe.com/support/UltraDev/building/multiple_param_search/multiple_param_search 05.Marco html

    The declaration of variable in my SQL and DW statement were incorrect. I highly recommend the tutorial above for everyone new to DW and MySQL. The link above specifically explains how to create a variable to be used in a DW/MySQl app. thank you!

  • in the query expression syntax error

    I get the following error message:

    Microsoft] [ODBC Microsoft Access driver] syntax error (missing operator) in query expression 'customerid_cus ='.

    for the following code:

    If IsEmpty (Request.Form("company_cus")) then

    rs_company. Source = "SELECT customerid_cus, company_cus FROM customers_cus WHERE customerid_cus =" & Request.QueryString ("customerid") & "". "

    On the other

    rs_company. "Source =" SELECT customerid_cus, company_cus FROM customers_cus WHERE company_cus = ' "& Request.Form ("company_cus") &" "'"

    End If

    What could be the problem?

    Are you sure that you pass the customerid querystring when the form
    company_cus is empty.

    --
    Paul Whitham
    Certified Professional Dreamweaver MX2004
    Adobe Community Expert - Dreamweaver

    Valleybiz Web design
    www.valleybiz.NET

    "aonefun" wrote in message
    News:epmf3n$f3u$1@forums. Macromedia.com...
    > I get the following error message:
    >
    [> Microsoft] [ODBC Microsoft Access driver] Syntax error (missing operator)
    > in
    > query expression 'customerid_cus ='.
    >
    > to the following code:
    >
    > If IsEmpty (Request.Form ("company_cus")) then
    >
    > rs_company. Source = "SELECT customerid_cus, company_cus FROM".
    > customers_cus
    "> WHERE customerid_cus =" & Request.QueryString ("customerid") & ""
    >
    > Other
    >
    > rs_company. Source = "SELECT customerid_cus, company_cus FROM".
    > customers_cus
    > WHERE company_cus = ' "& Request.Form ("company_cus") &" ' "
    >
    > End If
    >
    > What could be the problem?
    >

Maybe you are looking for

  • Missing emoticons

    for awhile there I literally lose all my emoticons are not yet on my keyboard nor and tried for centuries to recover, but I don't know why or how they simply disappeared...

  • Connect the iPod to the stereo

    I want to connect an iPod to my stereo amp. I thought I could do this using a dock, but it seems that these become obsolete. I have music in iTunes and on an external drive separated as mp3 files. I have to use streaming using the network home?

  • HP Officejet Pro 6830: HP Officejet Pro 6830 - update Windows 10

    I have several devices in my house (desktops, laptops, tablets, smartphones, etc.). They all run on different OS from Windows Vista to Windows 8.1. Recently, Microsoft offers the Windows 10 upgrade free. I bought a new all-in-one printer for my home

  • CD and DVD no longer works, code 19

    CD players and DVD has stopped working. In Device Manager, I get the following: "can I cannot start this hardware device because its configuration (in the registry) is incomplete or damaged (code19).»

  • Portrait setting do not get blurred background

    I have an eos rebel t3i. I am trying to use the portrait to a crisp in the head with a blurred background and it doesn't work. Any suggestions?