a month ago
All,
This is my current SQL Query:
SELECT "Project","Project Name","Labor Budget","Labor Billed","Address1","period","year","month","Calculated_1" From REA
I want to only bring in the DISTINCT Project's so for example as of now it's showing
Project | Project Name | Labor Billed | Labor Budget | Address1 | Period | Year | Month |
1 | Elmers Ave | 171100 | 2550 | 460 Madison Ave | 201501 | 2015 | 1 |
1 | Elmers Ave | 171100 | 3000 | 460 Madison Ave | 201601 | 2016 | 1 |
1 | Elmers Ave | 171100 | 3750 | 460 Madison Ave | 201507 | 2015 | 7 |
I would only want to bring in 1 value for each project number. Is this possible?
Project | Project Name | Labor Billed | Labor Budget | Address1 | Period | Year | Month |
1 | Elmers Ave | 171100 | 2550 | 460 Madison Ave | 201501 | 2015 | 1 |
Hi,
DISTINCT will only group everything into one row, when all columns have the exact same value over all rows. In your example data the values in the diffrerent columns are all different, so you cannot use distinct.
You have a few options that you can use alone or in some combination:
Regards,
Johan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
11 | |
10 | |
8 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.