<?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/">
  <channel>
    <title>Outras Linguagens</title>
    <description>Categoria destinada a duvidas de Outras Linguagens como por exemplo, Delphi, HTML, Java, C, entre outras..</description>
    <pubDate>Wed, 15 Apr 2026 06:39:25 +0000</pubDate>
    <lastBuildDate>Wed, 15 Apr 2026 06:39:25 +0000</lastBuildDate>
    <generator>4Each - Forum Progress</generator>
    <link>http://www.4each.com.br/forums/outras-linguagens.46/</link>
    <atom:link rel="self" type="application/rss+xml" href="http://www.4each.com.br/forums/outras-linguagens.46/index.rss"/>
    <item>
      <title>[SQL] When to use single quotes, double quotes, and backticks in MySQL</title>
      <pubDate>Mon, 01 Dec 2025 17:22:48 +0000</pubDate>
      <link>http://www.4each.com.br/threads/sql-when-to-use-single-quotes-double-quotes-and-backticks-in-mysql.165877/</link>
      <guid>http://www.4each.com.br/threads/sql-when-to-use-single-quotes-double-quotes-and-backticks-in-mysql.165877/</guid>
      <author>Stack</author>
      <dc:creator>Stack</dc:creator>
      <content:encoded><![CDATA[I am trying to learn the best way to write queries. I also understand the importance of being consistent. Until now, I have randomly used single quotes, double quotes, and backticks without any real thought.<br />
<br />
Example:<br />
<br />
$query = &#039;INSERT INTO table (id, col1, col2) VALUES (NULL, val1, val2)&#039;;<br />
<br />
<br />
Also, in the above example, consider that table, col1, val1, etc. may be variables.<br />
<br />
What is the standard for this? What do you do?<br />
<br />
<a href="https://stackoverflow.com/questions/11321491/when-to-use-single-quotes-double-quotes-and-backticks-in-mysql" target="_blank" class="externalLink" rel="nofollow">Continue reading...</a>]]></content:encoded>
    </item>
    <item>
      <title>[SQL] Google Big Query: Forward Filling: IGNORE in Window Function</title>
      <pubDate>Mon, 01 Dec 2025 16:42:40 +0000</pubDate>
      <link>http://www.4each.com.br/threads/sql-google-big-query-forward-filling-ignore-in-window-function.165869/</link>
      <guid>http://www.4each.com.br/threads/sql-google-big-query-forward-filling-ignore-in-window-function.165869/</guid>
      <author>Stack</author>
      <dc:creator>Stack</dc:creator>
      <content:encoded><![CDATA[I am having difficulty using a window function to &quot;forward fill&quot; values in Google Big Query. It appears that the IGNORE part of the query is causing the problem. Assuming the dataset below, I am trying to get the &quot;purchase dates&quot; values for each social security number to fill in the nulls until another validate purchase date is encountered. Basically want to keep track of the latest purchase date in relation to each activity_date.<br />
<br />
For example, looking at SS # 000-0000-000, I would like 2016-12-16 to forward fill all of the null values between activity dates 2016-12-17 to 2016-12-22 (purchase ages 1-6) and then forward fill 2016-12-23 for purchase ages 8-10. Same scenario for the other SS # 111-1111-111.<br />
<br />
Activity_date   SS_Number   First_Purchase  First_Purchase_age  Purchase_dates<br />
2016-12-26  000-0000-000    2016-12-16  10  null<br />
2016-12-25  000-0000-000    2016-12-16  9   null...<br />
<br />
<a href="http://www.4each.com.br/threads/sql-google-big-query-forward-filling-ignore-in-window-function.165869/" target="_blank" class="externalLink" rel="nofollow">[SQL] Google Big Query: Forward Filling: IGNORE in Window Function</a>]]></content:encoded>
    </item>
    <item>
      <title>[SQL] Deciding on a new language for a database application [closed]</title>
      <pubDate>Mon, 01 Dec 2025 16:02:51 +0000</pubDate>
      <link>http://www.4each.com.br/threads/sql-deciding-on-a-new-language-for-a-database-application-closed.165860/</link>
      <guid>http://www.4each.com.br/threads/sql-deciding-on-a-new-language-for-a-database-application-closed.165860/</guid>
      <author>Stack</author>
      <dc:creator>Stack</dc:creator>
      <content:encoded><![CDATA[About 3 years ago I developed a fairly simple database in Microsoft Access. I was very unexperienced at the time, and now I&#039;m noticing major issues with how I structured tables and the database is starting to perform poorly, so I&#039;m considering rebuilding the database from scratch, preferably in a different langauge, but I&#039;m looking for advice on this.<br />
<br />
At the time this was the first program I ever built but now I&#039;m more experienced. I have worked with C#, a little bit of Python and some JavaScript, but I am very experienced with Delphi and SQL since I used these in school - that being said, I&#039;d prefer to not use Delphi.<br />
<br />
The database runs on a local server and is currently only used on the local network by 1-5 users simultaneously.<br />
<br />
What would be the best stack to use for this? I need to be able to print and email from the database, also I may need to export data to Excel. I&#039;d prefer to...<br />
<br />
<a href="http://www.4each.com.br/threads/sql-deciding-on-a-new-language-for-a-database-application-closed.165860/" target="_blank" class="externalLink" rel="nofollow">[SQL] Deciding on a new language for a database application [closed]</a>]]></content:encoded>
    </item>
    <item>
      <title>[SQL] Creating a Rolling metric in SQL</title>
      <pubDate>Mon, 01 Dec 2025 10:02:50 +0000</pubDate>
      <link>http://www.4each.com.br/threads/sql-creating-a-rolling-metric-in-sql.165822/</link>
      <guid>http://www.4each.com.br/threads/sql-creating-a-rolling-metric-in-sql.165822/</guid>
      <author>Stack</author>
      <dc:creator>Stack</dc:creator>
      <content:encoded><![CDATA[I am working with some data in which I need to calculate the number of users of a product within the last 25 days. This metric needs to be a rolling calculation i.e today needs to be for the last 25 days summarised, yesterdays date needs to be 25 days up until yesterday date.<br />
<br />
The format of data I have can be summarised below:<br />
<br />
date user_id product usage<br />
2023-01-01 x1 0<br />
2023-01-01 x2 1<br />
2023-01-02 x1 0<br />
2023-01-02 x3 1<br />
<br />
Is there a way to calculate the summary table (I can create the metric per day) but unsure on how to do it for a date frame as well as how to apply it to a date frame that is rolling so there is a new base date.<br />
<br />
Also if it makes a difference I am trying to do it in Firebolt<br />
<br />
I am expecting to have a single table at the end with a unique date and the number of distinct users over the last 25 days per day....<br />
<br />
<a href="http://www.4each.com.br/threads/sql-creating-a-rolling-metric-in-sql.165822/" target="_blank" class="externalLink" rel="nofollow">[SQL] Creating a Rolling metric in SQL</a>]]></content:encoded>
    </item>
    <item>
      <title>How do you move the function definition for the -&gt;when() function in Laravel Eloquent Models?</title>
      <pubDate>Mon, 01 Dec 2025 00:43:24 +0000</pubDate>
      <link>http://www.4each.com.br/threads/how-do-you-move-the-function-definition-for-the-when-function-in-laravel-eloquent-models.165757/</link>
      <guid>http://www.4each.com.br/threads/how-do-you-move-the-function-definition-for-the-when-function-in-laravel-eloquent-models.165757/</guid>
      <author>ThePlayerRolo</author>
      <dc:creator>ThePlayerRolo</dc:creator>
      <content:encoded><![CDATA[so I&#039;m building a way to organize Items based on different requests:<br />
<br />
        $items = Item::query()<br />
        -&gt;where(&quot;type&quot;, $itemType)<br />
        -&gt;when($mode, function (Builder $query, $mode) {<br />
            switch ($mode) {<br />
                case &quot;TopFavorites&quot;:<br />
                    return $query-&gt;orderByDesc(&#039;number_favorited&#039;);<br />
                case &quot;BestSelling&quot;:<br />
                    return $query-&gt;orderByDesc(&#039;number_sold&#039;);<br />
                case &quot;RecentlyUpdated&quot;:<br />
                    return $query-&gt;orderByDesc(&#039;updated_at&#039;);<br />
                case &quot;ForSale&quot;:<br />
                    return $query-&gt;where(&quot;onSale&quot;, true);<br />
                case &quot;Offsale&quot;:<br />
                    return $query-&gt;where(&quot;onSale&quot;, false);<br />
            }<br />
        })<br />
        -&gt;get();<br />
<br />
<br />
I&#039;m wondering if you can move the function in when to an external function in the controller class. I tried doing so however it seems the $query...<br />
<br />
<a href="http://www.4each.com.br/threads/how-do-you-move-the-function-definition-for-the-when-function-in-laravel-eloquent-models.165757/" target="_blank" class="externalLink" rel="nofollow">How do you move the function definition for the -&gt;when() function in Laravel Eloquent Models?</a>]]></content:encoded>
    </item>
    <item>
      <title>Laravel Eloquent: Complex Multi-Tenant Polymorphic Relations with Pivot Constraints Breaking...</title>
      <pubDate>Sun, 30 Nov 2025 19:33:00 +0000</pubDate>
      <link>http://www.4each.com.br/threads/laravel-eloquent-complex-multi-tenant-polymorphic-relations-with-pivot-constraints-breaking.165708/</link>
      <guid>http://www.4each.com.br/threads/laravel-eloquent-complex-multi-tenant-polymorphic-relations-with-pivot-constraints-breaking.165708/</guid>
      <author>Tech Akm</author>
      <dc:creator>Tech Akm</dc:creator>
      <content:encoded><![CDATA[<b>Laravel 11.35.1 | PHP 8.4.2 | PostgreSQL 16.5</b><br />
<br />
I&#039;m implementing a <b>multi-tenant SaaS</b> with <b>polymorphic relations</b> across <b>3 database connections</b> (tenant1, tenant2, shared). The issue occurs <b>only in queue jobs</b> where <b>pivot constraints</b> fail due to <b>tenant context loss</b>.<br />
<br />
<span style="font-size: 15px"><b><b>Database Schema</b></b></span><br />
<br />
<br />
SQL<br />
<br />
-- shared database<br />
tenants<br />
  id (uuid), name, database_name<br />
<br />
-- tenant1 database<br />
users<br />
  id (uuid), tenant_id (uuid), name, email<br />
<br />
workspaces<br />
  id (uuid), tenant_id (uuid), name<br />
<br />
-- tenantX databases (dynamic)<br />
workspace_members (pivot)<br />
  id (uuid), workspace_id (uuid), member_id (uuid), member_type<br />
  -- member_type: &#039;App\Models\User&#039;, &#039;App\Models\Team&#039;, &#039;App\Models\ExternalGuest&#039;<br />
<br />
<span style="font-size: 15px"><b><b>Models</b></b></span><br />
<br />
<br />
PHP<br />
<br />
// app/Models/Tenant.php (shared DB)<br />
class Tenant extends Model<br />
{<br />
    protected $connection = &#039;shared&#039;;...<br />
<br />
<a href="http://www.4each.com.br/threads/laravel-eloquent-complex-multi-tenant-polymorphic-relations-with-pivot-constraints-breaking.165708/" target="_blank" class="externalLink" rel="nofollow">Laravel Eloquent: Complex Multi-Tenant Polymorphic Relations with Pivot Constraints Breaking...</a>]]></content:encoded>
    </item>
    <item>
      <title>[SQL] BigQuery: How to replace 0 values with NULL in a column?</title>
      <pubDate>Sun, 30 Nov 2025 18:32:57 +0000</pubDate>
      <link>http://www.4each.com.br/threads/sql-bigquery-how-to-replace-0-values-with-null-in-a-column.165697/</link>
      <guid>http://www.4each.com.br/threads/sql-bigquery-how-to-replace-0-values-with-null-in-a-column.165697/</guid>
      <author>Stack</author>
      <dc:creator>Stack</dc:creator>
      <content:encoded><![CDATA[I’m trying to clean a BigQuery weather dataset where missing values were entered as 0. My UPDATE query to replace 0 with NULL is throwing an error. How can I correctly convert these zeroes to null values?<br />
<br />
<a href="https://stackoverflow.com/questions/79821595/bigquery-how-to-replace-0-values-with-null-in-a-column" target="_blank" class="externalLink" rel="nofollow">Continue reading...</a>]]></content:encoded>
    </item>
    <item>
      <title>[SQL] SQL subquery issue</title>
      <pubDate>Sun, 30 Nov 2025 17:55:06 +0000</pubDate>
      <link>http://www.4each.com.br/threads/sql-sql-subquery-issue.165691/</link>
      <guid>http://www.4each.com.br/threads/sql-sql-subquery-issue.165691/</guid>
      <author>Stack</author>
      <dc:creator>Stack</dc:creator>
      <content:encoded><![CDATA[<a href="https://i.sstatic.net/xVMNwCyi.png" target="_blank" class="externalLink" rel="nofollow">enter image description here</a> (SQL subquery problem)<br />
<br />
<a href="https://i.sstatic.net/viC3VLo7.png" target="_blank" class="externalLink" rel="nofollow">enter image description here</a> (SQL subquery problem)<br />
<br />
See the same result came without using the subquery. So why should I use this complicated subquery, when I can easily get the desired output using this simple query?<br />
<br />
<a href="https://stackoverflow.com/questions/79834079/sql-subquery-issue" target="_blank" class="externalLink" rel="nofollow">Continue reading...</a>]]></content:encoded>
    </item>
    <item>
      <title>[SQL] How do I design an ERD and SQL schema for a basic banking system (accounts &amp;...</title>
      <pubDate>Sun, 30 Nov 2025 17:23:02 +0000</pubDate>
      <link>http://www.4each.com.br/threads/sql-how-do-i-design-an-erd-and-sql-schema-for-a-basic-banking-system-accounts.165688/</link>
      <guid>http://www.4each.com.br/threads/sql-how-do-i-design-an-erd-and-sql-schema-for-a-basic-banking-system-accounts.165688/</guid>
      <author>Stack</author>
      <dc:creator>Stack</dc:creator>
      <content:encoded><![CDATA[I’m working on a small educational project: building a simple banking system that includes customers, accounts, and transactions.<br />
<br />
I have read about ERD modeling but I’m not sure how to properly represent the relationships between:<br />
• Customers<br />
• Accounts (savings, checking, etc.)<br />
• Transactions (deposits, withdrawals, transfers)<br />
<br />
My main confusion is:<br />
1. Should each account have many transactions through a 1-to-many relationship?<br />
2. How should transfers between two accounts be represented in the table structure?<br />
3. Should I create a separate Transfer table or handle transfers using two transaction records?<br />
<br />
<a href="https://stackoverflow.com/questions/79834065/how-do-i-design-an-erd-and-sql-schema-for-a-basic-banking-system-accounts-tra" target="_blank" class="externalLink" rel="nofollow">Continue reading...</a>]]></content:encoded>
    </item>
    <item>
      <title>[SQL] Call BigQuery Stored Procedure by naming parameters</title>
      <pubDate>Sun, 30 Nov 2025 16:52:56 +0000</pubDate>
      <link>http://www.4each.com.br/threads/sql-call-bigquery-stored-procedure-by-naming-parameters.165685/</link>
      <guid>http://www.4each.com.br/threads/sql-call-bigquery-stored-procedure-by-naming-parameters.165685/</guid>
      <author>Stack</author>
      <dc:creator>Stack</dc:creator>
      <content:encoded><![CDATA[I have a BigQuery stored procedure that is defined like this:<br />
<br />
CREATE OR REPLACE PROCEDURE proc_name(<br />
    param_1 INT64,<br />
    param_2 INT64,<br />
    param_3 DATE<br />
)<br />
BEGIN<br />
//CODE<br />
END<br />
<br />
<br />
When I call the procedure by doing something like this, I have no issues:<br />
<br />
CALL proc_name(1,1,&#039;2022-11-23&#039;)<br />
<br />
<br />
However, I&#039;d like to be able to call it by naming the parameters as I can&#039;t always ensure the order they are passed through in is the same order they are declared, for example:<br />
<br />
CALL proc_name(<br />
  param_2 = 10<br />
  param_3 = &#039;2022-11-23&#039;<br />
  param_1 = 5<br />
)<br />
<br />
<br />
I&#039;ve tried the above and had no success - Query error: Unrecognized name: param_2 at [2:3]<br />
<br />
Is there a way of doing what I want?<br />
<br />
<a href="https://stackoverflow.com/questions/74544264/call-bigquery-stored-procedure-by-naming-parameters" target="_blank" class="externalLink" rel="nofollow">Continue reading...</a>]]></content:encoded>
    </item>
    <item>
      <title>[SQL] How to avoid duplicate values in SQL Server</title>
      <pubDate>Sun, 30 Nov 2025 15:03:34 +0000</pubDate>
      <link>http://www.4each.com.br/threads/sql-how-to-avoid-duplicate-values-in-sql-server.165665/</link>
      <guid>http://www.4each.com.br/threads/sql-how-to-avoid-duplicate-values-in-sql-server.165665/</guid>
      <author>Stack</author>
      <dc:creator>Stack</dc:creator>
      <content:encoded><![CDATA[I have almost 10 token machines where customers are getting token numbers from table Token. I am using a stored procedure for accessing this table and updating it<br />
<br />
Id    Name       TokenFrom   TokenTo   LastUsedToken<br />
----------------------------------------------------<br />
1     Token         551        999         562<br />
<br />
<br />
I have notices that during rush hours a lot of customers are getting duplicate numbers. Maybe this problem is showing up because 10 customers are getting tokens at the same time/hour/second.<br />
<br />
Here is issuedToken table<br />
<br />
Id  PosId   Barcode        Date                      Status  Number isTaken <br />
1   2       6282019214317  2016-10-20 09:41:45.020    1      366        1<br />
2   2       6282019215918  2016-10-20 09:42:15.020    1         367     1<br />
3   2       6282019225016  2016-10-20 09:42:45.020    1         368     1<br />
4   3       6282019230812  2016-10-20 09:42:55.020    1...<br />
<br />
<a href="http://www.4each.com.br/threads/sql-how-to-avoid-duplicate-values-in-sql-server.165665/" target="_blank" class="externalLink" rel="nofollow">[SQL] How to avoid duplicate values in SQL Server</a>]]></content:encoded>
    </item>
    <item>
      <title>[SQL] Trigger on PostgreSQL updating salary column</title>
      <pubDate>Sun, 30 Nov 2025 13:14:23 +0000</pubDate>
      <link>http://www.4each.com.br/threads/sql-trigger-on-postgresql-updating-salary-column.165652/</link>
      <guid>http://www.4each.com.br/threads/sql-trigger-on-postgresql-updating-salary-column.165652/</guid>
      <author>Stack</author>
      <dc:creator>Stack</dc:creator>
      <content:encoded><![CDATA[I am having some troubles setting a trigger in PostgreSQL. I have a table Employees with columns such as employee_id, salary and hourly_pay. The salary is annual, so I&#039;d like to change the salary when I change the hourly pay.<br />
<br />
For instance, by setting hourly pay a value, the salary must be updated to 2080 times that value. But it seems that I can&#039;t make the trigger at all. What is wrong with the following code?<br />
<br />
create or replace function salary_update_function()<br />
returns trigger as $salary_update$<br />
begin<br />
    update employees <br />
    set new.salary = new.hourly_pay*2080;<br />
<br />
    return new;<br />
end;<br />
$salary_update$ language plpgsql;<br />
<br />
create trigger salary_update_trigger<br />
before update of hourly_pay on employees<br />
for each row execute function salary_update_function();<br />
<br />
<a href="https://stackoverflow.com/questions/79833901/trigger-on-postgresql-updating-salary-column" target="_blank" class="externalLink" rel="nofollow">Continue reading...</a>]]></content:encoded>
    </item>
    <item>
      <title>When client opens it from browser history it opens JSON return not a component</title>
      <pubDate>Sun, 30 Nov 2025 11:43:08 +0000</pubDate>
      <link>http://www.4each.com.br/threads/when-client-opens-it-from-browser-history-it-opens-json-return-not-a-component.165642/</link>
      <guid>http://www.4each.com.br/threads/when-client-opens-it-from-browser-history-it-opens-json-return-not-a-component.165642/</guid>
      <author>ibrahim elshorbagy</author>
      <dc:creator>ibrahim elshorbagy</dc:creator>
      <content:encoded><![CDATA[I have problem with all Inertia projects. When the user opens the page from their browser history it opens a JSON not a React page.<br />
<br />
How can I prevent this? I have:<br />
<br />
  &quot;dependencies&quot;: {<br />
    &quot;@inertiajs/react&quot;: &quot;^2.0.12&quot;,<br />
    &quot;axios&quot;: &quot;^1.10.0&quot;,<br />
    &quot;react&quot;: &quot;^19.1.0&quot;,<br />
    &quot;react-dom&quot;: &quot;^19.1.0&quot;,<br />
    &quot;swiper&quot;: &quot;^11.2.8&quot;,<br />
    &quot;vite&quot;: &quot;^6.3.5&quot;,<br />
    &quot;ziggy-js&quot;: &quot;^2.5.3&quot;<br />
  },<br />
<br />
<a href="https://stackoverflow.com/questions/79833851/when-client-opens-it-from-browser-history-it-opens-json-return-not-a-component" target="_blank" class="externalLink" rel="nofollow">Continue reading...</a>]]></content:encoded>
    </item>
    <item>
      <title>[SQL] Parsing XML in teradata</title>
      <pubDate>Sun, 30 Nov 2025 09:04:37 +0000</pubDate>
      <link>http://www.4each.com.br/threads/sql-parsing-xml-in-teradata.165619/</link>
      <guid>http://www.4each.com.br/threads/sql-parsing-xml-in-teradata.165619/</guid>
      <author>Stack</author>
      <dc:creator>Stack</dc:creator>
      <content:encoded><![CDATA[I have this requirement where I am trying to build SQL queries on teradata and pull XML attributes/element data. The dataset I am working on is a swift iso payment xmlsnlike PAC04,PACS08,etc.<br />
<br />
I looked at teradata doc and started using XMLEXTRACT, but there are issues I am facing.<br />
<br />
How do I ignore namespaces, now namespaces can have a variety.I tried wildcard but it did not work.<br />
<br />
<b>Adding sample XML</b><br />
<br />
Now the issue I am facing is that the namespace here is PACS, but this can vary as any alphanumeric word. I need to use the final query in a view so that user can just query on view.<br />
<br />
&lt;pacs<img src="styles/default/xenforo/clear.png" class="mceSmilieSprite mceSmilie8" alt=":D" title="Big Grin    :D" />ocument xmlns<img src="styles/default/xenforo/clear.png" class="mceSmilieSprite mceSmilie7" alt=":p" title="Stick Out Tongue    :p" />acs=&quot;urn:iso:std:iso:20022:tech:xsd<img src="styles/default/xenforo/clear.png" class="mceSmilieSprite mceSmilie7" alt=":p" title="Stick Out Tongue    :p" />acs.009.001.08&quot; xmlns:xsi=&quot;<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank" class="externalLink" rel="nofollow">http://www.w3.org/2001/XMLSchema-instance</a>&quot;&gt;<br />
    &lt;pacs:FICdtTrf&gt;<br />
        &lt;pacs:GrpHdr&gt;<br />
            &lt;pacs:MsgId&gt;XXXXXXXXX&lt;/pacs:MsgId&gt;<br />
            &lt;pacs:CreDtTm&gt;2022-09-12T10:18:09+08:00&lt;/pacs:CreDtTm&gt;...<br />
<br />
<a href="http://www.4each.com.br/threads/sql-parsing-xml-in-teradata.165619/" target="_blank" class="externalLink" rel="nofollow">[SQL] Parsing XML in teradata</a>]]></content:encoded>
    </item>
    <item>
      <title>[SQL] How can I join two tables on different columns?</title>
      <pubDate>Sun, 30 Nov 2025 08:26:21 +0000</pubDate>
      <link>http://www.4each.com.br/threads/sql-how-can-i-join-two-tables-on-different-columns.165615/</link>
      <guid>http://www.4each.com.br/threads/sql-how-can-i-join-two-tables-on-different-columns.165615/</guid>
      <author>Stack</author>
      <dc:creator>Stack</dc:creator>
      <content:encoded><![CDATA[I have two tables; the first one consists of clients&#039; names and their id.<br />
<br />
For example:<br />
<br />
name   surname1  519651  <br />
name   surname2  496879  <br />
name   surname3  848465  <br />
<br />
<br />
The second one consists of clients&#039; names and the origin of a name,<br />
like this:<br />
<br />
name1, ancient greek  <br />
name2, ancient roman  <br />
name3, slavic<br />
<br />
<br />
How can I join these tables if two columns with names are not fully similar?<br />
<br />
<a href="https://stackoverflow.com/questions/79833750/how-can-i-join-two-tables-on-different-columns" target="_blank" class="externalLink" rel="nofollow">Continue reading...</a>]]></content:encoded>
    </item>
    <item>
      <title>[SQL] automated check if two SQL queries are semantically equal</title>
      <pubDate>Sun, 30 Nov 2025 07:44:01 +0000</pubDate>
      <link>http://www.4each.com.br/threads/sql-automated-check-if-two-sql-queries-are-semantically-equal.165611/</link>
      <guid>http://www.4each.com.br/threads/sql-automated-check-if-two-sql-queries-are-semantically-equal.165611/</guid>
      <author>Stack</author>
      <dc:creator>Stack</dc:creator>
      <content:encoded><![CDATA[I got two queries:<br />
<br />
&#039;UPDATE foo SET bar = baz WHERE a = b AND c = d&#039;<br />
<br />
<br />
and<br />
<br />
&#039;UPDATE foo SET bar = baz WHERE c = d AND a = b&#039;<br />
<br />
<br />
both are semantically equal (they do the same), but a simple compare would state that they are different as the first has a = b AND c = d whereas the second uses c = d AND a = b.<br />
<br />
<b>How can I check whether both queries are semantically equal?</b><br />
<br />
This is an obviously easy example that can be solved by simple alphabetic sorting of the syntax tree at the WHERE node. I am interested in a generic approach that can also solve more complex queries - even with subqueries.<br />
<br />
<b><i>A further restriction is that I do not have access to the database and can only use the strings of the queries. Thus RUNNING the queries is out of question as it would NOT reflect on the equality of the queries.</i></b><br />
<br />
An example for the bold text above:<br />
<br />
FooTable:<br />
<br />
A |  B |  C<br />
1 | xx | xx...<br />
<br />
<a href="http://www.4each.com.br/threads/sql-automated-check-if-two-sql-queries-are-semantically-equal.165611/" target="_blank" class="externalLink" rel="nofollow">[SQL] automated check if two SQL queries are semantically equal</a>]]></content:encoded>
    </item>
    <item>
      <title>[SQL] SQL - Showing exclusively the biggest value [duplicate]</title>
      <pubDate>Sun, 30 Nov 2025 01:23:15 +0000</pubDate>
      <link>http://www.4each.com.br/threads/sql-sql-showing-exclusively-the-biggest-value-duplicate.165578/</link>
      <guid>http://www.4each.com.br/threads/sql-sql-showing-exclusively-the-biggest-value-duplicate.165578/</guid>
      <author>Stack</author>
      <dc:creator>Stack</dc:creator>
      <content:encoded><![CDATA[I&#039;ve been tasked with finding the client with the highest sum of payments, the table they gave me contains the customer number and amount, I have not been able to do this,<br />
<br />
SELECT suma.customerNumber, suma.Tot<br />
FROM (<br />
    SELECT DISTINCT payments.customerNumber, ROUND(SUM(payments.amount), 2) AS Tot<br />
    FROM payments<br />
    GROUP BY customerNumber<br />
    ORDER BY Tot DESC<br />
) suma<br />
WHERE suma.Tot = (SELECT MAX(Tot) FROM suma)<br />
GROUP BY suma.customerNumber;<br />
<br />
<br />
This is an example of the kind of code I&#039;ve been writing to solve this, I know I can&#039;t just do MAX(SUM(blah)), but that&#039;s basically what I need to do, and I need help.<br />
<br />
<a href="https://stackoverflow.com/questions/79833615/sql-showing-exclusively-the-biggest-value" target="_blank" class="externalLink" rel="nofollow">Continue reading...</a>]]></content:encoded>
    </item>
    <item>
      <title>Using a prop in an import statement in Vue, using Laravel and Inertia?</title>
      <pubDate>Sat, 29 Nov 2025 22:03:47 +0000</pubDate>
      <link>http://www.4each.com.br/threads/using-a-prop-in-an-import-statement-in-vue-using-laravel-and-inertia.165564/</link>
      <guid>http://www.4each.com.br/threads/using-a-prop-in-an-import-statement-in-vue-using-laravel-and-inertia.165564/</guid>
      <author>Jon</author>
      <dc:creator>Jon</dc:creator>
      <content:encoded><![CDATA[I&#039;m trying to dynamically load only specific icons from the lucide-vue-next package in my vue page, however it&#039;s not wanting to work. I&#039;m using Laravel 12 (Latest), Vue3 (Latest shipped with Laravel), and Inertia.js (Latest shipped with Laravel)<br />
<br />
My controller code:<br />
<br />
$races = Race::with(&#039;skills&#039;, &#039;trait&#039;)-&gt;get();<br />
$raceIcons = &#039;Sparkles&#039;; //implode(&#039;,&#039;, $races-&gt;pluck(&#039;icon&#039;)-&gt;toArray());<br />
return Inertia::render(&#039;game/character/Create&#039;, [&#039;races&#039; =&gt; $races, &#039;races_icons&#039; =&gt; $raceIcons]);<br />
<br />
<br />
My vue code:<br />
<br />
&lt;script setup lang=&quot;ts&quot;&gt;<br />
import { ref, computed } from &#039;vue&#039;;<br />
import { Head, useForm, usePage } from &#039;@inertiajs/vue3&#039;;<br />
<br />
const page = usePage();<br />
const raceIcons = computed(() =&gt; page.props.races_icons); // With or without .value at the end of the statement before the ;<br />
console.log(raceIcons);<br />
...<br />
&lt;/script&gt;<br />
<br />
&lt;script lang=&quot;ts&quot;&gt;<br />
    import { raceIcons } from &#039;lucide-vue-next&#039;;<br />
&lt;/script&gt;<br />
<br />
<br />
I&#039;m...<br />
<br />
<a href="http://www.4each.com.br/threads/using-a-prop-in-an-import-statement-in-vue-using-laravel-and-inertia.165564/" target="_blank" class="externalLink" rel="nofollow">Using a prop in an import statement in Vue, using Laravel and Inertia?</a>]]></content:encoded>
    </item>
    <item>
      <title>[SQL] SQL Server - Return value after INSERT</title>
      <pubDate>Sat, 29 Nov 2025 19:23:01 +0000</pubDate>
      <link>http://www.4each.com.br/threads/sql-sql-server-return-value-after-insert.165540/</link>
      <guid>http://www.4each.com.br/threads/sql-sql-server-return-value-after-insert.165540/</guid>
      <author>Stack</author>
      <dc:creator>Stack</dc:creator>
      <content:encoded><![CDATA[I&#039;m trying to get a the key-value back after an INSERT-statement. Example: I&#039;ve got a table with the attributes name and id. id is a generated value.<br />
<br />
    INSERT INTO table (name) VALUES(&#039;bob&#039;);<br />
<br />
<br />
Now I want to get the id back in the same step. How is this done?<br />
<br />
We&#039;re using Microsoft SQL Server 2008.<br />
<br />
<a href="https://stackoverflow.com/questions/7917695/sql-server-return-value-after-insert" target="_blank" class="externalLink" rel="nofollow">Continue reading...</a>]]></content:encoded>
    </item>
    <item>
      <title>How can ship multiple different sources for the laravel-vite-plugin besides app.js?</title>
      <pubDate>Sat, 29 Nov 2025 17:17:06 +0000</pubDate>
      <link>http://www.4each.com.br/threads/how-can-ship-multiple-different-sources-for-the-laravel-vite-plugin-besides-app-js.165525/</link>
      <guid>http://www.4each.com.br/threads/how-can-ship-multiple-different-sources-for-the-laravel-vite-plugin-besides-app-js.165525/</guid>
      <author>pileup</author>
      <dc:creator>pileup</dc:creator>
      <content:encoded><![CDATA[Currently the app has 2 entry points for the JS and CSS files in the blade layout file:<br />
<br />
{{-- layout.blade.php --}}<br />
&lt;head&gt;<br />
    &lt;meta charset=&quot;utf-8&quot; /&gt;<br />
    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;<br />
<br />
    &lt;title&gt;{{ $title ?? config(&#039;app.name&#039;) }}&lt;/title&gt;<br />
    &lt;link rel=&quot;icon&quot; href=&quot;/favicon.ico&quot; sizes=&quot;any&quot;&gt;<br />
    &lt;link rel=&quot;icon&quot; href=&quot;/favicon.svg&quot; type=&quot;image/svg+xml&quot;&gt;<br />
    &lt;link rel=&quot;apple-touch-icon&quot; href=&quot;/apple-touch-icon.png&quot;&gt;<br />
<br />
    @vite([&#039;resources/css/app.css&#039;, &#039;resources/js/app.js&#039;])<br />
&lt;/head&gt;<br />
<br />
<br />
But, I have many other JS and CSS files inside /resources/js and /resources/css.<br />
<br />
How am I supposed to deal with it?<br />
<br />
Let&#039;s say I have another blade view that uses the above layout:<br />
<br />
{{-- my_view.blade.php --}}<br />
@extends(&#039;layouts.app&#039;)<br />
@section(&#039;content&#039;)<br />
@endsection<br />
<br />
<br />
And I want to use some JS scripts and CSS files only for this page, what is the way to do it...<br />
<br />
<a href="http://www.4each.com.br/threads/how-can-ship-multiple-different-sources-for-the-laravel-vite-plugin-besides-app-js.165525/" target="_blank" class="externalLink" rel="nofollow">How can ship multiple different sources for the laravel-vite-plugin besides app.js?</a>]]></content:encoded>
    </item>
  </channel>
</rss>
