Viewing 15 posts - 16 through 30 (of 50 total)
The reason I used two CTEs is because I have another dataset in which the ID are in two different columns leading to duplicates
With the sample above, I am not...
August 26, 2022 at 11:57 pm
I think I managed to solve it using two CTEs and unioning them. I then used another CTE on the combined table to remove any duplicates
August 26, 2022 at 1:04 pm
The column in my dataset is not actually SSN. I just used it as example in this scenario to highlight a unique column
August 22, 2022 at 3:04 am
hmm, I tried the above code. I end up getting a number ids concatenated together. For example, if ID A00001 has multiple rows on 3 paydates and Id B00001 has...
August 22, 2022 at 2:43 am
Thanks for that. The sample I included was just a subset of my table. The information I am working with is payroll data. The table contains employees with multiple pay...
August 18, 2022 at 12:11 am
That's interesting. A lot you just said which I didn't know earlier! Thanks!
April 25, 2022 at 10:25 am
No major problems as such. Mainly just ease of writing queries, that's all. At work, I have noticed that noen of the tables have any query name specified as the...
April 25, 2022 at 9:50 am
When I try to run this query on my data (not the sample posted here) I get an invalid object error "Column name" even though the column exists in the...
March 30, 2022 at 9:12 pm
thank you! that did the trick.
March 30, 2022 at 10:38 am
That makes sense. Thanks for all your responses!
March 15, 2022 at 2:16 am
I am trying to filter the results on the Numdays column. Is it possible to filter the results on an aliased column ? I want to look for anomalies on...
March 13, 2022 at 10:36 pm
Thank you! this one work perfectly. I will run a couple of checks on the report I require
I am newish to SQl. Is there a difference in using an alias...
March 11, 2022 at 12:21 pm
Ah, thanks Jeff!
February 9, 2022 at 1:08 am
hi, just wanted to revisit this post. I have been sent another 100 odd files and have uploaded them manually which is really tiresome. Hope someone can suggest a better...
February 7, 2022 at 10:25 pm
hmm.. for some reason it says that the last post by me but I can't see it
UPDATE: weird.. I could see only 3 pages and once I posted...
January 11, 2022 at 10:07 pm
Viewing 15 posts - 16 through 30 (of 50 total)