Viewing 15 posts - 1,081 through 1,095 (of 2,171 total)
I don't remember him writing so, but I think I will believe you.
It's your report, not mine.
N 56°04'39.16"
E 12°55'05.25"
February 5, 2008 at 2:51 pm
Yes, but unlike Access, the view must contain one table only and have an identity column.
N 56°04'39.16"
E 12°55'05.25"
February 5, 2008 at 2:38 pm
antonio.collins (2/5/2008)
N 56°04'39.16"
E 12°55'05.25"
February 5, 2008 at 2:19 pm
antonio.collins (2/5/2008)
N 56°04'39.16"
E 12°55'05.25"
February 5, 2008 at 1:56 pm
antonio.collins (2/5/2008)
N 56°04'39.16"
E 12°55'05.25"
February 5, 2008 at 1:51 pm
This?
DECLARE @Sample TABLE (Gadget CHAR(8), Price MONEY)
INSERT@Sample
SELECT'Widget A', 74.85 UNION ALL
SELECT'Widget A', -74.85 UNION ALL
SELECT'Widget A', 14.97 UNION ALL
SELECT'Widget A', 4.99 UNION ALL
SELECT'Widget A', 49.90...
N 56°04'39.16"
E 12°55'05.25"
February 5, 2008 at 12:11 pm
Dates need to be enclosed with single quotes.
DECLARE @the_date_string NVARCHAR(30),
@the_date DATETIME,
@sql_string NVARCHAR(100)
SELECT@the_date_string = '01/31/2008 9:33 PM',
@the_date = CONVERT(datetime, @the_date_string, 101)
SET@sql_string = 'SELECT ''' + @the_date_string + ''' AS theDate'
EXEC(@sql_string)
N 56°04'39.16"
E 12°55'05.25"
February 5, 2008 at 10:24 am
Something similar to
SELECT TOP 10Col1,
SUM(Col2)
FROMTable1
GROUP BYCol1
HAVINGSUM(Col2) > 0
ORDER BYSUM(Col2) DESC
N 56°04'39.16"
E 12°55'05.25"
February 5, 2008 at 10:12 am
My suggested algorithm fetches only the top 10 records based on the column that ranking is calculated on.
I then calculate the ranking for only these 10 records.
Then I eventually fetch...
N 56°04'39.16"
E 12°55'05.25"
February 5, 2008 at 8:55 am
Try to add a UNIQUE index or an UNIQUE constraint.
N 56°04'39.16"
E 12°55'05.25"
February 5, 2008 at 8:53 am
I have no idea what you mean.
Do you have 5 tables named "1", "2", "3", "4" and "5"?
Do you have 1 table with 5 columns named "1", "2", "3", "4"...
N 56°04'39.16"
E 12°55'05.25"
February 5, 2008 at 8:52 am
Well, in my temp table algorithm above it takes an average of 80 milliseconds to fill the temptable and get the rankings calculated...
Are you sure we are talking about the...
N 56°04'39.16"
E 12°55'05.25"
February 5, 2008 at 8:38 am
SELECTPoleID,
FROMTable1
GROUP BYPoleID
HAVINGMAX(CASE WHEN AttachDate IS NOT NULL AND PoleDT IS NULL THEN 0 ELSE 1 END) = 0
N 56°04'39.16"
E 12°55'05.25"
February 5, 2008 at 8:23 am
antonio.collins (2/5/2008)
N 56°04'39.16"
E 12°55'05.25"
February 5, 2008 at 8:15 am
I don't think COALESCE will work in this case.
Try
SELECTA.EMPLID AS PERSON_NBR,
'005/116/' + LEFT(A.DEPTID, 5) + '/' + A.JOBCODE + '/NA/NA/NA' AS LABORACCOUNT,
0 AS HOURLY_RT,
'' AS SUPERVISOR_NAME,
A.EMPL_STATUS AS EMPL_STATUS,
D.SERVICE_DT AS HIRE_DT,
''...
N 56°04'39.16"
E 12°55'05.25"
February 5, 2008 at 8:08 am
Viewing 15 posts - 1,081 through 1,095 (of 2,171 total)