MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 20th, 2012, 02:36 PM
unscarred unscarred is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2012
Posts: 1 unscarred User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 43 m 57 sec
Reputation Power: 0
Question <---rookie (SQL Query Help)

Thanks in advance for taking the time to check this out...

I've recently became the administrator of a powerful SPC and data collection tool (infinityqs) at work. The application uses a Data Management Service that essentially allows us to communicate with other applications.

My task was to create a DMS Config. (provider) that would read the last saved database test value (TOP 1) for use with calculations.

I successfully created two DMS Configurations doing so and performed the necessary calculations. My delima is I now need to do this for ten other test values. I do not want to create DMS Config for each test value as it slows down the system and is inefficient.

Here is my SQL for one test value (working):
NOTE: The application I'm using gives me a "Startup" field and a "Processing" field

Startup:
SELECT TOP 1 F_SGRP FROM SGRP_TST WHERE F_TEST=1342169992 ORDER BY F_SGRP ASC

Processing:
SELECT TOP 1 F_SGRP, F_TEST, F_VAL FROM SGRP_TST WHERE F_TEST=1342169992 AND F_SGRP>%F_SGRP% ORDER BY F_SGRP DESC

I'm hoping there is a way to select multiple "F_VAL" variables from multiple "F_TEST" ID's ... possibly assign each of them to a variable name

I've done a lot of researching to no avail. Any help is greatly appreciated

Thanks a million,
Rob

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > <---rookie (SQL Query Help)

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap