Viewing 15 posts - 181 through 195 (of 395 total)
Is there a way to order by COUNT like?:
New York 73,152
Chicago 34,152
Los Angeles 15,252
I'm using this as a learning exercise too, so if anyone has any PARTITION BY or WITH...
January 2, 2020 at 4:01 pm
"ODBC--connection to CCE_Ethics_DB' failed."
Using "User" type DSN
December 18, 2019 at 7:08 pm
Thanks Jonathan it worked!!
November 21, 2019 at 4:15 pm
My problem is this part/count gives the correct figure of 4,090:
SELECT count(p.[peopleId]) AS 'Inactives'
FROM [BCC_DB].[dbo].[People] p
And this gives the correct figure of 2,126:
(SELECT count(p.[peopleId])...
November 21, 2019 at 4:13 pm
Here's what I'm using in Access to insert a record:
Private Sub cmdSave_Click()
Dim strCUser As String
strCUser = CurrentUserName
Dim con As adodb.Connection
Dim cmd As adodb.Command
Dim rs As adodb.Recordset
Set con...
October 10, 2019 at 6:00 pm
Actually this compiles but I need to have "OriginalDatabaseID" returned as text rather than number:
CREATE VIEW [dbo].[GCDFview]
AS
SELECT p.FirstName, p.LastName, c.city, p.instructorInt as 'Instructor'
, s.stateAbbrveation AS 'State', 'USA'...
July 2, 2019 at 8:23 pm
Like this? The compiler is throwing an error on one of the "=" signs:
SELECT p.FirstName, p.LastName, c.city,
OriginalDatabaseId = iif(InstructorInt = -1,-1,p.PeopleId),
s.stateAbbrveation AS 'State', 'USA' AS Country,...
July 2, 2019 at 8:15 pm
Thank you... works perfectly!
July 1, 2019 at 4:43 pm
I'm using SQL Server but got mixed up as the database has an Access frontend which uses Now().
April 29, 2019 at 3:50 pm
That works perfectly... thanks for the help!
April 25, 2019 at 3:49 pm
The below works except it doesn't label each total:
SELECT [Actives] FROM [GCDF_DB].[dbo].[vTotalActives] as "Actives GCDF"
UNION ALL
SELECT [Actives] FROM [ACS_DB].[dbo].[vTotalActives] as "Actives ACS"
UNION ALL
SELECT [Actives] FROM [BCC_DB].[dbo].[vTotalActives] as...
April 25, 2019 at 3:40 pm
March 26, 2019 at 12:08 pm
;WITH cte_dups AS (
SELECT *, ROW_NUMBER() OVER(PARTITION BY name ORDER BY id...
March 26, 2019 at 11:47 am
Viewing 15 posts - 181 through 195 (of 395 total)