iOS 7.0.2 Released

iOS7Apple has released iOS 7.0.2 for iPhone, iPad, and iPod touch. This is a bug fix release that focuses on rectifying an issue that could allow users to bypass the passcode unlock on the Lock screen. Another fix in this release is to re-add the Greek keyboard options for pass codes.

iOS 7.0.2 also brings iOS 7 parity across all supported devices. Alongside the launch of the new iPhones, Apple released iOS 7.0.1, but this release was exclusive to the iPhone 5s and iPhone 5c, and did not apply to the other supported iOS 7 devices.

Today’s update requires a WiFi connection to download and install, and the file size is approximately 19MB in size but this can vary based on which device you are updating.

To update go to SettingsGeneral and then Software Update to get the update.

SQL Adding Row Number To The Returned Rows

Its something that took a bit of finding, but is very simple to do. I wanted to automatically add a row number to returned rows from a table in a database


SELECT FirstNames, LastName, DOB FROM Staff ORDER BY FirstNames ASC


FirstNames LastName DOB
Richard Taylor 01/01/1980
James Watts 01/01/1980
Richard Stringer 01/01/1980

we can modify this so that it returns a row number by changing the SQL as follows:

SELECT ROW_NUMBER() OVER (ORDER BY FirstNames) As RowNumber, FirstNames, LastName, DOB FROM Staff ORDER BY FirstNames ASC

now returns

RowNumber FirstNames LastName DOB
1 Richard Taylor 01/01/1980
2 James Watts 01/01/1980
3 Richard Stringer 01/01/1980

NB. The ROW_NUMBER() Requires that the over keyword be included after it, and that the order you choose should be the same as the order by on the query.

If you know how to do this in a different way, or a way that will work for a query that does not have an order by (a very rare occurence) then please do post a comment to let others know.