Viewing 15 posts - 5,206 through 5,220 (of 10,144 total)
CassieF (2/11/2013)
ho hum..SQL Server 2000 - 8.00.2039 (intel x86)
Heh no worries. Try this;
SELECT
MarketName,
COUNT(*)
FROM (
SELECT --top 100 percent
f.FormName,
m.MarketName
FROM Form f
INNER JOIN FormMarkets_Link l
ON f.FormID =...
February 11, 2013 at 9:45 am
CassieF (2/11/2013)
oohh phooey, i am on a higher version than that.. 2008R2
It works fine on 2008R2, that's what I tested the script on. Are you sure that the server you...
February 11, 2013 at 9:28 am
CassieF (2/11/2013)
it also didnt pink out the first [count] so i...
February 11, 2013 at 9:21 am
sku370870 (2/10/2013)
DECLARE @LastOne bit = 0
CREATE TABLE #tblTasks
(
TaskID int,
...
February 11, 2013 at 9:17 am
Ed Wagner (2/11/2013)
insert into different_table(computername, auditid, auditdate)
select computername, auditid, auditdate
from original_table a1
where auditdate =...
February 11, 2013 at 9:02 am
Paul Munter (2/11/2013)
February 11, 2013 at 9:01 am
You can have whatever headings you want:
SELECT [Count] = 1, [Market name] = 'Borough Market'
What's important is the column content. Can you explain further? Is it something like this?
SELECT...
February 11, 2013 at 8:52 am
Paul Munter (2/11/2013)
February 11, 2013 at 8:40 am
Paul Munter (2/11/2013)
Exactly like that Chris, yes.
Cool, it was a lucky guess. Now what do you want to do with it?
February 11, 2013 at 8:18 am
Something like this?
DROP TABLE #mytable
CREATE TABLE #mytable
(P_KEY INT IDENTITY(1,1) PRIMARY KEY CLUSTERED,
LAST_DAY_OF_MONTH DATETIME,...
February 11, 2013 at 8:08 am
Hi Paul
You have rows in your table which have a datetime column. You want to pick some rows which have a "recent" date, from the table. On the same output...
February 11, 2013 at 7:31 am
Jason-299789 (2/11/2013)
Chris,I've never seen the recursive CTE method before, and looks like a viable option to the quirky update to a point.
Hi Jason, it's been subjected to a significant...
February 11, 2013 at 7:00 am
lilywhites (2/11/2013)
ive got this running in under 20 seconds....ill look into those other methods
many...
February 11, 2013 at 6:57 am
huy1002 (2/10/2013)
ComputerName. AuditId. AuditDate.
A. 111. 1/1/13
A. 222. 2/1/13
A. 000. 2/1/13
B. 111. 1/1/13
C. 000. 1/1/13
C. 111. 2/1/13
AuditId equals to zero telling no vulnerability found on that day scan.
I need...
February 11, 2013 at 6:14 am
Jason-299789 (2/11/2013)
February 11, 2013 at 6:12 am
Viewing 15 posts - 5,206 through 5,220 (of 10,144 total)