Viewing 15 posts - 9,061 through 9,075 (of 26,490 total)
qamar 52306 (1/1/2013)
I want to select records such that if a user logs in again within 10 minutes it should ignore it, and only return the rows if the...
January 1, 2013 at 6:08 am
[font="Arial Black"]Happy New Year from the Tent in the Desert![/font]
January 1, 2013 at 6:01 am
opc.three (1/1/2013)
Note: thread is 2+ years old :exclamation:
Was noted, just responding to the alternate way the most recent responder posted. Plus, that is the beauty of this site, it...
January 1, 2013 at 5:27 am
From which table do you want to delete the records?
December 31, 2012 at 10:44 pm
Another way:
declare @CurrentDate datetime;
declare @emp table
(empid int identity(1,1) primary key clustered, dob datetime not null);
insert into @emp (dob)
SELECT convert(datetime,'1962-12-11 00:00:00.000') AS dob UNION ALL
SELECT convert(datetime,'1958-03-28 00:00:00.000') AS dob UNION ALL
SELECT...
December 31, 2012 at 9:59 pm
opc.three (12/31/2012)
December 31, 2012 at 7:41 pm
The following is your code formatted, using 2-part naming in the SELECT list by using table aliases in the FROM clause, and moving the HAVING criteria to the WHERE clause.
SELECT
...
December 31, 2012 at 7:39 pm
cs_source (12/31/2012)
December 31, 2012 at 2:19 pm
The same, check here: http://msdn.microsoft.com/en-us/library/ms188283(v=sql.100).aspx.
December 31, 2012 at 1:57 pm
You were asking the wrong question and it would have helped if you posted the DDL for the tables, the sample data, and expected results to begin with. Look at...
December 31, 2012 at 1:46 pm
CREATE TABLE dbo.vComputer(
Guid VARCHAR(128),
Name VARCHAR(128)
);
GO
INSERT INTO dbo.vcomputer(Guid, name)
VALUES ('333','PC1'),
('222','pc2'),
('111','PC3');
GO
CREATE TABLE dbo.InvInstalledFileDetails(
FileDetailsID INT IDENTITY(1,1),
ResourceGuid varchar(128),
...
December 31, 2012 at 1:17 pm
This seems to work on a single table query:
CREATE TABLE dbo.InvInstalledFileDetails(
FileDetailsID INT IDENTITY(1,1),
FPath VARCHAR(128),
PrgName VARCHAR(128)
);
GO
INSERT INTO dbo.InvInstalledFileDetails(FPath, PrgName)
VALUES...
December 31, 2012 at 12:00 pm
lawson2305 (12/31/2012)
I think this needs to basically bring up all systems distinct and remove what is...
December 31, 2012 at 11:50 am
lawson2305 (12/31/2012)
SELECT DISTINCT i.guid, i.name
FROM dbo.Inv_Installed_File_Details fd
JOIN vComputer i ON i.Guid =...
December 31, 2012 at 10:44 am
December 31, 2012 at 9:06 am
Viewing 15 posts - 9,061 through 9,075 (of 26,490 total)