Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 35232

A core SQL statement, SELECT retrieves data from one or more tables or other sources of row set data such as views or table-valued functions.

1
vote
1answer
to select employee that are related to locations that have some specific flags on (like provides holidays, provides healthcare). Suppose, a location(1) provides healthcare and holidays(having 'YES … will be: select * from employee inner join location on employee.locationId=location.id inner join location_flag lf on lf.locationId=location.id inner join location_flag lf2 on lf2 …
asked Oct 7 '14 by Sachin Verma
0
votes
I think the reason would be: id is primary key here(unique) and group by primary key is alike to group by *. So it's just similar to select * from table group by * which should be fine. …
answered Dec 13 '16 by Sachin Verma
4
votes
2answers
How is this a valid statement (where id is the primary key of the table): select * from table group by id ; and this is not: select * from table group by name ; ERROR: column "pgluser.id …
asked Dec 13 '16 by Sachin Verma