Possible duplicates:Aggregate bitwise OR in a subqueryUpdate a column for different aggregation values
Say I have a table with the following entries.
Role | AuthorizationNum 1 11 2 12 1 16 2 11
What I want to do is group by Role, OR (BIT OR using |) AuthorizationNum. Therefore, my choice should consist of 2 entries.
Role | AuthorizationNum 1 27 2 15
Because...
11 | 16 = 27
11 | 12 = 15
By default, mysql supports this, but not sql server. But you can get around this using the following: Refresh the column for different aggregate values
Source: https://habr.com/ru/post/1792580/More articles:ElementTree XPath weird behavior - pythonreturn the first n letters of a column - sqliPhone encryption with certificate - securityGoogle Analytics API - Choosing a Metric Value Affects Dimension Values? - google-analyticsJava: url encoding leaves "allowed" character intact - javaHow to select unique XML nodes using Ruby? - ruby | fooobar.comClearCanvas DicomFile.DataSet - Как добавить новый тег? - dicomEditing XML with PowerShell and the "file format" error - xmlJQuery GET request on Sinatra always results in an error - jqueryClientClass does not indicate a type. GCC Linux - c ++All Articles