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 6971797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:53:09+00:00 2026-05-27T16:53:09+00:00

Please look at my table’s structure: ————- | id | name | ————- |

  • 0

Please look at my table’s structure:

-------------
| id | name |
-------------
| 1  |  a   |
| 2  |  a   |
| 3  |  a   |
| 4  |  b   |
| 5  |  b   |
| 6  |  c   |
| 7  |  d   |
| 8  |  d   |

I would like to create a query (in PHP), to get such results (in HTML):

<p>name: a (number of letters: 3)</p>
<p>name: b (number of letters: 2)</p>
<p>name: c (number of letters: 1)</p>
<p>name: d (number of letters: 2)</p>
  • 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-05-27T16:53:09+00:00Added an answer on May 27, 2026 at 4:53 pm
    SELECT count(name),
           name 
      FROM MyTable 
      GROUP BY name 
      ORDER BY name ASC;
    

    I assumed your table is named MyTable exchange it accordingly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

look at this table please table |id| |name| |order| i must get the rows,
Please look at this query. select name form table Let suppose this returns 100
please have a look at the following table: name | x | y ---------+-----+------
Please look the below table, RowID Name Age 1 Karhik 26 I want result
Please look into the below query declare @t table(roleid int null,EmailAddress varchar(50) null) insert
my table look like this.. id name count -- ---- ----- 1 Mike 0
Please look that alias name. I hope to set the value into a string
i need this table look please TABLE2 Table1 VisitingCount Date 1-------------------15:09 3-------------------15:10 7-------------------15:15 1-------------------15:39
Please have a look at the below SQL code. DECLARE @RET TABLE(OID BIGINT NOT
Please look at the code below. require_once(initvars.inc.php); require_once(config.inc.php); ?> <?php if($latestads_count) { ?> <div

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.