473,395 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

write a sql query to find the number of employees made the transactions in a store by

write a sql query to find the number of employees made the transactions in a store by month where there can be multiple transactions by each employee
Oct 30 '18 #1
1 2403
Luuk
1,047 Expert 1GB
Since by now you are probably too late for your homework anyway …

Expand|Select|Wrap|Line Numbers
  1. SELECT
  2.    COUNT(NumberOfEmployees)
  3. FROM Store
  4. WHERE
  5.   NumberOfTransactions >= 1
  6. GROUP BY
  7.   Month
If this is not what you want, you should stop doing this course, and start doing a course where you learn to properly explain what you want to accomplish.

Also it would be of help to kno what kind of data you have to get the results you want.

In this case:
How are transactions stored in your database, How is the table transactions defined? (and the same question for the table employees)

If this information is not known, to a reader here, no one could give a correct answer.
Nov 4 '18 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: sunmat | last post by:
To find number of character without space using java Example: String = prabu sun No. of char =8 plz send me code
0
by: sara | last post by:
Hi - I have a table keeping track of employees' jobs in a location. So, Store #1 Manager #353, AsstMgr #556 Store #2 Manager #776, AsstMgr #132 etc. The table is Date StoreNum MgrNum ...
1
by: aaron5150 | last post by:
OK so here goes. I have created a table for my "employees details" including "employee number". I have also completed another table which shows orders by "employee number", details of order etc. ...
58
by: sh.vipin | last post by:
is there any way to find out number of bytes freed on a particular free() call in C
3
by: Praveen Raj V | last post by:
"socket.Available" is not working. How would you Determine number of bytes present in a TCP/IP socket before reading those bytes without using socket.Available void Receive(Socket socket, byte...
2
by: zeon rose | last post by:
In the c pgm to find number of digits , if I am giving 001 as the input number ,why I am not getting the no. of digits as 3?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
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...
0
marktang
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,...
0
Oralloy
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,...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.