From the course: SAP Business One: Reporting and Customization
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Sort a query with ORDER BY - SAP ERP Tutorial
From the course: SAP Business One: Reporting and Customization
Sort a query with ORDER BY
- [Instructor] Right now, I have to scroll to the bottom to see the latest due date. I can also double-click a column and get the sort date, and then I can sort it properly that way. But, that's taking a lot of work and we can actually do it all with another keyword called order by in my query automatically. So let's go back up to the query here and then after our where clause, the next clause that will need to go in a sequence is order by. It's order by, as two words. And I'm going to sort by the due date so I'm going to add T0.DueDate. I can execute this query. And I'm going to use released for mine, and go ahead and hit that. And we get the released ones. I have a few. And they're sorted by oldest first. If I want my most recent first I can use another keyword that says descending. So you just put after this, D-E-S-C and hit it again. I'll do released. And now they've changed their order around. So now…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Use the Query Generator3m 2s
-
(Locked)
Open the Query Manager4m 5s
-
(Locked)
Change a query with SELECT, AS, and FROM6m
-
(Locked)
Debug a query4m 32s
-
(Locked)
Filter a query with WHERE5m 6s
-
(Locked)
Add selection criteria parameters4m 5s
-
(Locked)
Use SQL functions2m 50s
-
(Locked)
Sort a query with ORDER BY3m 29s
-
(Locked)
Make decisions with CASE4m 4s
-
(Locked)
Types in SQL3m 51s
-
(Locked)
Challenge: Sales report in SQL48s
-
(Locked)
Solution: Sales report in SQL4m 12s
-
(Locked)
-
-
-
-
-
-