<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
  <channel>
    <title>MySQL</title>
    <description>The world's most popular open source database engine.</description>
    <pubDate>Sun, 08 Mar 2026 03:58:36 +0000</pubDate>
    <lastBuildDate>Sun, 08 Mar 2026 03:58:36 +0000</lastBuildDate>
    <generator>Digital Point</generator>
    <link>https://forums.digitalpoint.com/forums/mysql.108/</link>
    <atom:link rel="self" type="application/rss+xml" href="https://forums.digitalpoint.com/forums/mysql.108/index.rss"/>
    <item>
      <title>Why do these 2 queries return different numbers?</title>
      <pubDate>Thu, 26 Jun 2025 10:18:11 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/why-do-these-2-queries-return-different-numbers.2883512/</link>
      <guid>https://forums.digitalpoint.com/threads/why-do-these-2-queries-return-different-numbers.2883512/</guid>
      <author>invalid@example.com (SoftLink)</author>
      <dc:creator>SoftLink</dc:creator>
      <content:encoded><![CDATA[These 2 queries look the same to me logically yet they return different numbers.<br />
The first query (which is *very* slow) produces the correct number.<br />
<br />
The query I use will be used repeatedly in a report where these values will change per iteration:<br />
TABLE2ID = 2 or tblRec1.RecordID = 2<br />
and<br />
lnk_fuel_type = 1 or tblRec2.RecordID = 1<br />
<br />
<b><span style="color: #b30000">Why do these 2 queries return different numbers?</span></b><br />
<br />





<div class="bbCodeBlock bbCodeCode">
	<pre class="line-numbers"><code class="language-markup" data-start="1">SELECT COUNT(DISTINCT surveys.RecordID)
FROM answers INNER JOIN surveys ON...</code></pre>
	<div class="type">Code (markup):</div>
</div><a href="https://forums.digitalpoint.com/threads/why-do-these-2-queries-return-different-numbers.2883512/" target="_blank" class="internalLink">Why do these 2 queries return different numbers?</a>]]></content:encoded>
      <slash:comments>6</slash:comments>
    </item>
    <item>
      <title>How to modify MySQL/MariaDB .sql export file not breaking character/set?</title>
      <pubDate>Thu, 10 Apr 2025 13:07:01 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/how-to-modify-mysql-mariadb-sql-export-file-not-breaking-character-set.2882850/</link>
      <guid>https://forums.digitalpoint.com/threads/how-to-modify-mysql-mariadb-sql-export-file-not-breaking-character-set.2882850/</guid>
      <author>invalid@example.com (postcd)</author>
      <dc:creator>postcd</dc:creator>
      <content:encoded><![CDATA[Hello, please how to properly modify MySQL database export file .sql so the character set is not changed/content is not broken after saving/importing the modified file?<br />
<br />
I have opened the file in Linux editor Kate and saved a modified copy of the file with default UTF-8 charset, then uploaded the file to the new database using PHPMyAdmin (while left selected default utf-8 charset of the file) or using BigDump php script. In both cases the charset was likely wrong, since CMS errored, saying...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/how-to-modify-mysql-mariadb-sql-export-file-not-breaking-character-set.2882850/" target="_blank" class="internalLink">How to modify MySQL/MariaDB .sql export file not breaking character/set?</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>MySQL calculator tools</title>
      <pubDate>Wed, 04 Dec 2024 10:33:26 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/mysql-calculator-tools.2881744/</link>
      <guid>https://forums.digitalpoint.com/threads/mysql-calculator-tools.2881744/</guid>
      <author>invalid@example.com (EdZzy)</author>
      <dc:creator>EdZzy</dc:creator>
      <content:encoded><![CDATA[I&#039;m looking for tools to optimize MySQL memory settings, particularly for calculating my.cnf memory usage and tuning parameters like innodb_buffer_pool_size and query_cache_size.<br />
<br />
Do you have any preferred solutions that offer features or insights beyond what mysqlcalculator.com provides?<br />
<br />
Thank you!]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>PDO slow connection to MySQL database</title>
      <pubDate>Thu, 22 Aug 2024 09:25:45 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/pdo-slow-connection-to-mysql-database.2881089/</link>
      <guid>https://forums.digitalpoint.com/threads/pdo-slow-connection-to-mysql-database.2881089/</guid>
      <author>invalid@example.com (qwikad.com)</author>
      <dc:creator>qwikad.com</dc:creator>
      <content:encoded><![CDATA[I tried some of the solutions I found online (like changing localhost to 127.0.0.1) but nothing sped it up. Any ideas why it is slow? On average it&#039;s 2 seconds slower compared to my mysqli connections.<br />
<br />





<div class="bbCodeBlock bbCodeCode">
	<pre class="line-numbers"><code class="language-markup" data-start="1">try{
$pdo = new PDO(&quot;mysql:host=$db_host;dbname=$db_name&quot;, $db_user, $db_pass);
}
catch(PDOException $e) {
echo &#039;&#039;.$e-&gt;getMessage();
}</code></pre>
	<div class="type">Code (markup):</div>
</div>]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE)</title>
      <pubDate>Fri, 03 May 2024 20:25:31 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/illegal-mix-of-collations-latin1_swedish_ci-implicit-and-utf8mb4_general_ci-coercible.2880438/</link>
      <guid>https://forums.digitalpoint.com/threads/illegal-mix-of-collations-latin1_swedish_ci-implicit-and-utf8mb4_general_ci-coercible.2880438/</guid>
      <author>invalid@example.com (postcd)</author>
      <dc:creator>postcd</dc:creator>
      <content:encoded><![CDATA[Hello, the CMS is running a SQL in MariaDB 10.6.17-MariaDB-cll-lve<br />
SELECT tagid, tagtext, canonicaltagid, dateline FROM tag WHERE tagtext = &#039;z�cpa&#039;;<br />
<br />
which results in:<br />
<b>Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE)</b> for operation &#039;=&#039;<br />
<br />
tagtext is varchar(100) latin1_swedish_ci<br />
Server charset: cp1252 West European (latin1) <br />
<br />
Inside a CMS control panel, I have recently set an UTF-8 charset (because original ISO* one started displaying bad...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/illegal-mix-of-collations-latin1_swedish_ci-implicit-and-utf8mb4_general_ci-coercible.2880438/" target="_blank" class="internalLink">Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE)</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Data Limits</title>
      <pubDate>Wed, 06 Sep 2023 14:08:56 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/data-limits.2878535/</link>
      <guid>https://forums.digitalpoint.com/threads/data-limits.2878535/</guid>
      <author>invalid@example.com (Jeremy Benson)</author>
      <dc:creator>Jeremy Benson</dc:creator>
      <content:encoded><![CDATA[I&#039;m sure this has been done, but I need to get my head around limitations of a DB. I&#039;ve done searches in the past that said 1.5gb db limit. Limits can be set by a provider, I&#039;m guessing they modify open source code? ect ect.<br />
<br />
I can&#039;t use xml for my game project. I don&#039;t want to start with mysql if it can&#039;t complete the job. My worry is having many weapons crafted, with big descriptions, and getting an error &#039;mysql is done storing data, you got too much, sorry, your project is cooked.&#039; lol....<br />
<br />
<a href="https://forums.digitalpoint.com/threads/data-limits.2878535/" target="_blank" class="internalLink">Data Limits</a>]]></content:encoded>
    </item>
    <item>
      <title>How can I remove all ocurance of , and I from a string using REGEXP_REPLACE in mysql-10.4.24-MariaDB</title>
      <pubDate>Mon, 16 Jan 2023 00:02:22 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/how-can-i-remove-all-ocurance-of-and-i-from-a-string-using-regexp_replace-in-mysql-10-4-24-mariadb.2876491/</link>
      <guid>https://forums.digitalpoint.com/threads/how-can-i-remove-all-ocurance-of-and-i-from-a-string-using-regexp_replace-in-mysql-10-4-24-mariadb.2876491/</guid>
      <author>invalid@example.com (asifakhtar)</author>
      <dc:creator>asifakhtar</dc:creator>
      <content:encoded><![CDATA[How can I remove all occurrence of , and I from a string using REGEXP_REPLACE? Tried the following but it doesn&#039;t work<br />
<br />
regexp_replace(&#039;123,|4abcd, aaa|,qqq|a&#039;, &#039;|,&#039;, &#039;&#039;, &#039;g&#039;)]]></content:encoded>
    </item>
    <item>
      <title>Can we extract max value using regexp_substr in mysql?</title>
      <pubDate>Wed, 14 Dec 2022 20:45:40 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/can-we-extract-max-value-using-regexp_substr-in-mysql.2876239/</link>
      <guid>https://forums.digitalpoint.com/threads/can-we-extract-max-value-using-regexp_substr-in-mysql.2876239/</guid>
      <author>invalid@example.com (asifakhtar)</author>
      <dc:creator>asifakhtar</dc:creator>
      <content:encoded><![CDATA[I get a dynamic string with values separated by comma. Need to extract max value using regexp_substr.<br />
<br />
e.g &quot;55,222,3,4000,10&quot; I need to extract 4000 in the above case using regex in MySQL.]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>How can I extract address, city, state and Postal code from a text separated by * using REGEXP_SUBST</title>
      <pubDate>Thu, 17 Nov 2022 14:55:14 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/how-can-i-extract-address-city-state-and-postal-code-from-a-text-separated-by-using-regexp_subst.2876000/</link>
      <guid>https://forums.digitalpoint.com/threads/how-can-i-extract-address-city-state-and-postal-code-from-a-text-separated-by-using-regexp_subst.2876000/</guid>
      <author>invalid@example.com (asifakhtar)</author>
      <dc:creator>asifakhtar</dc:creator>
      <content:encoded><![CDATA[REGEXP_SUBSTR(&#039;4550 Montgomery Avenue*Toronto*Ontario*M4A 2S3*&#039;, &#039;(.*? ){2}(.*?),&#039;)<br />
<br />
I get a list of dynamic text which contains address, city, state and Postal code separated by *. Need to exact address, city, state and Postal code using REGEXP_SUBSTR.]]></content:encoded>
    </item>
    <item>
      <title>Convert mysql files to .sql files</title>
      <pubDate>Mon, 06 Jun 2022 22:17:37 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/convert-mysql-files-to-sql-files.2868913/</link>
      <guid>https://forums.digitalpoint.com/threads/convert-mysql-files-to-sql-files.2868913/</guid>
      <author>invalid@example.com (countrydj)</author>
      <dc:creator>countrydj</dc:creator>
      <content:encoded><![CDATA[My databases are all mysql. They are stored as databse directory, and database.frm, database.MYD, database.MYI.<br />
I need to convert tese to .sql in order to upload to another provider.<br />
Can anybody tell me how to do it.<br />
Thankyou, John C]]></content:encoded>
      <slash:comments>6</slash:comments>
    </item>
    <item>
      <title>Getting sum of TIMESTAPMDIFF</title>
      <pubDate>Fri, 08 Apr 2022 01:26:40 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/getting-sum-of-timestapmdiff.2874220/</link>
      <guid>https://forums.digitalpoint.com/threads/getting-sum-of-timestapmdiff.2874220/</guid>
      <author>invalid@example.com (neilfurry)</author>
      <dc:creator>neilfurry</dc:creator>
      <content:encoded><![CDATA[Hi,<br />
<br />
Im getting &quot;1111 - Invalid use of group function&quot; error on this function SUM(TIMESTAMPDIFF(HOUR,MIN(logDateTime),MAX(logDateTime))-1) as `rendered`<br />
<br />
is there a turn around on how to fix this problem?<br />
<br />
here is my full query:<br />
<br />
SELECT MIN(logDateTime) as `login`, MAX(logDateTime) as`logout`, SUM(TIMESTAMPDIFF(HOUR,MIN(logDateTime),MAX(logDateTime))-1) as `rendered` FROM btms_attendance WHERE `number`=1 AND (DATE(logDateTime)&gt;=&#039;2022-03-01&#039; AND DATE(logDateTime)&lt;=&#039;2022-03-31&#039;) GROUP BY...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/getting-sum-of-timestapmdiff.2874220/" target="_blank" class="internalLink">Getting sum of TIMESTAPMDIFF</a>]]></content:encoded>
    </item>
    <item>
      <title>mySQL output as JSON not gathering all rows</title>
      <pubDate>Tue, 08 Feb 2022 23:37:13 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/mysql-output-as-json-not-gathering-all-rows.2873449/</link>
      <guid>https://forums.digitalpoint.com/threads/mysql-output-as-json-not-gathering-all-rows.2873449/</guid>
      <author>invalid@example.com (Stealthrtt)</author>
      <dc:creator>Stealthrtt</dc:creator>
      <content:encoded><![CDATA[Hey all the example below is what I currently get when I run the query below:<br />





<div class="bbCodeBlock bbCodeCode">
	<pre class="line-numbers"><code class="language-markup" data-start="1">
{
  &quot;data&quot;: [{
                &quot;id&quot;: &quot;546789434&quot;,
                &quot;photo&quot;: &quot;rru7ehklu.jpg&quot;
             }, {
                &quot;id&quot;: &quot;546789434&quot;,
                &quot;photo&quot;: &quot;934bu9rg9w3rg.jpg&quot;
             },
              ..........
             {
                &quot;id&quot;: &quot;546789434&quot;,
                &quot;photo&quot;: &quot;er6u57kerethu]}
</code></pre>
	<div class="type">Code (markup):</div>
</div>Using this query here:<br />





<div class="bbCodeBlock bbCodeCode">
	<pre class="line-numbers"><code class="language-sql" data-start="1">SELECT
    CONCAT(&quot;{&quot;&quot;data&quot;&quot;: [&quot;,...</code></pre>
	<div class="type">Code (SQL):</div>
</div><a href="https://forums.digitalpoint.com/threads/mysql-output-as-json-not-gathering-all-rows.2873449/" target="_blank" class="internalLink">mySQL output as JSON not gathering all rows</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>How to select specific fields from pivot table that matches exact values</title>
      <pubDate>Mon, 06 Dec 2021 19:05:35 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/how-to-select-specific-fields-from-pivot-table-that-matches-exact-values.2873190/</link>
      <guid>https://forums.digitalpoint.com/threads/how-to-select-specific-fields-from-pivot-table-that-matches-exact-values.2873190/</guid>
      <author>invalid@example.com (Kuna)</author>
      <dc:creator>Kuna</dc:creator>
      <content:encoded><![CDATA[I have 3 tables<br />
- conversations - I save basic information about the conversation<br />
- users - Infor about user<br />
- conversation_users - table that saves information about which user belongs to which conversation<br />
<br />
In my case user &quot;1&quot; wants to get a conversation between him and users: 3, 4, 5. So I&#039;m trying to fetch conversation_id = 12. First I need to find all conversations user &quot;1&quot; belongs to, that is conversation_id &quot;1&quot; and &quot;12&quot;.<br />
<br />
Next I&#039;m executing `SELECT * FROM conversations_users WHERE...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/how-to-select-specific-fields-from-pivot-table-that-matches-exact-values.2873190/" target="_blank" class="internalLink">How to select specific fields from pivot table that matches exact values</a>]]></content:encoded>
    </item>
    <item>
      <title>Table joins</title>
      <pubDate>Sat, 13 Nov 2021 00:12:45 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/table-joins.2872846/</link>
      <guid>https://forums.digitalpoint.com/threads/table-joins.2872846/</guid>
      <author>invalid@example.com (neilfurry)</author>
      <dc:creator>neilfurry</dc:creator>
      <content:encoded><![CDATA[Hi,<br />
<br />
I need some advice please. I need to join two tables together. <br />
Here is my Table A.<br />


	<a href="https://forums.digitalpoint.com/attachments/267194/" target="_blank">View attachment 267194</a>
	
<br />
<br />
I have this Table B<br />


	<a href="https://forums.digitalpoint.com/attachments/267195/" target="_blank">View attachment 267195</a>
	
<br />
<br />
and here is the result i expected<br />


	<a href="https://forums.digitalpoint.com/attachments/267196/" target="_blank">View attachment 267196</a>
	
<br />
<br />
You will see on the result table i want to maintain the exact number of rows from Table A and if rating is not available for certain person from Table B, it will just be NULL.<br />
<br />
Thank you in advance.]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>New tables for each day, week, month.</title>
      <pubDate>Thu, 12 Aug 2021 20:45:02 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/new-tables-for-each-day-week-month.2871971/</link>
      <guid>https://forums.digitalpoint.com/threads/new-tables-for-each-day-week-month.2871971/</guid>
      <author>invalid@example.com (fryertuk)</author>
      <dc:creator>fryertuk</dc:creator>
      <content:encoded><![CDATA[Hello i have an web app that i have been building for the past couple of years.<br />
Its main role is to record employees attendances and there jobs during the day and then for the office<br />
staff to calculate pays and hours worked on jobs by multiple jobs.<br />
Also the office can see who is workin on what etc.<br />
<br />
At the moment each activity if it be logging on or logging off or starting a job or finishing a job or going to lunch or finishing lunch etc.<br />
This web app will be on the local Lan only.<br />
These...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/new-tables-for-each-day-week-month.2871971/" target="_blank" class="internalLink">New tables for each day, week, month.</a>]]></content:encoded>
      <slash:comments>4</slash:comments>
    </item>
    <item>
      <title>How to transpose rows to column</title>
      <pubDate>Mon, 07 Jun 2021 02:21:44 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/how-to-transpose-rows-to-column.2871309/</link>
      <guid>https://forums.digitalpoint.com/threads/how-to-transpose-rows-to-column.2871309/</guid>
      <author>invalid@example.com (neilfurry)</author>
      <dc:creator>neilfurry</dc:creator>
      <content:encoded><![CDATA[hi,<br />
<br />
can you help me transpose this table:<br />
<br />


	<a href="https://forums.digitalpoint.com/attachments/264846/" target="_blank">View attachment 264846</a>
	
<br />
<br />
into this output in mysql<br />
<br />


	<a href="https://forums.digitalpoint.com/attachments/264847/" target="_blank">View attachment 264847</a>
	
<br />
<br />
Where p1, p2 .... is the number of panelist which is undetermined/dynamic.<br />
<br />
Thank you in advance.]]></content:encoded>
    </item>
    <item>
      <title>Problem returning result</title>
      <pubDate>Tue, 23 Feb 2021 17:22:38 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/problem-returning-result.2870191/</link>
      <guid>https://forums.digitalpoint.com/threads/problem-returning-result.2870191/</guid>
      <author>invalid@example.com (hugoscp)</author>
      <dc:creator>hugoscp</dc:creator>
      <content:encoded><![CDATA[Hello,<br />
I have this query:<br />
<br />
select e.quantity, rl.quantity<br />
from logistics_inout.reception r<br />
left join logistics_inout.reception_line rl on<br />
rl.reception_id = r.id<br />
left join logistics_inout.reception_documents rd on<br />
r.id = rd.reception_id<br />
left join logistics_inout.document_line e on<br />
rd.documents_id = e.document_id<br />
where rl.reception_id = 5738<br />
and rl.product_id = 20992<br />
and e.product_id = 20992<br />
<br />
the result is:<br />
<br />
quantity quantity_1<br />
16.00 1.00<br />
4.00 1.00<br />
16.00 1.00<br />
4.00 1.00<br />
16.00 1.00<br />
4.00 1.00...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/problem-returning-result.2870191/" target="_blank" class="internalLink">Problem returning result</a>]]></content:encoded>
    </item>
    <item>
      <title>MySQL no rows return in query</title>
      <pubDate>Thu, 07 Jan 2021 08:28:38 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/mysql-no-rows-return-in-query.2869471/</link>
      <guid>https://forums.digitalpoint.com/threads/mysql-no-rows-return-in-query.2869471/</guid>
      <author>invalid@example.com (Toe Toe Aung)</author>
      <dc:creator>Toe Toe Aung</dc:creator>
      <content:encoded><![CDATA[I am encountering that there is no rows return in mysql query. How to resolve this issue? I started to use mysql recently and no answer found it yet.<br />
<br />


	<a href="https://forums.digitalpoint.com/attachments/261277/" target="_blank">View attachment 261277</a>]]></content:encoded>
    </item>
    <item>
      <title>Get results NOT in 2 tables - a little lost!</title>
      <pubDate>Sat, 26 Dec 2020 16:42:43 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/get-results-not-in-2-tables-a-little-lost.2869312/</link>
      <guid>https://forums.digitalpoint.com/threads/get-results-not-in-2-tables-a-little-lost.2869312/</guid>
      <author>invalid@example.com (medialab)</author>
      <dc:creator>medialab</dc:creator>
      <content:encoded><![CDATA[Hey Everyone,<br />
<br />
I am having an issues getting results from a JOINED table, any help would be greatly appreciated. I have 2 tables, and I need to grab results where a user has NOT answered a question:<br />
<br />
questions (table)<br />
<br />
 ------------------------------<br />
| question_id    | active   |<br />
 ------------------------------<br />
| 123456          | 1         |<br />
 ------------------------------<br />
| 123457          | 1         |<br />
 ------------------------------<br />
| 123458          | 1         |...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/get-results-not-in-2-tables-a-little-lost.2869312/" target="_blank" class="internalLink">Get results NOT in 2 tables - a little lost!</a>]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>Insert variable</title>
      <pubDate>Fri, 18 Dec 2020 17:20:38 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/insert-variable.2869234/</link>
      <guid>https://forums.digitalpoint.com/threads/insert-variable.2869234/</guid>
      <author>invalid@example.com (BubikolRamios)</author>
      <dc:creator>BubikolRamios</dc:creator>
      <content:encoded><![CDATA[So, this works and as you see it produces -1,-2,......<br />
If I insert<br />



<div class="bbCodeBlock bbCodeQuote">
	<aside>
		
		<blockquote class="quoteContainer"><div class="quote">INSERT INTO tezaver_taxonomy (id_tezaver,`level`,level_name,term,`source`)</div><div class="quoteExpand">Click to expand...</div></blockquote>
	</aside>
</div>after SET line.... <br />



<div class="bbCodeBlock bbCodeQuote">
	<aside>
		
		<blockquote class="quoteContainer"><div class="quote">/* SQL Error (1062): Duplicate entry &#039;2-0&#039; for key &#039;PRIMARY&#039; */</div><div class="quoteExpand">Click to expand...</div></blockquote>
	</aside>
</div>Hmm looks like all -1,-2,... becomes 0 or what ?<br />
<br />
<img src="proxy/w8329HQ4La78IyO1zmVzOYXBRZadr6UGE0CHbvB5ViBYKizj%2BxLam8DAM6dMCf8Qt8mkW8fefjmVrxSIX42RIG95r1hTExW6q0w%2BF0L0CXVT/image.png" class="bbCodeImage LbImage" alt="[&#x200B;IMG]" data-url="http://shrani.si/f/3B/7w/3w3N8BoN/tmp.jpg" />]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>How to set the innoDB limit to a larger value.</title>
      <pubDate>Fri, 18 Dec 2020 02:59:41 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/how-to-set-the-innodb-limit-to-a-larger-value.2869233/</link>
      <guid>https://forums.digitalpoint.com/threads/how-to-set-the-innodb-limit-to-a-larger-value.2869233/</guid>
      <author>invalid@example.com (tommytx)</author>
      <dc:creator>tommytx</dc:creator>
      <content:encoded><![CDATA[I was having trouble importing one table in my huge Mysql import and it kept telling me that my table is too long.. After some research i found that in the Maria Db there is an ini file that you can set it to anything your little heart desires... So I changed it and all is well i can now load huge table widths with tons of colums.. no longer exceeding the 8,164 tables which is the normal setting but low and behold when i went to look for my ini file on the web so I could go live and not run...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/how-to-set-the-innodb-limit-to-a-larger-value.2869233/" target="_blank" class="internalLink">How to set the innoDB limit to a larger value.</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>How should I understand all of these letters for this query?</title>
      <pubDate>Tue, 08 Dec 2020 21:57:33 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/how-should-i-understand-all-of-these-letters-for-this-query.2869062/</link>
      <guid>https://forums.digitalpoint.com/threads/how-should-i-understand-all-of-these-letters-for-this-query.2869062/</guid>
      <author>invalid@example.com (JoshuaEir)</author>
      <dc:creator>JoshuaEir</dc:creator>
      <content:encoded><![CDATA[I am working on SQL bridge tables.  How do I understand this query?  I don&#039;t understand all of the letters.  Thanks a bunch.<br />
<br />
Josh]]></content:encoded>
      <slash:comments>6</slash:comments>
    </item>
    <item>
      <title>What is wrong with this query?</title>
      <pubDate>Fri, 16 Oct 2020 00:29:23 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/what-is-wrong-with-this-query.2868427/</link>
      <guid>https://forums.digitalpoint.com/threads/what-is-wrong-with-this-query.2868427/</guid>
      <author>invalid@example.com (Richb201)</author>
      <dc:creator>Richb201</dc:creator>
      <content:encoded><![CDATA[I have a table called survey_results. It has  fields called item and also user_email. I have another table called business_components and it has  fields called bus_comp and qualified. For each item in survey_results I want to count the number of rows in business_components where the business_components.bus_comp=survey_result.item AND business_components.qualified=&quot;yes&quot;.  Here is what I came up with:<br />
<br />
SELECT  sr.user_email,COUNT(bc.bus_comp) FROM survey_results sr, business_components bc...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/what-is-wrong-with-this-query.2868427/" target="_blank" class="internalLink">What is wrong with this query?</a>]]></content:encoded>
      <slash:comments>4</slash:comments>
    </item>
    <item>
      <title>Working with Aiven to connect PostgreSQL and mySQL?</title>
      <pubDate>Wed, 30 Sep 2020 10:16:48 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/working-with-aiven-to-connect-postgresql-and-mysql.2868232/</link>
      <guid>https://forums.digitalpoint.com/threads/working-with-aiven-to-connect-postgresql-and-mysql.2868232/</guid>
      <author>invalid@example.com (lildevil)</author>
      <dc:creator>lildevil</dc:creator>
      <content:encoded><![CDATA[Hello to you all!<br />
<br />
I have been using PostgreSQL to organize my data since I can remember. But since I&#039;m not completely satisfied with the functions, I&#039;ve been thinking about switching to mySQL for a while. <br />
What are the advantages of MySQL compared to other databases?<br />
<br />
I would also like to connect my databases to save myself work. I have heard that the provider Aiven should make this possible. Have you ever worked with Aiven for mySQL and can you tell me about your experiences?<br />
<br />
I would be...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/working-with-aiven-to-connect-postgresql-and-mysql.2868232/" target="_blank" class="internalLink">Working with Aiven to connect PostgreSQL and mySQL?</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>private $query = "";  --&gt;  syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION...</title>
      <pubDate>Mon, 28 Sep 2020 16:00:51 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/private-query-syntax-error-unexpected-t_string-expecting-t_old_function.2868177/</link>
      <guid>https://forums.digitalpoint.com/threads/private-query-syntax-error-unexpected-t_string-expecting-t_old_function.2868177/</guid>
      <author>invalid@example.com (postcd)</author>
      <dc:creator>postcd</dc:creator>
      <content:encoded><![CDATA[Hello dear MySQL developers, i am mere user and i want to ask you if you can please let me know what is wrong in the file <a href="https://bin.disroot.org/?2231e9fd5cc44ae2#7CU9uTMYAbucDf9buFj3JN1Wbn4HTDnhHiHYT4ANF6yz" target="_blank" class="externalLink" rel="nofollow">backend/mysql.class.php</a><br />
<br />
I am asking because the script i have uploaded says this:<br />



<div class="bbCodeBlock bbCodeQuote">
	<aside>
		
		<blockquote class="quoteContainer"><div class="quote"><b>Parse error</b>: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or &#039;}&#039; in <b>/backend/mysql.class.php</b> on line <b>23</b></div><div class="quoteExpand">Click to expand...</div></blockquote>
	</aside>
</div>Line 23 is:...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/private-query-syntax-error-unexpected-t_string-expecting-t_old_function.2868177/" target="_blank" class="internalLink">private $query = &quot;&quot;;  --&gt;  syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION...</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>How will this query be rewritten using JOIN?</title>
      <pubDate>Wed, 16 Sep 2020 01:30:12 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/how-will-this-query-be-rewritten-using-join.2868055/</link>
      <guid>https://forums.digitalpoint.com/threads/how-will-this-query-be-rewritten-using-join.2868055/</guid>
      <author>invalid@example.com (JEET)</author>
      <dc:creator>JEET</dc:creator>
      <content:encoded><![CDATA[How will this query be rewritten using JOIN?<br />
<br />
There are 4 tables at least, like these:<br />
<br />
1. PostsTable<br />
pid, stat, title, etc etc<br />
<br />
2. tagsTable<br />
id, pid, tag<br />
<br />
3. profilesTable<br />
profileID, username, etc etc<br />
<br />
4. ratingsTable<br />
id, pid, profileID, etc etc<br />
<br />
Currently am using:<br />
<br />
select something something <br />
from postsTable as p, profilesTable as pr, ratingsTable as r, tagsTable as t <br />
where<br />
p.stat=&#039;y&#039; and <br />
t.pid = p.pid and <br />
r.pid = p.pid and <br />
pr.profileID = r.profileID<br />
<br />
&quot;something something&quot; are columns...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/how-will-this-query-be-rewritten-using-join.2868055/" target="_blank" class="internalLink">How will this query be rewritten using JOIN?</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>field with individual data type possible? (mySQL, MariaDB)</title>
      <pubDate>Tue, 15 Sep 2020 08:55:07 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/field-with-individual-data-type-possible-mysql-mariadb.2867927/</link>
      <guid>https://forums.digitalpoint.com/threads/field-with-individual-data-type-possible-mysql-mariadb.2867927/</guid>
      <author>invalid@example.com (iago111)</author>
      <dc:creator>iago111</dc:creator>
      <content:encoded><![CDATA[Hello, I would like to create a table and incorporate an indivudal data typa: eg.: datatype &#039;state&#039; with values like { &#039;pending&#039;, &#039;confirmed&#039;,&#039;declined&#039; } How can I do this? Thanks!]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>How combine these queries</title>
      <pubDate>Wed, 24 Jun 2020 19:48:28 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/how-combine-these-queries.2866950/</link>
      <guid>https://forums.digitalpoint.com/threads/how-combine-these-queries.2866950/</guid>
      <author>invalid@example.com (Rozard Dard)</author>
      <dc:creator>Rozard Dard</dc:creator>
      <content:encoded><![CDATA[Hi All, <br />
Here are queries,<br />
&quot;select * from product WHERE LastName like concat(?, &#039;%&#039;)&quot; <br />
&quot;Select concat(FirstName, &#039; &#039; , LastName) as FullName, Product_id from Customer join product where customerId = id&quot;<br />
Above both queries working individually fine when I tried to combine these, I can&#039;t get any results. <br />
I want to combine the above two queries, where the user gives input &quot;Full Name&quot; and it should display the result. <br />
<br />
My second question is how to populate match results, I mean when users...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/how-combine-these-queries.2866950/" target="_blank" class="internalLink">How combine these queries</a>]]></content:encoded>
      <slash:comments>5</slash:comments>
    </item>
    <item>
      <title>MySQL clients for iPhone, iPad and macOS</title>
      <pubDate>Mon, 18 May 2020 16:55:24 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/mysql-clients-for-iphone-ipad-and-macos.2866316/</link>
      <guid>https://forums.digitalpoint.com/threads/mysql-clients-for-iphone-ipad-and-macos.2866316/</guid>
      <author>invalid@example.com (niklassaers)</author>
      <dc:creator>niklassaers</dc:creator>
      <content:encoded><![CDATA[Hi all,<br />
I&#039;m very happy to say that I&#039;ve made a MySQL database client called MySQL Commander for macOS, for iPad, and for iPhone recently. It is centered about your queries and displaying your results nicely. It works well with multitasking, has good multi-device support and has nice dark mode support. It comes with SSH tunnelling and exports with the different formats you&#039;d expect.<br />
<br />
My question is this: where do <i>you</i> think the app should go next? I don&#039;t mean Android/Windows, but what...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/mysql-clients-for-iphone-ipad-and-macos.2866316/" target="_blank" class="internalLink">MySQL clients for iPhone, iPad and macOS</a>]]></content:encoded>
    </item>
    <item>
      <title>How to disable only_full_group_by</title>
      <pubDate>Fri, 08 May 2020 12:48:00 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/how-to-disable-only_full_group_by.2866087/</link>
      <guid>https://forums.digitalpoint.com/threads/how-to-disable-only_full_group_by.2866087/</guid>
      <author>invalid@example.com (lapidus)</author>
      <dc:creator>lapidus</dc:creator>
      <content:encoded><![CDATA[Hello<br />
<br />
So, i need to disable <b>only_full_group_by</b> mode on my server.<br />
<br />
Please i need step by step explanation.  <br />
<br />
                     Thanks]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>How to get highest rated product of each month from following set?</title>
      <pubDate>Fri, 01 May 2020 06:48:26 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/how-to-get-highest-rated-product-of-each-month-from-following-set.2865922/</link>
      <guid>https://forums.digitalpoint.com/threads/how-to-get-highest-rated-product-of-each-month-from-following-set.2865922/</guid>
      <author>invalid@example.com (danielwoods2121)</author>
      <dc:creator>danielwoods2121</dc:creator>
      <content:encoded><![CDATA[productid     average_rating   ratings_month<br />
1                 1                       1<br />
1                 3                       2<br />
1                 5                       3<br />
2                 2                       1<br />
2                 4                       2<br />
2                 1                       3<br />
3                 2                       1<br />
3                 3                       2 <br />
3                 4                        3]]></content:encoded>
      <slash:comments>6</slash:comments>
    </item>
    <item>
      <title>Unique problem</title>
      <pubDate>Mon, 27 Apr 2020 11:52:29 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/unique-problem.2865842/</link>
      <guid>https://forums.digitalpoint.com/threads/unique-problem.2865842/</guid>
      <author>invalid@example.com (Its_TV)</author>
      <dc:creator>Its_TV</dc:creator>
      <content:encoded><![CDATA[Hello,<br />
Im Creating a soccer database. Im create my gameplan out of my Teams table. On table Game i set Home and away Team on unique. Now im use a Procedure to fill games per gameday in the table Game. Problem is here sql cremte Game 1 Dortmund – Bayern and next game is Bayern – Dortmund on the Same gameday. How Can I set unique That this Cant be done?]]></content:encoded>
      <slash:comments>6</slash:comments>
    </item>
    <item>
      <title>please hellp</title>
      <pubDate>Sun, 26 Apr 2020 21:00:13 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/please-hellp.2865843/</link>
      <guid>https://forums.digitalpoint.com/threads/please-hellp.2865843/</guid>
      <author>invalid@example.com (david varen)</author>
      <dc:creator>david varen</dc:creator>
      <content:encoded><![CDATA[I need to do the action &quot;SELECT transferid,SUM(despoit-transferAmount) AS money from money_transfer&quot; WHERE userid=$_SESSION[userid].<br />
<br />
the userid is in the users table.<br />
<br />
how do I combined the two tables so the action will work?]]></content:encoded>
      <slash:comments>5</slash:comments>
    </item>
    <item>
      <title>SP Error handler logging errors</title>
      <pubDate>Wed, 22 Apr 2020 18:36:39 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/sp-error-handler-logging-errors.2865737/</link>
      <guid>https://forums.digitalpoint.com/threads/sp-error-handler-logging-errors.2865737/</guid>
      <author>invalid@example.com (MatthewBaynham)</author>
      <dc:creator>MatthewBaynham</dc:creator>
      <content:encoded><![CDATA[I&#039;m trying to write an error handler which will insert any errors into a log table so that I can log them and look at them later.<br />
<br />
The reason I want to use my own table to log errors is I can add additional information for example which line of a source file crashes my log procedure.<br />
<br />
I know that <b><i>&quot;DECLARE EXIT handler for sqlexception&quot;</i></b> will catch the error.<br />
<br />
I&#039;ve read about <b><i>&quot;Show Errors;&quot; </i></b><br />
<br />
But how to I do an <b><i>&quot;insert into MyErrorLogTable (....) show...</i></b><br />
<br />
<a href="https://forums.digitalpoint.com/threads/sp-error-handler-logging-errors.2865737/" target="_blank" class="internalLink">SP Error handler logging errors</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>How to use variable in a WHERE statement</title>
      <pubDate>Mon, 20 Apr 2020 12:38:54 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/how-to-use-variable-in-a-where-statement.2865715/</link>
      <guid>https://forums.digitalpoint.com/threads/how-to-use-variable-in-a-where-statement.2865715/</guid>
      <author>invalid@example.com (Peterbrk57)</author>
      <dc:creator>Peterbrk57</dc:creator>
      <content:encoded><![CDATA[Hi,<br />
<br />
I have in a table a column Latitide and a column Longitude. These are coordinates from a store.<br />
With geolocation I got the coordinates (Latitude and Longitude) from a user of my website.<br />
With a formula I can calculate the distance between the coordinates. <br />
<br />
I have the distance inside the WHILE loop. <br />
<br />
What I want is to select only the records where the distance is less then 10km.<br />
<br />
But how? So far I know I cannot use a variable in the WHERE statement and before I can select records with...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/how-to-use-variable-in-a-where-statement.2865715/" target="_blank" class="internalLink">How to use variable in a WHERE statement</a>]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>Update query</title>
      <pubDate>Sat, 28 Mar 2020 20:16:02 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/update-query.2865269/</link>
      <guid>https://forums.digitalpoint.com/threads/update-query.2865269/</guid>
      <author>invalid@example.com (Michael Bednarski)</author>
      <dc:creator>Michael Bednarski</dc:creator>
      <content:encoded><![CDATA[Hi I have been fighting for hours now and cant seem to work out what the issue is. I want to do a simple update query I have stripped it down to is bare minimum to try and get it to work but still no joy. If I was to run the update query directly in phpmyadmin then it works straight away but when i try to run it via php script it does not work. I get a message saying connection to my database is successful but that&#039;s about it. I have changed all the privilege settings to allow everything for...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/update-query.2865269/" target="_blank" class="internalLink">Update query</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Database architecture</title>
      <pubDate>Tue, 17 Mar 2020 22:30:27 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/database-architecture.2865064/</link>
      <guid>https://forums.digitalpoint.com/threads/database-architecture.2865064/</guid>
      <author>invalid@example.com (Jack20)</author>
      <dc:creator>Jack20</dc:creator>
      <content:encoded><![CDATA[I was looking at how Elgg stored data and it made start wondering.<br />
<br />
Usually when your site has posts, comments, etc you would have tables something like (posts, comments), but everything here is stored in two tables.<br />
<br />
The two tables are: `entities` and `metadata` and they are structured as so:<br />
<br />
Entities:<br />
```<br />
------------------------------------------------------------<br />
| Name  | Type  |<br />
------------------------------------------------------------<br />
| guid  | int(20)  |<br />
| type  | enum(&#039;object&#039;,...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/database-architecture.2865064/" target="_blank" class="internalLink">Database architecture</a>]]></content:encoded>
    </item>
    <item>
      <title>Weird indexation problem</title>
      <pubDate>Tue, 10 Mar 2020 11:02:30 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/weird-indexation-problem.2864925/</link>
      <guid>https://forums.digitalpoint.com/threads/weird-indexation-problem.2864925/</guid>
      <author>invalid@example.com (musicpanda)</author>
      <dc:creator>musicpanda</dc:creator>
      <content:encoded><![CDATA[I have a database with classical music works. It has three relevant fields: composer, cataloga and shortname. Cataloga contains opus numbers - left padded with spaces for easy sorting. When there is no opus number the field is empty. It is the order of the empty fields that puzzles me. It is like there is some hidden sorting happening.<br />
<br />
When I do &quot;select * from works where composer=X ORDER BY shortname&quot; I get the records in perfect order.<br />
<br />
However, when I do &quot;ORDER BY cataloga,shortname&quot; it...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/weird-indexation-problem.2864925/" target="_blank" class="internalLink">Weird indexation problem</a>]]></content:encoded>
      <slash:comments>4</slash:comments>
    </item>
    <item>
      <title>How to return the the department leader of the departmen with the worker who has served the longest?</title>
      <pubDate>Sun, 09 Feb 2020 05:06:33 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/how-to-return-the-the-department-leader-of-the-departmen-with-the-worker-who-has-served-the-longest.2864113/</link>
      <guid>https://forums.digitalpoint.com/threads/how-to-return-the-the-department-leader-of-the-departmen-with-the-worker-who-has-served-the-longest.2864113/</guid>
      <author>invalid@example.com (Curtis_L)</author>
      <dc:creator>Curtis_L</dc:creator>
      <content:encoded><![CDATA[<b>Scenario/Problem</b><br />
I have a table that stores workers ID, when they start working at a department as well as when they leave that department. This can be seen in SQL Fiddle: <a href="http://www.sqlfiddle.com/#!9/d0c982/1/0" target="_blank" class="externalLink" rel="nofollow">http://www.sqlfiddle.com/#!9/d0c982/1/0</a><br />
<br />
The below code will create the table as well as insert the test data<br />





<div class="bbCodeBlock bbCodeCode">
	<pre class="line-numbers"><code class="language-sql" data-start="1">CREATE TABLE `Worker_Department` (
  `Worker_ID` Integer NOT NULL ,
  `Department_ID` Integer NOT NULL,
  `Position` Text NOT NULL,
`Start_Date` datetime NOT NULL,
`Leave_Date` datetime...</code></pre>
	<div class="type">Code (SQL):</div>
</div><a href="https://forums.digitalpoint.com/threads/how-to-return-the-the-department-leader-of-the-departmen-with-the-worker-who-has-served-the-longest.2864113/" target="_blank" class="internalLink">How to return the the department leader of the departmen with the worker who has served the longest?</a>]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
    <item>
      <title>Easy web frontend to edit mysql data?</title>
      <pubDate>Mon, 03 Feb 2020 09:46:28 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/easy-web-frontend-to-edit-mysql-data.2861834/</link>
      <guid>https://forums.digitalpoint.com/threads/easy-web-frontend-to-edit-mysql-data.2861834/</guid>
      <author>invalid@example.com (Micmue)</author>
      <dc:creator>Micmue</dc:creator>
      <content:encoded><![CDATA[Hi, I am searching for a web frontend to edit mysql data. Something like phpMyAdmin, but this is to big and technical. I like just to edit, delete or generate new entries of an mysql table in a hidden area of my website. Are there any easy libraries? I dont want to program it on my own.]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Group rows with highest values</title>
      <pubDate>Fri, 24 Jan 2020 10:36:43 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/group-rows-with-highest-values.2861829/</link>
      <guid>https://forums.digitalpoint.com/threads/group-rows-with-highest-values.2861829/</guid>
      <author>invalid@example.com (Cofyka)</author>
      <dc:creator>Cofyka</dc:creator>
      <content:encoded><![CDATA[Hello. I can&#039;t find any solution to my problem. This is my table:<br />
ID    ZONE    COUNT<br />
0        A           6<br />
1        A           10<br />
2        A           10<br />
3        B           3<br />
4        B           2<br />
5        B           3<br />
<br />
I need to select and group only rows with the highest values in their zones.<br />
Expected result:<br />
ID    ZONE    COUNT<br />
1        A           10<br />
2        A           10<br />
3        B           3<br />
5        B           3<br />
I would really appreciate it if someone can help me. I...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/group-rows-with-highest-values.2861829/" target="_blank" class="internalLink">Group rows with highest values</a>]]></content:encoded>
    </item>
    <item>
      <title>How to get total entries for each row??</title>
      <pubDate>Tue, 21 Jan 2020 04:31:56 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/how-to-get-total-entries-for-each-row.2861744/</link>
      <guid>https://forums.digitalpoint.com/threads/how-to-get-total-entries-for-each-row.2861744/</guid>
      <author>invalid@example.com (medialab)</author>
      <dc:creator>medialab</dc:creator>
      <content:encoded><![CDATA[Im really stumped on this one, I have an area on my site where users can enter different contest drawings, I have 2 tables, 1 for the prizes themselves and 1 for the entries.<br />
<br />
I can pull the prizes and the TOTAL entries, but I am having a hard time figuring out how to pull a specific users entries into each drawing. Here is an example of my tables (which can be changed, they are not used any where else on the site).<br />
<br />
prizes (table name)<br />
<br />
prize_id (key),    prize_status,    prize_name,...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/how-to-get-total-entries-for-each-row.2861744/" target="_blank" class="internalLink">How to get total entries for each row??</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>MySQL binary json format</title>
      <pubDate>Mon, 13 Jan 2020 04:06:31 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/mysql-binary-json-format.2861597/</link>
      <guid>https://forums.digitalpoint.com/threads/mysql-binary-json-format.2861597/</guid>
      <author>invalid@example.com (lowinator)</author>
      <dc:creator>lowinator</dc:creator>
      <content:encoded><![CDATA[Is there a way to call mysql functions that are being used internally to work with the binary json format? I would like to do some benchmarks like the ones shown here. Is there a way to do such measurements from outside of the MySQL code? Ideally I would be able to call serialize/deserialize functions for my own plain-text json documents and then measure the execution time of those functions.<br />
<br />
Is this possible? What options are there to do this?]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>MariaDB + MySQL Governor on CloudLinux: High Load</title>
      <pubDate>Wed, 27 Nov 2019 11:23:13 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/mariadb-mysql-governor-on-cloudlinux-high-load.2860802/</link>
      <guid>https://forums.digitalpoint.com/threads/mariadb-mysql-governor-on-cloudlinux-high-load.2860802/</guid>
      <author>invalid@example.com (VideoWhisper.com)</author>
      <dc:creator>VideoWhisper.com</dc:creator>
      <content:encoded><![CDATA[A new account is generating very high MySQL load and huge binary logs, with impact on overall server load. Impact on server seems higher that account usage.<br />
<br />
Reviewing MariaDB USER_STATISTICS table from information_schema (enabled plugin), compared usage of this account with next big user in various rows:<br />
- CPU_TIME 12x higher<br />
- BYTES_RECEIVED 3x<br />
- BYTES_SENT 6x<br />
- BINLOG_BYTES_WRITTEN 36x (getting 20Gb logs for 1 day)<br />
<br />
There are sites logging 3x more connections generating lower load, so...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/mariadb-mysql-governor-on-cloudlinux-high-load.2860802/" target="_blank" class="internalLink">MariaDB + MySQL Governor on CloudLinux: High Load</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>MySQL-mariaDB</title>
      <pubDate>Wed, 06 Nov 2019 14:01:30 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/mysql-mariadb.2860360/</link>
      <guid>https://forums.digitalpoint.com/threads/mysql-mariadb.2860360/</guid>
      <author>invalid@example.com (Calinghr)</author>
      <dc:creator>Calinghr</dc:creator>
      <content:encoded><![CDATA[Hello,<br />
<br />
I want to create a column where I can add one or two or three string variables. Something similar with the ENUM datatype but with ENUM I can add only one out of my defined variables.<br />
for example: I want to create a column where I can enter a list ( &#039;France&#039;,&#039;Germany&#039;, &#039;Italy&#039;) and from that list when I insert something into that column I want to be able to add : France or France and Germany or all 3 : France, Germany, Italy. <br />
How can I do that ??<br />
the SET datatype won&#039;t help me.. from...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/mysql-mariadb.2860360/" target="_blank" class="internalLink">MySQL-mariaDB</a>]]></content:encoded>
      <slash:comments>7</slash:comments>
    </item>
    <item>
      <title>Help with adding transaction tracking data</title>
      <pubDate>Mon, 28 Oct 2019 12:53:59 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/help-with-adding-transaction-tracking-data.2860109/</link>
      <guid>https://forums.digitalpoint.com/threads/help-with-adding-transaction-tracking-data.2860109/</guid>
      <author>invalid@example.com (chrisj)</author>
      <dc:creator>chrisj</dc:creator>
      <content:encoded><![CDATA[The php video web script that I’m trying to modify has a process where Users generate credit units from viewed videos.<br />
The total ‘balance’ of credits is stored in mysql db table named &#039;User&#039;, in a column titled “balance”, with each total reflected in a users’ row, and the &#039;balance&#039; total gets updated (goes up or down), depending on the activity of the credits.<br />
<br />
However, if 2 credits get added to the balance, for example, there is no tracking of what type of activity caused the balance total...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/help-with-adding-transaction-tracking-data.2860109/" target="_blank" class="internalLink">Help with adding transaction tracking data</a>]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Unable to access database in browser</title>
      <pubDate>Wed, 02 Oct 2019 06:33:45 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/unable-to-access-database-in-browser.2859496/</link>
      <guid>https://forums.digitalpoint.com/threads/unable-to-access-database-in-browser.2859496/</guid>
      <author>invalid@example.com (gaya)</author>
      <dc:creator>gaya</dc:creator>
      <content:encoded><![CDATA[I am accessing database remotely. I can able to access database through terminal with user name and password but in browser it gives the following error message.]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>Unable to connect to MySQL database while installing PERL script</title>
      <pubDate>Mon, 09 Sep 2019 16:48:24 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/unable-to-connect-to-mysql-database-while-installing-perl-script.2859463/</link>
      <guid>https://forums.digitalpoint.com/threads/unable-to-connect-to-mysql-database-while-installing-perl-script.2859463/</guid>
      <author>invalid@example.com (gregdavidson)</author>
      <dc:creator>gregdavidson</dc:creator>
      <content:encoded><![CDATA[I just attempted to install a PERL script on my Godaddy Linux hosting account and I keep getting this message:<br />
<br />
<b>install_driver(mysql) failed: Can&#039;t locate DBD/mysql.pm in <a href="https://www.digitalpoint.com/members/264791/" class="username" data-user="264791, @inc">@inc</a> (<a href="https://www.digitalpoint.com/members/264791/" class="username" data-user="264791, @inc">@inc</a> contains: Modules . /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at (eval 9) line 3.<br />
Perhaps the DBD::mysql perl module hasn&#039;t been fully installed,<br />
or perhaps the...</b><br />
<br />
<a href="https://forums.digitalpoint.com/threads/unable-to-connect-to-mysql-database-while-installing-perl-script.2859463/" target="_blank" class="internalLink">Unable to connect to MySQL database while installing PERL script</a>]]></content:encoded>
      <slash:comments>1</slash:comments>
    </item>
    <item>
      <title>In mysql workbench Debugging query I do not see result rows</title>
      <pubDate>Sat, 24 Aug 2019 10:21:17 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/in-mysql-workbench-debugging-query-i-do-not-see-result-rows.2859143/</link>
      <guid>https://forums.digitalpoint.com/threads/in-mysql-workbench-debugging-query-i-do-not-see-result-rows.2859143/</guid>
      <author>invalid@example.com (mstdmstd)</author>
      <dc:creator>mstdmstd</dc:creator>
      <content:encoded><![CDATA[Hello,<br />
With mysql workbench 6.3 under ubuntu 18 when I want to debug some sql I click “Create a new sql tab for executing queries” toolbar item<br />
and new tab editor is opened. When I click “Execute the selected portion...” toolbar item I see info on the sql executed,<br />
but not result rows, as I expected : https://imgur.com/a/wnRKTUO.<br />
1) Is it some hidden area?<br />
<br />
2) I do not want to use all my databases on this connection, How can I hide some databases, without deleting them?<br />
<br />
Thanks!]]></content:encoded>
      <slash:comments>2</slash:comments>
    </item>
    <item>
      <title>Prevent Duplicate Document Number</title>
      <pubDate>Fri, 26 Jul 2019 03:06:26 +0000</pubDate>
      <link>https://forums.digitalpoint.com/threads/prevent-duplicate-document-number.2858476/</link>
      <guid>https://forums.digitalpoint.com/threads/prevent-duplicate-document-number.2858476/</guid>
      <author>invalid@example.com (Lee M. Childress)</author>
      <dc:creator>Lee M. Childress</dc:creator>
      <content:encoded><![CDATA[I am working on a helpdesk ticketing system. When a user submits a ticket I want to assign the ticket a unique number, for example: 20190724001 where the first four digits is the year, next two are the month, next two the day and the last three would be the next consecutive number FOR THAT DAY and then the numbering would start back at 1 the next day. I know to query the table for the next number where the date equals today, but I do I obtain the next consecutive number without another user...<br />
<br />
<a href="https://forums.digitalpoint.com/threads/prevent-duplicate-document-number.2858476/" target="_blank" class="internalLink">Prevent Duplicate Document Number</a>]]></content:encoded>
      <slash:comments>3</slash:comments>
    </item>
  </channel>
</rss>
