|
by: puskas |
last post by:
I'm trying to make a report of users per hour (I have one that works for users per day) but when I execute the query I realize that I get more users than the ones I have
here is my query
select datepart(hour,date) as 'Hour',
count (distinct user) 'User'
from mensajeejb
group by datepart(hour,date)
order by datepart(hour,date)
|
by: Leny |
last post by:
Hi,
Since Access doesn't support COUTN DISTINCT, I'm facing a new
problem I didn't take into account: how to get the count of PK's in a
complex query. I create queries on the fly -this means I can't use a
stored macro or even a query view-.
A simple example: Let's say you have a simple database with three
tables: People, Laguages and a table with the relationship between
them. How do you retrieve the count of persons who don't speak...
|
by: Bill |
last post by:
Someone (Kevin i think) was looking for a way to do a distinct count,
not sure if i'm using this groups thing right - was trying to supply
answer. Anyway, this is a function i wrote for it... hope it gets to
you. just copy and past it into a module and call it as you would
dcount()
Public Function CountDistinct(Field As String, QueryOrTableName As
String, AdditionalCriteria As String)
Dim dbs As Database
|
by: Michael Howes |
last post by:
I have a single DataTable in a DataSet. It has 4 columns and i'd like to
get a handful of counts of unique items in 3 of the 4 columns.
Can a DataTables Select or Compute methods to COUNT DISTINCT?
These two attempts failed
DataRow dr = ds.Tables.Select( "COUNT(DISTINCT(site_name))" );
object x = ds.Tables.Compute( "COUNT(DISTINCT(site_name))",
"ProductionCount > 0" );
|
by: aps786 |
last post by:
Hi,
There is a table where I store ipaddress and user who logged in from that IP. I have a query to findout all ipaddresses, from where diff users had made request.
stat
------------
ip
userid
I wrote query like this
|
|
by: Mina Patel |
last post by:
Hi trying to find the number of duplicate tuples/records in table based on multiple columns ie.
select count(distinct list multiple column key )
from x
where date = y
HAVING ( COUNT(multiple column key) > 1 )
doesn't seem to work....any tips? thanks
|
by: bhcob1 |
last post by:
Hi guys,
I have access 2000, I have a form frmCSOC, with a field that can have duplicates, I want a label to display how many records there are with DISTINCT values.
I have heard that the DISTINCT keyword does not work on Acc2000.
Thanks Guys
|
by: tom booster |
last post by:
Hi All,
I'm trying to convert a T-SQl query to DB2.
I have two tables policy and policyHolder.
I would like a count of the amount of distinct poicyHolders per
policy, for a particular set of new policies.
select P.policyID, (select count(PH.PolicyHolderId) from PolicyHolder
PH where PH.policyID=P.policyID) CountPolicyHolders from Policy P
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|