How to display the last eclapsed time in SqlDevelopper when analysing query - query-optimization

As we can notice in my screenshot , We can see the object name , cost , cadinality and the last_cr_buffers_gets attribut in SqlDevelopper
But , how to display the last eclapsed time and other attributes?
I'm using Oracle sql developper 4.0 x64
Regards,
Bass

Preferences->Database->Autotrace/Explain Plan
However this particular column (last_elapsed_time) is on by default. Can it be that it is just scrolled out of view and reappear if you resize those super wide columns?

Related

Calculated column from two MONEY data type values not displaying correctly in SSRS report

The dollar amount is a calculated column value based on two MONEY datatype values. I need some help to know how to make the 60000.00 display like the 10000.00 value is displayed in my SSRS report. I am confused as to why the 10000.00 value displays correctly but the 60000.00 does not from the same result set. I am using VS 2015.
Any suggestions/direction would be greatly appreciated. Thank you.
Here is my SQL Server 2016 query result:
In my SSRS report the 60000.00 value is displaying as 0.00:
Right click on your textbox Textbox Properties > Number > Currency (or just number, if its not money) and chose your displayed format style. Then go into your textbox expression and add:
=CDbl(Fields!YourNumberField.Value)

Show only table name in SSMS 2012 Tab for table (edit all rows)

The tab name in SSMS 2012 is in the format : [SERVER_NAME.DATABASE_NAME - dbo.TABLE_NAME]
Is there is any way that i could show the tab like [dbo.TABLE_NAME] only, so more tabs would apear instead of only 4 tabs in case of oppening tabs with Edit Rows mode?
I have checked this link but it seems that it is not working on SSMS 2012
Thanks for your help
Well, I found something that may solve the problem somehow.
just pin some tabs, and you will have two rows of tabs which could give you space

How do I get my combo-box to show all three fields currently only shows one?

I'm almost done with this nightmare that I've been working on for over a week. I've got the combo-box to work but it only displays one of the values/fields that I wish it to display.
I want it to display the Serial #, HS Model, and the Recd Date. Currently it will only show the Recd date.
The combo-box's Row Source is as follows:
SELECT [Recd Date],[Serial #],[HS Model]
FROM ModelListQuery
WHERE [HS Model] = Forms![Coding Pop Up]![Coding_drop_down]
ORDER BY [Recd Date] DESC , [Serial #], [HS Model];
It is also unbound. I don't see or believe there's any syntax error here and think I might be forgetting or am unaware of a property on the Property Sheet.
Problem has once again been solved by myself. Something as simple as adjusting the "Column Count" to "3" provided the three different columns that I needed where it was previously only set to 1 that's why it was only displaying 1 of the fields from the query.
Also adjusting the Columns Widths and List Widths to my preference.

SQL Server query to Crystal Reports

I am trying to move reports that currently run in SQL Server to Crystal Reports.
Essentially the statement I want to reproduce is:
SELECT DATEPART(DD,DATE), COUNT(*)
WHERE FOO = 'BAR'
GROUP BY DATEPART(DD,DATE)
Count the occurrence of records that match a criteria, grouped by date.
I have used the Selection Expert to generate a equivalence relation (to evaluate the records) and would like to use the datepart function in a group by statement. I have gotten the GROUP BY selection expert to group by date - but it is the full timestamp (SS:HH:DD:MM) not by specific day i.e. March 1 2010.
I am sure there is a way to achieve what I want but have yet to find a tutorial explaining this scenario.
Any help you could lend would be appreciated
As with any other SDK/Language, there are many ways to do this. Here is the first one that I can think of:
Get the raw data into Crystal. (Sounds like you already did this)
In Crystal, make a new formula, call it "GroupByDate". In the formula editor, enter:
datepart("yyyy-mm-dd",{mytable.mydatefield})
Go into the Group Expert. Group your report by GroupByDate.
Make a new formula, call it "AddMe". In the formula editor, enter:
iif({mytable.foo="bar",1,0)
Drag & drop your AddMe formula into the details section. Right-click on it to Insert->Summary. Set your summary location as the group footer.
Preview your report and you should see the total counts in every group footer. To simplify the appearance of the report, you can also suppress the display of the detail and grouper header sections.
Again, there are many ways to do this. You can also get creative with a Running Total function. The Crystal Formula Editor has very useful help files. Use the Functions pane to select a function, press F1, and you'll get criteria, examples, etc.

SQL Server 2005 Reporting Services Matrix Total Data Highlighting

I have created a SQL Server 2005 matrix with a total column.
I want to be able to change the colors of the totals only so they stand out from the rest of the data. I can change the color of the "total" label, but not the actual data.
Can anyone give me a clue of how to do this?
To test whether or not a cell is a total or not, you need to use the InScope() Function along with a heavily nested If statement. Jorg Klein does a great job of exlplaing how this works within a matrix (here)
Select the Total box and you can set the color in the properties page. If you want all totals to appear in the same color, this will do.
You can also conditionally format them, by putting an expression in the color property.
Check this link
Raj
Unless I'm mistaken, you can select the totals cell for editing it's properties by selecting the cell and then clicking on the small triangle in the upper corner of the cell.
Hope this helps,
Bill

Resources