What is the number of order lines?
I was trying to understand degenerate dimensions. But I quite often encounter the term "order line" as grain in a transaction table. Could someone please explain the difference between the order and order-line?
The answer to your question - what is the number of order lines is -
Generally, an order contains information about the order. Who placed the order, what time they placed it, the shipping address associated, the billing address, payment method, when it was fulfilled, etc. It often does not contain any information about what was ordered.
The order line generally contains information about what was ordered, this is done because a single order can have multiple items in it. So the order line would specify the item ordered, the quantity ordered and the price charged, and there would be one line for each different item ordered.