PHPMem v2.0.1

Version
1.6.45
Uptime
17 days 8 hours 37 seconds

Memory

Total
512MB
Used
12,72MB (2.48%)
Free
499,28MB

Keys

Current
14 060
Total (since start)
40 994
Evictions
0
Reclaimed
760
Expired Unfetched
0
Evicted Unfetched
0

Connections

Current
15 / 1 024 max
Total
227 480
Rejected
0
llm:5f85f253807e1e3c7816816372f6b4d741fd0596d59168a15e4060af633241b0
TTL 5 days 19 hours 12 minutes 9 seconds Size 1,97KB Export
Edit
<invoke name="tool_call"> <parameter name="reasoning">Combine all five tables and measure exact full-row duplicates and company-name duplicates within and across months in one query.</parameter> <parameter name="tool">query_sql</parameter> <parameter name="args">{"sql": "WITH u AS (SELECT 'Jan' m, \"Company Name\" c, CAST(Founded AS VARCHAR) f, Location l, Sector s, \"What it does\" w, Founders fo, Investor i, Amount a, Stage st FROM raw.\"Indian Startups _ Funding Investors Data January 2022\" UNION ALL SELECT 'Feb', \"Company Name\", CAST(Founded AS VARCHAR), Location, Sector, \"What it does\", Founders, Investor, Amount, Stage FROM raw.\"Indian Startups _ Funding Investors Data February 2022\" UNION ALL SELECT 'Mar', \"Company Name\", CAST(Founded AS VARCHAR), Location, Sector, \"What it does\", Founders, Investor, Amount, Stage FROM raw.\"Indian Startups _ Funding Investors Data March 2022\" UNION ALL SELECT 'Apr', \"Company Name\", CAST(Founded AS VARCHAR), Location, Sector, \"What it does\", Founders, Investor, Amount, Stage FROM raw.\"Indian Startups _ Funding Investors Data April 2022\" UNION ALL SELECT 'May', \"Company Name\", Founded, Location, Sector, \"What it does\", Founders, Investor, Amount, Stage FROM raw.\"Indian Startups _ Funding Investors Data May 2022\") SELECT lower(trim(c)) AS company, COUNT(*) AS n_rows, COUNT(DISTINCT m) AS n_months, string_agg(m || ':' || coalesce(a,'NULL') || ':' || coalesce(st,'NULL'), ' | ') AS detail, COUNT(DISTINCT (coalesce(f,'')||coalesce(l,'')||coalesce(s,'')||coalesce(w,'')||coalesce(fo,'')||coalesce(i,'')||coalesce(a,'')||coalesce(st,''))) AS distinct_versions FROM u WHERE c IS NOT NULL GROUP BY 1 HAVING COUNT(*)>1 ORDER BY n_rows DESC, company", "purpose": "Find companies appearing more than once across/within monthly tables, and whether the rows are identical", "source": "raw"}</parameter> </invoke>