3.1EA1: Query results do not display
The results of any query I run in 3.1EA1 do not show in the Query Result tab. When I run sqldeveloper.exe from the command prompt, there are no errors. Sqldeveloper 3.0 is fine.
Oracle Database: 10.2.0.4.0
Java version: 1.6.0_26
Operation System: Windows XP Prod sp3
Hi Raghu,
Yes, you are correct. It seems to be related to SQLHistory. This is what I did.
-- Deleted everything in the SQLHistory folder as suggested.
-- Started SQLDeveloper and ran query from worksheet
-- Got results fine, but then immediately got a dialog box saying Migrating SQL history.
-- This produced an error
source: o.d.worksheet.sqlhistory
message: sun.nio.cs.StreamDecoder.forInputStreamReader (StreamDecoder.java:52)
-- After it finished, sql history was filled again with all the files.
-- Restarted SQLDeveloper and the problem was back.
-- Discovered in the SQLDeveloper directory (at same level as the SQLHistory folder) another file called SQLHistory.xml (presumably from a previous version which was the one being migrated)
-- Renamed the previous sqlhistory.xml file and the issue seems to have gone away since only my new SQL in the history folder now.
However, I assume that over time, the problem will come back when history gets to a certain size ? I did have about 1200 entries in my folder before deleting.
Will there be a fix for this, as I use sql history quite often ?
Hope this helps track down the problem.
Thanks,
Mark
Similar Messages
-
Query Result is not displaying *
Hi,
I am developing a new report. In that there are two key figures namely "Inter Company In Transit Qty" and " WIP Qty".
Inter Company In Transit Qty Key figures have different UOM
and WIP QTY Key figure is having different UOM.
When I run the query, the result for Inter Company In Tranist Qty is displaying * which is correct (as it is having multiple UOM).
where as WIP Qty is having multiple UOM, hence it should show the result as *, but it is showing EA which is wrong.
I checked every property of Inter Company In trasit and WIP Qty and they all look same.
Please advice me what should be done in WIP Qty result line should be asterisk and not 0.00 EA.
Thanks
MadhavHi Danny
Thanks for your response.
Yes both key figures are coming from same infoprovider.
I created a mulitprovider based on two infocubes. One is daily and other is Monthly.
Both key figures are non cumulative key figures. For both key figures I used below mentioned logic. Intransit is working fine.
I created a formula and put in calculated key figures(CKF). The CKF formula is ((WIP Qty > 0.1) * WIP QTY)
I took a selection and used the CKF and restricted by daily cube.
I changed the result as suggest by you . But it still does not work.
Any suggestions is greatly appricated.
Thanks,
Madhav -
Select * from v$asm_disk query results are not displayed in developer
Hi, executing select * from v$asm_disk query returns below error messages whereas select * from v$asm_diskgroup works fine.
SEVERE 40 18579 oracle.dbtools.raptor.nls.OracleNLSProvider Error loading nls:ORA-01219: database not open: queries allowed on fixed tables/views only
SEVERE 38 0 oracle.dbtools.raptor.utils.Connections
SEVERE 37 15 oracle.dbtools.db.DBUtil Warning, unhandled exception: ORA-15021: parameter "plsql_debug" is not valid in asm instance
SEVERE 36 0 oracle.dbtools.db.DBUtil Warning, unhandled exception: ORA-15021: parameter "plsql_optimize_level" is not valid in asm instance
SEVERE 35 0 oracle.dbtools.db.DBUtil Warning, unhandled exception: ORA-15021: parameter "plscope_settings" is not valid in asm instance
Is there any way to get around this issue?
Thanks
PramodWhat product are you using? What version, what database? What user is the query being run by? (It may be a privileges issue)
This forum is for the product SQL Developer Data Modeler.
Sue -
I am trying to edit the default forms/reports that come with CM14, trying to edit the data model, data set, (to get to the old Infomaker style graphic view) , the Query model does not display (error the list of tables is too long..) Oracle tell me the limit is 60, there are not 60 tables referenced in any CM report.
Does this Query builder view work at all on any report?
(bigger question, we are moving from CM12, should we move to CM13 which works with infomaker?)
Thanks,
Paul LKurt, thanks for your replies.
A couple of notes/clarifications.
1. You are correct that BI works better in Firefox--I have observed issues with the BI display when using IE. I would recommend using Firefox too.
2. You are correct about the way to get to the Query Builder to see a graphical view of data tables. There are basically two issues with this that I mentioned, but will re-iterate:
a. If you have an EXISTING query in the data set, then click the "Query Builder" button, this will remove the existing query that's there, it will NOT display the existing query in the query builder. Query Builder works only to create a NEW query from scratch.
b. Query builder is limited to selecting 60 fields max in your query. If you are creating a large report with many tables, you may find that 60 fields is not enough. For that you will have to work in the SQL edit screen rather than using the query builder.
I would impress on anyone developing CM14 reports that they become familiar with the database schema and relationships to avoid problems when developing your BI reports. You should be able to find the tables and joins documentation in the knowledgebase. -
Outlook.mailitem - diferent replace result when not displayed
Hello everybody!
I am developing an app to generate personalized emails from Excel file and .msg template.
In the template, I insert "variables" like this: ^name^,
which means that is is a placeholder for values from "name" column in source
Excel file.
this template is saved as .msg file on local disc and used as an argument in.CreateItemFromTemplate()
after loading the template , it cycles from all the columns and rows of the Excel file and replaces the inserted
variables:
loading excel:
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim fpath As String
OpenFileDialog1.ShowDialog()
fpath = OpenFileDialog1.FileName
workbook = APP.Workbooks.Open(fpath)
worksheet = APP.ActiveSheet
Dim CellData As String
Dim LastCol As Long
Dim LastRow As Long
Dim bunka As String
LastCol = workbook.ActiveSheet.UsedRange.Columns.Count
LastRow = workbook.ActiveSheet.UsedRange.Rows.Count
objData = worksheet
DataGridView1.ColumnCount = 1
DataGridView1.Columns(0).Name = "Column"
DataGridView1.Columns(0).Width = 130
For i = 1 To LastCol
bunka = worksheet.Cells(1, i).Value
Combo_To.Items.Add(bunka)
Combo_SaveName.Items.Add(bunka)
Dim row As String() = New String() {bunka}
DataGridView1.Rows.Add(row)
Next
Dim btn As New DataGridViewButtonColumn()
DataGridView1.Columns.Add(btn)
btn.HeaderText = "Use"
btn.Text = "+"
btn.Name = "btn"
btn.Width = 50
btn.UseColumnTextForButtonValue = True
btn.CellTemplate.Style.BackColor = System.Drawing.Color.Green
Combo_To.SelectedIndex = 1
End Sub
after that the DataGridView1 loosk like this:
the "+" buttons are used to insert text variables into the mail body.
code for inserting is, this works fine:
Private Sub grdData_CellContentClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick
Dim colName As String = DataGridView1.Columns(e.ColumnIndex).Name
If e.RowIndex < 0 Then Exit Sub
If colName = "btn" Then
Dim variable As String
variable = "^" & DataGridView1.Item(0, e.RowIndex).Value & "^"
My.Computer.Clipboard.SetText(variable)
objOutlookMsgY.GetInspector().Activate()
SendKeys.Send("^v") 'Paste
End If
End Sub
code for generating email from template:
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
Dim sessionName As String
Dim docas As Object
Dim variable As String
Dim dosazeno As String
Dim SavePath As String
Dim objOutlookMsgTEMP As Outlook.MailItem
worksheet = APP.ActiveSheet
objOutlookMsgY.SaveAs("C:\temp_msg2.msg")
clip = objOutlookMsgY.HTMLBody
MsgBox("clip saved")
sessionName = InputBox("Name this session:", "New Session", Today & "_")
SavePath = RootFolder & "\" & sessionName & "\_Initial session"
My.Computer.FileSystem.CreateDirectory(SavePath)
For radek = 2 To workbook.ActiveSheet.UsedRange.Rows.Count
ToolStripProgressBar1.Maximum = workbook.ActiveSheet.UsedRange.Rows.Count - 1
objOutlookMsgTEMP = objOutlook.CreateItemFromTemplate("C:\temp_msg2.msg")
' objOutlookMsgTEMP.Display()
For i = 1 To DataGridView1.RowCount
variable = Convert.ToString("^" & worksheet.Cells(1, i).value & "^")
dosazeno = Convert.ToString(worksheet.Cells(radek, i).value)
'wait(50)
Debug.Print("*" & variable & "*" & " >>> " & "*" & dosazeno & "*")
objOutlookMsgTEMP.HTMLBody = objOutlookMsgTEMP.HTMLBody.Replace(variable, dosazeno)
objOutlookMsgTEMP.HTMLBody = Replace(objOutlookMsgTEMP.HTMLBody, variable, dosazeno)
'wait(50)
objOutlookMsgTEMP.To = worksheet.Cells(radek, ToCol + 1).value
Next
objOutlookMsgTEMP.SendUsingAccount = accounts(Combo_From.SelectedIndex + 1)
Dim objDoc As Microsoft.Office.Interop.Word.Document
Dim objBkm As Microsoft.Office.Interop.Word.Bookmark
'On Error Resume Next
objDoc = objOutlookMsgTEMP.GetInspector.WordEditor
objBkm = objDoc.Bookmarks("_MailAutoSig")
If Not objBkm Is Nothing Then
objBkm.Select()
objDoc.Windows(1).Selection.Delete()
End If
objDoc = Nothing
objBkm = Nothing
objOutlookMsgTEMP.SaveAs(SavePath & "\" & worksheet.Cells(radek, Combo_SaveName.SelectedIndex + 1).value & ".msg")
' objOutlookMsgTEMP.Send()
ToolStripProgressBar1.Value = radek - 1
objOutlookMsgTEMP.Close(SaveMode:=Outlook.OlInspectorClose.olDiscard)
Next
End Sub
for replacing is used this:
.....objOutlookMsgTEMP.Display()
objOutlookMsgTEMP.HTMLBody = objOutlookMsgTEMP.HTMLBody.Replace(variable, valueFromExcel).....
or
.....objOutlookMsgTEMP.HTMLBody = Replace(objOutlookMsgTEMP.HTMLBody, variable, valueFromExcel).....
after replacing, the new message is saved as .msg or send
the problem:
everything works fine when the message is displayed while replacing. But when not displayed, only SOME variables
are replaced. I don't really understand why there is such difference in the result and why only SOME are
not replaced. I have tried changing the columns's names but found no connection between it and the result. when the message is displayed it takes like 10 times longer and makes the PC unusable.
real example:
the tamplate:
^jmeno^
^email^
^prij^
^jmeno3^
^sec code^
result, message displayed:
Jakub
[email protected]
Dxxx
16
266548
result, message not displayed:
^jmeno^
[email protected]
^prij^
4
449447
I have also tried adding some Wait functions, didn't help. I would really appreciate if you could help me
figure this out and explain why this happens. Thank youPlease also copy the below two vars from the debugger window and paste here as it is.
Debug.Print("*" & variable & "*" & " >>> " & "*" & dosazeno & "*")
Also send us you message template, you can send only the section where the two non working vars exist.
Fouad Roumieh -
Query in Servlet not displaying results in html table
Hi,
I am aware that putting html in a servlet is not good practice. In my case, it is just for testing purposes.
Environment: WLS 12c on Windows, DB 11.2.0.3
I created an html form and a servlet in a Dynamic Web Project. The form parameters are sent to the servlet,
but the results are not being displayed.
HTML form:
<input text name="p_1"
Servlet:
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.PrintWriter;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.DriverManager;
import java.sql.ResultSet;
* Servlet implementation class QueryServlet
@WebServlet("/QueryServlet")
public class QueryServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
* @see HttpServlet#HttpServlet()
public QueryServlet() {
super();
// TODO Auto-generated constructor stub
* @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
response.setContentType("text/html");
PrintWriter out = response.getWriter();
Connection conn = null;
Statement stmt = null;
try {
conn = DriverManager.getConnection("jdbc:oracle:thin:@home-server:1521:val01", "USER", "PW");
stmt = conn.createStatement();
String sqlStr = "SELECT....
... WHERE p_1 =
+ "'" + request.getParameter("p_1") + "'"
out.println("<html><head><title>Query Results</title></head><body>");
out.println("<p>Your query is: " + sqlStr + "</p>");
out.println("<p>Your are connected to: " + conn + "</p>");
--> OUTPUT ONLY UNTIL HERE <--
// Get data
ResultSet rset = stmt.executeQuery(sqlStr);
int count = 0;
while(rset.next()){
int cid = rset.getInt("CID");
// Display data in html table
out.println("<table>");
out.println("<tr>");
out.println("<td>" + cid + "</td>");
rset.close();
out.println("<p>====== " + count + " records found =======</p>");
out.println("</body></html>");
catch (SQLException ex) {
ex.printStackTrace();
finally {
out.close();
try {
if (stmt != null) stmt.close();
if (conn != null) conn.close();
} catch (SQLException ex) {
ex.printStackTrace();
Help greatly appreciated. Thanks!Possibly, the js file is not being detected by the javascript runtime.It would be better if you tried something like :
("<script src="<%=request.getContextPath()%>/WEB-INF/classes/ua.js"></script> -
2.1.0.62: Exporting query results does not work if SQL has a join
I get an error message, when I try to export the following test case to any data format.
create table test1 (id number(2), text varchar2(5));
create table test2 (id number(2), text varchar2(5));
insert into test1 values (1,'test');
insert into test2 values (1,'test');
select t1.*
from
test1 t1,
test2 t2
where
t1.id=t2.id;
I try to translate my german error message to english:
"There are no valid columns for export available. Clob- or Blob-Columns are currently not supported"
I get this message, when I right click into the query result grid and select export and then any data format.
Hope that is not a double post but searching for export did not find results for 2.1.
The following SQL also produces the error:
select t1.* from test1 t1;
These SQLs can be exported though:
select * from test1 t1;
select t1.id from test1 t1;
I should have mentioned that I work with Windows XP and Oracle 10.2.0.4.
Regards,
dhalek
Edited by: dhalek on Oct 13, 2009 5:04 PMHi,
Dhalek.
I've got the same problem here.
In my SQL Dev, I disabled the Autopopup code completion insight in SQL Worksheet. (Tools - Preferences - Code Editor - Code Completion - untick the checkbox). Restart SQL Dev. Tried to export a query.
The same error message appears.
My workaround is to re-enable the autopopup and restart SQL Dev.
The disabled autopopup code completion insight caused me these
2.1 EA1: Bugs - cannot Export Data from Grid
2.1 EA2: Bugs on code completion for displaying column name
Hope this helps,
Buntoro -
BEx Query particular cell not display
Hello Experts,
Whenever I execute the query all the results are displayed but only one cell not display.
Could you please tell me, anyone explain this scenario?
Thank you,Hello Gupta,
whenever i execute the query the selection appeared if i put the selection year 001/2009 the results is appeard. but the selection year 002/2009 is not displayed in a particular cell. I don't know about the cell editior. can you tell me, how can i check it...
Let me know, if any problem in authorization.
Thanks for your reply.
Regards
Sathis -
Filter in query result table not populated by criteria previously selected.
Hi Experts,
I'm currently working on the the Upgrade of our BW production line from
release 3.0b to 7.0:
Configuration of target system
BW system : Release 7.0
BEx Analyser : Release 2004s, Support Package9, Patch 1, Revision 321
Sap Gui 6.4
We're especially trying to check the non-regression of the non-converted queries in the new system (release 7.0).
And we get the following issue: After having selected the selection criteria in the selection window, the reminder of selected criteria is not done in the filter part of the target query result. Is it a normal behavior or not ?
Indeed, in the previous system configuration (BW 3.0b), the user is accustomed to seeing just above his result table the selection criteria that he had previously filled in in the selection window.
Please find herewith an example describing the problem.
Thanks in advance for your help.In order to be more clear, hereunder an example:
- I have a field untitled "Business Division"in the selection window.*
- I fill in this field with the value "OND"
- I execute the query with this value for this field.
- The query result correclty appears.
- I click on the "Filter" button to display the Filter table with the columns "Navigation pane" and "Filter criteria".
- In the "Navigation pane", there is the field "Business Division".
- For me, the corresponding "Filter criteria" should be the value "OND", but nothing is displayed...
Thanks in advance foryour help.
Regards,
Steph -
Hi All,
When i run the code below the query with SELECT statement display result as expected but other queries with LOOP and Object oriented running againt same table as that used in SELECT statement doesn't show anything, not even the output page. The status bar only showed the the program has complied without syntax error but no output page.
Please I need somebody to tell me why is the output not showing.
REPORT read_table_flights.
DATA: itab_flight TYPE STANDARD TABLE OF sflight,
wa_flight TYPE sflight,
alv TYPE REF TO cl_salv_table.
FIELD-SYMBOLS: <wa_comp> TYPE any.
SELECT *
FROM sflight INTO TABLE itab_flight
WHERE carrid = 'LH' AND seatsmax < 250 .
Alternative one: Loop at table and write the different components of work area
LOOP AT itab_flight INTO wa_flight.
WRITE: wa_flight-carrid,
wa_flight-connid,
wa_flight-fldate,
wa_flight-price,
wa_flight-currency,
wa_flight-planetype,
wa_flight-seatsmax,
wa_flight-seatsocc,
wa_flight-paymentsum.
skip.
endloop.
**Alternative two: Loop at table with dynamic assign of component
*LOOP AT itab_flight INTO wa_flight.
DO.
ASSIGN COMPONENT sy-index OF STRUCTURE wa_flight TO <wa_comp>.
IF sy-subrc <> 0.
SKIP.
EXIT.
ENDIF.
WRITE <wa_comp>.
ENDDO.
*ENDLOOP.
object oriented way
*cl_salv_table=>factory( IMPORTING r_salv_table = alv
CHANGING t_table = itab_flight ).
*alv->display( ).Thanks SaiRam for your prompt reply. and thanks to everyone who has read my post.
The GUI i have is fresh installation. The SELECT query is working fine but LOOP doesn't display result even when SELECT does.
Please help me. -
Amazon search results do not display properly as of Firefox 33.0
Hello,
This one is a bit strange. Lately, I've noticed that many (but not all) search results on Amazon display only eight items per page, even though the Amazon site believes it is showing me 48 results. It is as if the rest of the results are hidden behind the "next page" control.
To reproduce:
1) go to amazon.com.
2) In the search bar, enter a search term that will get lots of results. For example "sweaters women"
3) On the resulting page, go to the side menu, and choose a sub category - for example, "Women's sweaters".
4) Look at the resulting page. It will tell you "1-48 of 37,824 results ..." but you will (or at least, *I*) only see eight items -- two rows of four. Directly underneath the second row is the grey bar that shows the pages and the "previous" and "next" links. Underneath *that* is a very large white space, which looks about the right size to contain the remaining rows of results -- but they are not there.
Do you see what I'm seeing? It's strange, and it just started a short time ago. I'm only now really looking into it, and IE and Safari both show me the search results as I expect.
I am running Windows 7 and Firefox 33.0.
Thanks for looking.No problems here.
I do see 48 results as 12 row of each 4 results.
You can try these steps in case of issues with web pages:
You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
*Hold down the Shift key and left-click the Reload button
*Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
*Press "Command + Shift + R" (Mac)
Clear the cache and remove cookies only from websites that cause problems.
"Clear the Cache":
*Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
*Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
*Do NOT click the Reset button on the Safe Mode start window
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
Entity Attribute Existence Check - Query Result Parameter not possible ?
I already read the section of the ADF BC Developer Guide (9.6.2 Implementing an Efficient Existence Check).
That works and maybe is the best solution, however I am working with a group of Forms Developers which are much more comfortable with writing SQL statements.
Natural thing for them in this case was to define a declarative compare validator with the following Query Result:
select PROD_ID from Products where PROD_ID=:ProdId
where :ProdId is ServiceRequest.ProdId
Is this possible with ADF BC ?
Other possibility is to define a List Validator with the following Query Result:
select PROD_ID from Products
but this is not performant.
I know the programmatic approach is always possible, but to make migration easier for Forms developers into the ADF BC world, the declarative SQL option should be available.
Thanks,
Claudio.This isn't possible out of the box in 10.1.3 since we don't support a mechanism to set the values of the bind variables. In 10.1.3, you would need to build a custom validation rule class (explained in section 26.9 "Implementing Custom Validation Rules") to make this declarative for others on your team.
I wouldn't recommend the list validator in 10.1.3 for anything but the most trivial uses. This is because it's current implementation retrieves all rows from the query, then does the attribute comparison in memory.
Among many, many other enhancements, we are greatly enhancing declarative business logic features of ADF Business Components for our 11g/Fusion release (the next major release), where this will be super-easy. -
Query results are not highlighted ?
Hi
I have made CO query "Cost Center", when i expand hierachy i my sumary results are not highlighted.
I have the same query for "Cost Elements" an everything is ok, summary results are highlighted.
Any idea what is wrong ?
RegardsOn each level of hierarchy there are results, but no highlight on them.
see this print screens http://picasaweb.google.pl/w.lukasz/Costs?authkey=Gv1sRgCJ3JxOH_h6f2_QE#
in "cost elements" on screens there is "yellow" highlight
but in "cost center" there is NO highlight.
That is the problem, any idea ?
THX
Regards -
I set up my external editor as Photoshop Elements 9, I follow the instructions to edit a selected image in the external editor. When finished editing in Photoshop, I hit Save (not Save As), and go back to Aperture, and the work I did in Photoshop does not display in Aperture. Is there anything else I need to do to make the work I did in Photoshop display in Aperture?
I had the same problem with PSE 10, and this soution worked for me. Thanks. But is this the real answer? Isn't there a way to save the file without having to add an "f" to the suffix? It doesn't seem to make sense to me. Is it an Aperture problem or PSE? I went to the Apple store amnd the so-called aperture/photoshop expert spent an hour trying to figure it out and finally got the answer by reading this post!!!
-
User Search result is not displaying
Hello friends,
i am facing new problem in the Portal, when i am searching any user in User Admin-> search.
its dislaying some information but its not displaying the Contact information.
can any one perovide me some help in this regard...
This error i am getting..
Unparseable date: "en_US".
Exception id: 03:44_27/03/08_0056_7377050
See the details for the exception ID in the log file
Regards.did you check the log file under
http://host:port/nwa--monitoring-logs and traces-sap logs
Maybe you are looking for
-
Problem with job RDDEXECL (STMS)
Hi Coleagues The problems is that job RDDEXECL(Execution of programs for post - import processing) is canceled during execution. with the error: *What happened? Error in ABAP application program. The current ABAP program "SAPLPRGN_UTILITIES"
-
Messaging not functioning correctly
My husband and I have Iphones 3. I can no longer receive messages from his phone and there is a little pale blue "thought bubble" icon beside my name in the message area of his phone. What is that?
-
Process industry master data creation
Hi, In discrete manufacturing if we have alternate bom or routings then it can be used through production version. But in process industry it seems bom has to be created first and bom has to be assigned in production version and through production ve
-
Hieroglyphics instead of text on pages
When I open some websites in Safari some of the text looks similar to Egyptian hieroglyphics. Examples being hotmail on msn, yahoo messenger How can I cure this? Pip
-
HI Experts, I need to do a logical expression using between including operations eg.i need to validate a variable between 5 and 10 and equal to 5 and 10 ie 5,6,7,8,9,10