We have all seen questions with sample data provided as text like this...
ID | Some Description | Some Date | Some Number
1 | Whatever… | 1/15/2024 | 150
2 | Something else… | 1/31/2024 | 200
3 | Still more… | 2/1/2024 | 500
Or in a table...
ID | Some Description | Some Date | Some Number |
1 | Whatever... | 1/15/2024 | 150 |
2 | Something else... | 1/31/2024 | 200 |
3 | Still more... | 2/1/2024 | 500 |
Or even worse, as an image...
Regardless of the question, I am more likely to work out an answer if easily usable data is provided. I may know the answer or have an idea or something to try, but I want to test it out to make sure my solution works before posting it.
With a few simple steps you can provide the sample data you posted as text, a table, or in an image as a free-hand SQL statement with which anyone wanting to attempt to answer can build a report in their environment. I my example I will be using SQL Server syntax which I understand will not work for everyone.
There are a lot of options. Take some time to experiment. Ultimately, I want a series select statements (one for each row of data) unioned together. Remember, we cannot create tables within a free-hand SQL statement.
You may need to adjust the SQL to force some data types to be what you want.
As you can see the Some Date object is being recognized as a "String". I want it to be a "Date/Time". To force that, I just need to add a function around the date value in the first line like this (the other lines will follow suit)...
CONVERT(DATE,'1/15/2024')
Each execution of a SQL statement in db<>fiddle with generate a its own unique URL which you can then copy and share. Then, whomever wants to work on your question can navigate to that URL, copy the SQL, and paste it into their a free-hand SQL query in their BusinessObjects environment.
I hope this helps drive better questions and more answers.
Noel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
4 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |