Viewing 15 posts - 1,681 through 1,695 (of 3,482 total)
This is one of the classic schoolbook databases to learn database design. Maybe you should read one?
November 25, 2016 at 2:58 pm
Sounds like you either didn't do any relational theory in class or you didn't ever read the homework assignments. This is database design 101.
November 25, 2016 at 1:14 pm
What is "true" or not depends on your business rules.
The easiest way to do this is one relation at a time in your ERD. If you don't know how...
November 25, 2016 at 11:24 am
Lookups are going to bite you. Remove them all, then move to SQL Server. They don't exist in SQL Server, and didn't exist in Access for a long time. Here's...
November 25, 2016 at 9:25 am
This is a homework assignment. I know, I did it when I studied too. Do your own homework. =)
November 25, 2016 at 9:14 am
You could pivot this stuff in a Matrix in SSRS and be done already. Is that not an option? Wouldn't be if you had to output this result for...
November 24, 2016 at 9:11 pm
How many possible combinations are there for "formula"? You could write a CASE statement that determined which formula to use to calculate the answer... surely must be faster than a...
November 23, 2016 at 10:00 pm
Took me a minute... if you use Windowing functions (requires SQL 2012 or later), then this is easy. The PARTITION basically groups the records together... then you can use...
November 23, 2016 at 9:01 pm
Maybe a ForEach table loop and a LEFT OUTER JOIN?
November 23, 2016 at 5:10 pm
If you split the Date and Time fields into two different columns in SQL Server, then this query is trivial.
November 23, 2016 at 2:03 pm
Don't understand why you think you need windowing functions...
Does this do what you want? The inner query, inside the parentheses... query "x", gets the counts for each grouping, and then...
November 23, 2016 at 1:37 pm
Viewing 15 posts - 1,681 through 1,695 (of 3,482 total)