Microsoft
Software
Hardware
Network
Question : Need a SQL query
2 tables: userfile & rcvfile
need a query to create a list of distinct users that are authorized to receive materials, how many times they have received materials and the last date they received materials
userfile
userid
authorized (list of authorized actions for userid separated by a tilde (~), RECEIVER means they can receive materials)
rcvfile
receiveperson (matches userid above)
receiptdate
I believe that is all you should need. I have thus far:
SELECT userid FROM userfile
WHERE authorized LIKE '%RECEIVER%'
Thanks in advance.
- Jim
Answer : Need a SQL query
SELECT u.userid, COUNT(r.rcvfile), MAX(r.receiptdate)
FROM userfile u
left join rcvfile r on r.receiveperson = u.userid
WHERE u.authorized LIKE '%RECEIVER%'
group by u.userid
>> SQL 2008 and intellisense.... expanded my "m" to "master"
Random Solutions
I need your advice in this class php
get 550 5.7.1. Unable to relay for specific domains....
Allow odbc connection to MySQL
Hi - cisco 1840 - what is the default password please - http or via console
Please wait while Windows configures Crystal Reports Release 2
Oracle qry on system tables
BULK UPDATE
Why does my memory say Installed memory RAM 24.0 (16.0 GB Usable) ?
Internet Browser disabled - message is "Hyper Bar 1"
Change the powershell script to write to a file rather than updating to the computer object.