by: Joseph Santaniello |
last post by:
Hello all,
I have a table with among other things a timestamp field. To get the
count of records per hour I do:
select
count(*) as c,
date_trunc('hour', timestmp) as h
from
mytable
|
by: Chris |
last post by:
Hello all,
I'm having some trouble setting up a query.
Background: The table TBLSCREEN stores data about screenings of
patients/subjects for eligibility to participate in a health study. A...
|
by: mjobrien |
last post by:
Thanks for the hint Allen (see below). But I am already doing that
count as total records read (5)in the report footer. That count is
unduplicated for the record not for the field - student ID as...
|
by: Thomas |
last post by:
Hi!
I´m a newbie with this and I´m trying to build a forum of my own but
have stumbled on my first problem as early as the opening page.
To the problem:
I want to show a simple forum layout...
|
by: Igor |
last post by:
I have one SELECT statement that needs to return one ntext field from
one table and count something from other table, problem is that all
fileds that are not in count have to be in group by and...
|
by: zafm86 |
last post by:
Hi everyone!
I'm sure my problem is pretty easy to solve but I've been working on it for a long and my my brain is not working correctly anymore.
I'm working with an AS400 and I mhave to do an...
|
by: wadecarlson |
last post by:
hey guys i have a problem with dups in my statement. ive tried using multiple select statements but i just cant get it. any help would be greatly appreciated.
here is the sql:
SqlJunk = "...
|
by: arial |
last post by:
I need to write a query which would give me result like this:
name Code1 code2 code3 ect
J Doe 10 2 3
J Smith 8 ...
|
by: ArcticCircuits |
last post by:
Greetings,
As part of my Highschool project I had to come up with a themed database with a bunch of tables to query from, so I came up with a 'police' database. I am trying to get a count of all...
|
by: achikeziey |
last post by:
select mobile ,count(id) from
(select mobile ,id from phone_1204 where astatus='newsub' and left(service,4)='euro'
union all
select mobile,id from phone_1205 where astatus='newsub' and...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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,...
|