Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8864859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T16:21:35+00:00 2026-06-14T16:21:35+00:00

The problem is as follows: There is a legacy intranet app that is, basically,

  • 0

The problem is as follows:

There is a legacy intranet app that is, basically, a bunch of web forms.
The DB that serves it is Postgres.
The app is documented (poorly, but documented) so I am more or less aware which rows and columns are involved in what.

What I want, is to be able to count all the human-readable characters (spacebars included) that were entered in the web form’s text fields (basically, do the equivalent of Openoffice Writer’s / MS Word’s Statistics feature, but only with character count. Counting words not needed)

The values of text fields are strewn across several tables.

Use scenario:

There is a bunch of text that has to be fed to that DB via web form, it is now handwritten.
A person will come and type it in.
Person is going to be paid per-character.

So the idea is to do a “character count” from the DB at beginning of day, and then do a “character count” after workday. Subtract the former from the latter and pay the typist his due.

There will be no more than one typist working at a given time, so determining who is responsible for given new characters is not required.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T16:21:36+00:00Added an answer on June 14, 2026 at 4:21 pm

    Basically, you need query like this:

    select sum(count) from (
      (select sum(length(C1)) as count from T1)
      union all
      (select sum(length(C2)) as count from T2)
      union all
      ...
      (select sum(length(CN)) as count from T3)
    ) as x
    

    where C1, …, CN and T1, …, TN are column and table names respectively.

    if table X has multiple text columns you can merge multiple (select sum(length(CX)) from TX) queries into one:

    select sum(length(C1)) + sum(length(C2)) + ... + sum(length(CN)) as count from TN
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A minimal code that reproduces the problem is as follows: <div class=cell> <input type=text
I'm facing a problem that I can summarize as it follows: I have a
When I write a C program, I encountered a problem that is as follows:
I'm working with a legacy Java app that has no logging and just prints
The problem is as follows: There is a massive codebase in Java (hundreds of
The problem is as follows: There is one friendly number and N unfriendly numbers.
The problem runs as follows: if there are two strings str1 and str2 ,
My problem is as follows: I have an array of strings that contain dates
I'm trying to solve a Java synchronization problem. The case is as follows: There
My problem is as follows: I have a bunch of Xpath queries, and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.