SQL Stored Procedure not giving correct results


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: SQL Stored Procedure not giving correct results

  1. #1
    Join Date
    Apr 2009
    Posts
    31

    SQL Stored Procedure not giving correct results

    Everyone,

    I've been working on a stored procedure on my SQL server to basically do a few things:

    1. Look at an oncall schedule for any given day.
    2. See who is oncall for that day, and if there are more than one results for any schedule, present them back to me.
    3. If no one is on call for that day, present a "No o/c listed" result back to me.

    I can get the first two to work but not the last part. I have the SP and will post it if anyone would like to see it.

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Without knowing what you tried that hasn't worked and the structure of the table that the information is being stored in that you are trying to retrieve it would be difficult to offer anything remotely constructive.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. MS SQL Stored Procedure Creator
    By Walter in forum Database
    Replies: 2
    Last Post: 02-07-2006, 05:33 PM
  2. SQL Server Stored Procedure
    By software_develo in forum Database
    Replies: 1
    Last Post: 10-31-2005, 07:25 AM
  3. Get records from SQL stored Procedure
    By Mike in forum VB Classic
    Replies: 1
    Last Post: 06-17-2002, 03:13 PM
  4. Shaped Stored Procedure in SQL Server
    By Gigi in forum Database
    Replies: 0
    Last Post: 04-11-2001, 07:25 AM
  5. Re: ODBC error
    By Devaraj in forum Enterprise
    Replies: 0
    Last Post: 05-11-2000, 01:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center