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

Display Second Largest Value

Posted on June 26, 2014October 26, 2015 By David Kittell
SELECT MAX(col)
FROM TABLE
WHERE col < (
		SELECT MAX(col)
		FROM TABLE
		)
Originally Posted on June 26, 2014
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 MSSQL

Post navigation

Previous post
Next post

Related Posts

Add Column If Does Not Exist

Posted on November 12, 2013October 26, 2015

This code will assist in helping you create a column should it not already exist. IF COLUMNPROPERTY(OBJECT_ID(‘dbo.address’), ‘zip4’, ‘ColumnId’) IS NULL BEGIN ALTER TABLE address ADD zip4 INT NULL END Originally Posted on November 12, 2013Last Updated on October 26, 2015 All information on this site is shared with the…

Read More

Mac OS X Terminal – Create Bootable OS X Installer

Posted on April 7, 2017September 2, 2021

Need to create a thumb drive installer for Mac OS? This script will help you out #!/bin/sh # MacOS_InstallUSB.sh # # # Created by David Kittell on 4/7/17. # # Variables – Start # Text Variables – Start txtund=$(tput sgr 0 1) # Underline txtbld=$(tput bold) # Bold txtbldund=${txtund}$(tput bold)…

Read More

Create Directory If It Doesn't Exist

Posted on September 27, 2013October 26, 2015

If File.ExternalWritable Then If File.IsDirectory(File.DirRootExternal,"new/") = False Then File.MakeDir(File.DirRootExternal, "new") sDBLocation = File.DirRootExternal & "/new" End If Else If File.IsDirectory(File.DirInternal,"new/") = False Then File.MakeDir(File.DirInternal, "new") sDBLocation = File.DirInternal & "/new" End If End If Originally Posted on September 27, 2013Last Updated on October 26, 2015 All information on this site…

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
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes