Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

BO Pri

Posted on May 20, 2013October 26, 2015 By David Kittell
SELECT
	ID
	, RequestNumber
	, cat_id
	, CASE WHEN bo_priority IS NULL THEN '99999' WHEN bo_priority = '0' THEN '99999' else bo_priority
	END as bonpri
	,bo_priority
	, Description
	, requestorID
	, programmerID
	, DeadlineDate
	, ProjectedDate
	, purpose
	, ((SELECT location
FROM
	dbo.tblDefaultLocation
WHERE
tblDefaultLocation.locationid = tblRequestInfo.location) + '-' + (SELECT Status FROM dbo.tblDefaultStatus WHERE tblDefaultStatus.StatusID = tblRequestInfo.statusid)) AS statusid

FROM tblRequestInfo
INNER JOIN tblDefaultApprovalStatus ON tblDefaultApprovalStatus.ApprovalID = tblRequestInfo.managerApprovalID

WHERE
cat_id = 4
AND
tblDefaultApprovalStatus.ApprovalID = 2
AND
(programmerid is null OR programmerid < 1)
AND
(location <> 8 AND location <> 9 AND location <> 10)
AND
statusid <> 3
ORDER BY
bonpri
Originally Posted on May 20, 2013
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code SQL

Post navigation

Previous post
Next post

Related Posts

Mac OSX – Computer Name

Posted on August 5, 2016

# Name the Machine in all areas the same – Start # Get Serial Number sSerialNumber=$(system_profiler SPHardwareDataType |grep "Serial Number (system)" |awk ‘{print $4}’ | cut -d/ -f1) echo $sSerialNumber # Ask User if the computer is a laptop printf "Is this a laptop, if yes type y or if…

Read More

PHP Facebook WebCal Parse

Posted on March 18, 2015

I have seen various ways to parse webcal (ical, ics) files in PHP but they tend to get a little more complicated than they need to in some cases or simply do not work. <?phpPHP $icalURL = '<facebook URL>'; echo '<p>iCal URL:<br/>' . $icalURL . '</p>'; $ical = file_get_contents($icalURL); $sED_Start…

Read More

Mac OSX Terminal – Clear Oh My ZSH History

Posted on April 9, 2018

If you have fallen in love with Oh My Zsh you likely have at one point realized it currently lacks the “history -c” option to clear your terminal history. This code below will help with that. #!/bin/sh # Clear_OhMyZsh_History.sh # # Script to remove all history or select content #…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes