Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7438639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:35:10+00:00 2026-05-29T10:35:10+00:00

I have two tables: one table (okay, it’s a view), vComputer, lists many computers

  • 0

I have two tables: one table (okay, it’s a view), vComputer, lists many computers by unique GUID. Another table, Inv_Screensaver_File_Info, lists a computer if it has run a custom inventory and reported how current its screensaver files are.

I need to list the GUIDs of all computers who are not present in Inv_Screensaver_File_Info, and also any computers who are present but whose Inv_Screensaver_File_Info.LastModified value is less than a particular record’s result in that table, which represents the authoritative source.

This is the record I want all rows to compare to:
MYSERVER B5A85423-26C4-40C0-DA28-237FB4CB0B33 2012-02-09 11:38:50.000
The unique GUID exists as vc.Guid and also as sfi._ResourceGuid

What is the SQL method for doing this?

SELECT vc.Name,
vc.Guid,
sfi.LastModified
FROM vComputer vc
LEFT OUTER JOIN Inv_Screensaver_File_Info sfi ON sfi._ResourceGuid=vc.Guid
WHERE sfi.LastModified IS NULL
ORDER BY sfi.LastModified DESC
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:35:11+00:00Added an answer on May 29, 2026 at 10:35 am
    SELECT vc.Name, vc.Guid
    FROM vComputer vc
         LEFT JOIN Inv_Screensaver_File_Info sfi ON sfi._ResourceGuid=vc.Guid
         INNER JOIN vComputer vc2 ON vc2.Guid = 'B5A85423-26C4-40C0-DA28-237FB4CB0B3'
         INNER JOIN Inv_Screensaver_File_Info sfi2 ON sfi2._ResourceGuid = vc2.Guid
    WHERE sfi.LastModified IS NULL
       OR sfi.LastModified < sfi2.LastModified 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a one to many relationship between two tables. The many table contains
I have two tables. One table contains information about Assets, another Table about their
I have two tables. One table contains comments on posts, another contains commenter information
I have two tables: one called Projects, and another called Documents (projects has many
I have two tables, one is a table of forum threads. It has a
I have two tables, content and images (and a ContentImages table for the one
I have two tables. One table is a fixed column(ie. the table will not
I have two tables: one contains employees information and another is transactions (sales) information
I have two tables. In one table we enter all types of Models, each
I have two tables made in access. One table (Owner) contains: ownerID , name

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.