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

    SQL Stored Procedure not giving correct results


    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
    Sterling Heights, Michigan
    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.

Similar Threads

  1. MS SQL Stored Procedure Creator
    By Walter in forum Database
    Replies: 2
    Last Post: 02-07-2006, 04:33 PM
  2. SQL Server Stored Procedure
    By software_develo in forum Database
    Replies: 1
    Last Post: 10-31-2005, 06:25 AM
  3. Get records from SQL stored Procedure
    By Mike in forum VB Classic
    Replies: 1
    Last Post: 06-17-2002, 02:13 PM
  4. Shaped Stored Procedure in SQL Server
    By Gigi in forum Database
    Replies: 0
    Last Post: 04-11-2001, 06:25 AM
  5. Re: ODBC error
    By Devaraj in forum Enterprise
    Replies: 0
    Last Post: 05-11-2000, 12: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
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

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