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

  • SEARCH
  • Home
  • 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 8435429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:54:45+00:00 2026-06-10T06:54:45+00:00

I am trying to grouped by attribute 2 [pos] of sqlite database and then

  • 0

I am trying to grouped by attribute 2 [pos] of sqlite database and then get max value of attribute 1 [tagcount].
This works fine in sqlite3 on cygwin.

 sqlite> 
     select max(tagcount),pos 
     from (
          select tagcount,pos 
          from sense,synset 
          where sense.synsetid=synset.synsetid 
            and wordid in(
                      select wordid 
                      from word 
                      where lemma="run"
                         )
           ) 
      group by pos 
      order by tagcount DESC; 

Resulting in the following output

106|v

18|n

But when I copy the exact query in VB.net it gives me the following error

You tried to execute a Query that does not include specific expression
‘tagcount’ as part of aggregate function

What change should be made in the query so that VB.net does not complaint about it?

  • 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-10T06:54:47+00:00Added an answer on June 10, 2026 at 6:54 am

    It may be your order by as it’s not an aggregated value and isn’t included in your group by.

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

Sidebar

Related Questions

I'm trying to update a column to a max value, but only when grouped
I was trying to do a join and then a group by, My grouped
I have a grouped UITableView in my code and am trying to get the
I am trying to get the average of the lowest 5 priced items, grouped
I'm trying out this nice way of customizing grouped UITableViewCell backgrounds: http://code.coneybeare.net/how-to-make-custom-drawn-gradient-backgrounds I've implemented
Just trying to show grouped radio buttons on a page and get a selected
I am trying to show Grouped Products list based on attributes of its associated
I´m trying to add a shadow to a grouped UITableView (above each section) like
I am trying to make an app in which i use the Grouped Table
I have 3 UITextFields in a grouped UITableView and am trying to figure out

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.