You can try below query
SELECT (
SELECT count(*)
FROM wp_users as temp
WHERE DATE(temp.user_registered) = DATE(wp_users.user_registered)
) as counter,
wp_users.*
FROM wp_users
Related Posts:
- How To Get Some Data From WordPress Database Using WordPress $wpdb Query?
- Return only Count from a wp_query request?
- Export wordpress table to excel
- How to make an activities stream mixing posts and comments?
- WP_Query Performance Issues with meta_query
- Should close $wpdb via $wpdb->close()
- Get the post permalink within the loop but without additional DB query
- Order by custom table and multiplication
- How to correctly pass values to wpdb->prepare()?
- Custom Query num_rows returns wrong amount
- Iterating through $wpdb query without using get_results for large query results
- wp_Qwery works to slow
- No results found from a $wpdb->get_results() query when trying to join more than one meta key query
- How to access custom WordPress database tables
- Is it possible to query from external database? [duplicate]
- WordPress query posts with multiple post_meta data
- List of ways to access WordPress database?
- Specify strict ‘order by’ in WordPress query
- How to set up hierarchical relationships without using plugins / meta query
- Does WordPress have something like Drupal’s DB API?
- Disable (or limit) queries when certain content (or data) is not needed (or showed)
- Any way to use FETCH_KEY_PAIR with $wpdb?
- Doing $wpdb->get_results returns NULL, doing the same query in my DB returns correct value
- How to get meta key list efficiently?
- How to get user avatar via WPDB
- Include post_status check within $wpdb query
- WP_Query always returning the last custom post
- Optimising amount of calls to custom fields
- How much does $wpdb->prepare(), then $wpdb->query() VS straight $wpdb->query(), can slow down the load time of whole page
- how to use transient method?
- order by numeric value for meta value
- WP_Comment_Query pagination, delving into the unknown
- Sort posts by category name and title
- Add indexing to meta_value in wp_postmeta
- Query causing load because of SQL_CALC_FOUND_ROWS post counting?
- What is an efficient way to query based on post_meta?
- Highlighting Sub topic in a post?
- how to retrieve specific product attribute value in an sql query?
- WordPress custom archive page
- Splitting the main query in multiple loops with query_posts and/or pre_get_posts?
- Retrieve or Query Pages by ID
- Retrieve featured image (thumbnail) url from multiple posts with one query
- How to implement time filter to show random post 1 month for one category and 3 months for other categories
- Get the Plugin Which Triggered a MySql Query in WordPress?
- How to do a query on custom taxonomies that is uncategorised?
- Empty tax_query array returns an empty array
- How do I search inside specific taxonomies in WordPress
- if/else on custom query gives 200 OK when condition not met?
- What’s the purpose / logic of split_the_query in WP_Query->get_posts
- Setting get_queried_object
- remove query arg from url after set query
- difference between like ‘%%%var%%’ and ‘%var%’
- Create WP_Query to search for posts by their categories or their parent/child categories
- Sort query by author: 1 author, then others
- Overwrite YoastSEO meta-tags with another page’s [closed]
- How to orderby multiple meta fields if some fields are empty
- Filtering posts from different categories into different section by doing WP_Query only once
- How to duplicate 5 posts out of WP_Query results?
- WP_query sorting can’t sort danish letters (æ, ø, å)
- Slow queries on a huge database
- Multisite pagination issue by multi query archive 404
- Query with relation and one without relation using multiple taxonomies?
- How Can I Put Meta_Compare in the Database-Query?
- plugin code is pulling information from database in one instance and not in other. What is wrong?
- Query only the posts with a post format of “audio”
- pre_get_posts – Trying to get property of non-object warning
- Custom WordPress Table wpdb
- get_post() is not returning correct value
- Update query for wp_posts and wp_postmeta
- WP_Query with page_ids in arguments without a result
- Insert images into wordpress post with a query
- WP_Query meta compare must include ALL array values
- Passing a SQL query to the WP Query
- How to insert a value to decimal type field using wpdb->prepare?
- Why last row deleted when refresh page
- pre_user_query vs pre_get_posts
- How to get inserted row IDs for bulk/batch insert with wpdb query?
- Query a database based on form input then output to another page [closed]
- Adding nofollow to all the post links in get_posts with pre_get_posts or WP_Query
- Meta query orderby meta_value_num sorting by role first
- How to extend WP_query to a specific table?
- Add to search posts query array with post IDS which will appear first
- How to show terms from another taxonomy
- My entry results are not consistently alphabetized
- Ignoring ‘a’ when sorting posts
- Custom query for tag and custom tag from 2 post type
- Query posts in current category but not attachment format
- wp_query – Modify $query to include duplicate content
- Optimising specific Query with ACF meta objects
- How to get several fields from wp_query?
- Slow getting posts from category
- Pagination not working with WP_Query (creates links but no page)
- Query custom post type by date field only working when two posts match the query
- Divide WP_Query posts by date & post type
- Query Posts by date range with fixed beginning and end
- query by meta value then date and not empty meta value
- New WordPress WP Query using posts from certain categories
- SQL query into to WP query
- Search results stuck on page 1
- Use value from meta key array for use in WP_Query