concept permission in category sql server

This is an excerpt from Manning's book Learn Windows SQL Server Administration in a Month of Lunches.
Let’s start by making sure this is the SQL Server book for you. This book doesn’t set out to make you a Database Administrator (DBA), nor does it cover anything in the way of SQL Server development or programming. Instead, this book is meant as a starting point, and from here you could go on to being a DBA or developer. This book is about maintaining SQL Server, monitoring it, and doing a bit in the way of performance tuning. Mostly, this book focuses on how to spot problem situations that you might not even have permission to fix, and that you’ll have to report to someone else, such as an application developer. I’ll help you understand where to look, and what data to collect, so that your report can be as useful as possible to whomever you send it.
We’re on the second “A” of security: after authenticating you so that it knows who you are, SQL Server needs to decide what you’re allowed to do. By default, the answer is “Nothing.” You have to be granted permission to do things, both at the server level and within individual databases, and that’s what this chapter is all about.
A DENY permission prevents a user from performing the given task. A user could be granted permission to run UPDATE queries, but denied the ability to run DELETE queries. Would that make sense to do? Maybe not, but you can do it. You can manage permissions in the SQL Server Management Studio GUI, or you can run T-SQL commands. This command gives a user the ability to insert data into a table, and gives them the option to pass that permission on to other users:
GRANT INSERT ON [HumanResources].[Department] TO [testuser] WITH GRANT OPTIONThis example gives them permission to delete data, but not to pass that permission on to others:
REVOKE is used to remove a permissions entry from the table (in the GUI, you uncheck a checkbox to remove permissions). That can be a bit confusing, because “revoke” doesn’t always mean “stop them from using this!”
If you revoke a DENY permission, then you may be granting someone access! How could that happen? Normally, a DENY permission means you can’t do something, even if you have permission to do that task from somewhere else. Let’s say you are given select permissions to your database user account, but that you’re also in a group where select permission was denied. Normally, the DENY overrides everything, and you wouldn’t be able to run SELECT queries. But if that DENY is revoked, your other GRANT permission would suddenly kick in, giving you the ability to run SELECT queries. Most DBAs try to avoid using DENY permissions, because it can get a bit tough to keep track of and troubleshoot.