Home  |  Forums  |  914 Info  |  Blogs
 
914World.com - The fastest growing online 914 community!
 
Porsche, and the Porsche crest are registered trademarks of Dr. Ing. h.c. F. Porsche AG. This site is not affiliated with Porsche in any way.
Its only purpose is to provide an online forum for car enthusiasts. All other trademarks are property of their respective owners.
 

Welcome Guest ( Log In | Register )

> OT: need SQL help, asking the gurus ...
SirAndy
post Jul 22 2004, 12:30 PM
Post #1


Resident German
*************************

Group: Admin
Posts: 41,669
Joined: 21-January 03
From: Oakland, Kalifornia
Member No.: 179
Region Association: Northern California



ok, here's the problem:

let's say i have a table with 2 rows like the example below. in the second row, i have a integer status value (iStatus). i need a query that allows me to find the value that occurs the most in the table, in the example below, that would be "3". i'm not interested in how many 3s there are, all i need is to find out which iStatus value shows up the most in the table ...

(IMG:style_emoticons/default/pray.gif)


Attached image(s)
Attached Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic
SirAndy   OT: need SQL help   Jul 22 2004, 12:30 PM
lapuwali   Oracle, MySQL, SQLServer, DB2, etc? It will make ...   Jul 22 2004, 12:36 PM
SirAndy   ...   Jul 22 2004, 12:40 PM
Cloudbuster   select top 1 count(iStatus) as StatCount, sDescrip...   Jul 22 2004, 01:18 PM
SirAndy   <...   Jul 22 2004, 02:02 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 1st June 2024 - 08:48 AM