Help! Table not shown in browser!!!!!!
I never had this problem. The JTable is not shown at all!!! The JTable is embedded in an applet. I had similar program done (posted the code here) for another dataset and it works perfectly well. I'm suspecting the renderers. Here is the relevant code if anyone can please help me sort this mystery out.
if (k==0) /* sysname column */
renderer=new DefaultTableCellRenderer();
JComboBox combo= new JComboBox(sys_names);
combo.setRequestFocusEnabled(false);
combo.setBackground(Color.yellow);
combo.setEditable(false);
combo.getEditor().getEditorComponent().setBackground(Color.blue)
editor=new DefaultCellEditor(combo);
} else if (k==1) /* sys-ecp-dcs*/
renderer=new DefaultTableCellRenderer();
editor=new DefaultCellEditor(combo);
JComboBox combo= new JComboBox(sys_ecp_dcs_list);
combo.setRequestFocusEnabled(false);
combo.setBackground(Color.yellow);
combo.setEditable(false);
combo.getEditor().getEditorComponent().setBackground(Color.blue);
} else {
renderer = new cbhtol_TextAreaCellRenderer (); // NEW
editor = new cbhtol_TextAreaCellEditor (this,m_table, m_data);
TableColumn column = new TableColumn (k,
cbhtol_TrunkReportData.m_columns[k].m_width,
renderer, editor);
column.setHeaderRenderer(createDefaultRenderer());
m_table.addColumn (column); And the renderers:
protected TableCellRenderer createDefaultRenderer() {
DefaultTableCellRenderer label = new DefaultTableCellRenderer()
public Component getTableCellRendererComponent(JTable table, Object valu
e, boolean isSelected, boolean hasFocus, int row, int column) {
if (table != null) {
JTableHeader header = table.getTableHeader();
if (header != null) {
//setForeground(header.getForeground());
setForeground(Color.white);
Color bg=new Color(200,100,30);
//setBackground(header.getBackground());
setBackground(bg);
setFont(header.getFont());
setText((value == null) ? "" : value.toString()) ;
setBorder(UIManager.getBorder("TableHeader.cellBorder"));
return this;
label.setHorizontalAlignment(JLabel.CENTER);
return label;
} //table cell renderer
class cbhtol_TextAreaCellRenderer extends JTextArea implements TableCellRenderer
protected static Border m_noFocusBorder = new
EmptyBorder (1, 1, 1, 1);
protected static Border m_focusBorder =
UIManager.getBorder("Table.focusCellHighlightBorder");
public
cbhtol_TextAreaCellRenderer
setEditable
(false);
setLineWrap
(true);
setWrapStyleWord
(true);
setBorder
(m_noFocusBorder);
public Component
getTableCellRendererComponent
(JTable table,
Object value,
boolean
isSelected,
boolean
hasFocus,
int nRow, int nCol)
Color fg=new Color(255,0,0);
setForeground(Color.green);
if (value instanceof String)
setText ((String) value);
else if (value instanceof Integer)
setText((String)value.toString());
setBackground
(isSelected && !hasFocus ? table.getSelectionBackground() : table.
getBackground ());
setFont (table.getFont ());
setBorder (hasFocus ? m_focusBorder : m_noFocusBorder);
causes looping and stops rendering the components surrounding
the cells
int rowHeight = getPreferredSize().height;
if (table.getRowHeight(nRow) < rowHeight)
table.setRowHeight (nRow, rowHeight);
return this;}
// To fix JDK bug
public String getToolTipText (MouseEvent event)
return null;
} //class text area cell renderer
public Component
getTableCellRendererComponent
(JTable table,
Object value,
boolean
isSelected,
boolean
hasFocus,
int nRow, int nCol)
Color fg=new Color(255,0,0);
//ColorData cvalue = new ColorData(value);
if (table.getModel().getValueAt(nRow, 11).toString().trim().equals("Lucent")
setForeground(fg);
else if (table.getModel().getValueAt(nRow, 11).toString().trim().equals("Nor
tel"))
setForeground(Color.blue);
else
setForeground(Color.green);
setBackground
(isSelected && !hasFocus ? table.getSelectionBackground() : table.
getBackground ());
//setForeground (isSelected && !hasFocus ?
// table.getSelectionForeground() : table.getForeground ());
setFont (table.getFont ());
//setBorder (hasFocus ? m_focusBorder : m_noFocusBorder);
int rowHeight = getPreferredSize().height;
if (table.getRowHeight(nRow) < rowHeight)
table.setRowHeight (nRow, rowHeight);
return this;
public String getToolTipText (MouseEvent event)
return null;
} //class ComboCellRendererPLZ HELP!
Nothing wrong with the renderers! Silly coding mistake!!
Similar Messages
-
Version name is not shown in browser, Aperture 3. I had it, but by accident I removed it.
I could not find the solution in Aperture Help.
What is the command / option that makes the version name visible in the browser?
Best regards,
b adrianView->Metadata Display will show all the oprions and shortcuts.
Metadata display is very rich in Aperture and appears in a lot of different areas of the display. Getting familiar with it all will make your Aperture experience a lot more rewarding.
See Working with Metadata in the manual. -
Tables not shown in connections tree for DB2 databases
Hi!
I often use SQL Developer to connect to our DB2 databases. However, when I expand the desired schema in a DB2 database, the Tables node is empty, although it should not be. There are tables in that schema and I can select data from them, so security is not an issue:
For example:
select tabschema, tabname from syscat.tables where tabschema not like 'SYS%' order by 1,2;
returns many schema names and table names is those schemas. Let's pick one, i.e table name METER_TYPE in schema METER ( there are 4 tables in schema METER)
select count(*) from meter.meter_type
returns: 38
However, the Tables node shows no tables. Tese tables are not Aliases (DB2 slang for synonyms) or views, however, those 2 nodes are also empty when they should not be - we have schemas with aliases and views, which are also NOT shown. The Index node is populated most frequently, but not completely (there are indexes missing).
Here are my details (don't be fooled by java 1.7, the behaviour is the same with 1.6):
DB2 jdbc driver version: 3.57.82
About
Oracle SQL Developer 3.0.04
Version 3.0.04
Build MAIN-04.34
Copyright © 2005, 2011 Oracle. All Rights Reserved.
IDE Version: 11.1.1.4.37.59.31
Product ID: oracle.sqldeveloper
Product Version: 11.1.2.04.34
Version
Component Version
========= =======
Java(TM) Platform 1.7.0
Oracle IDE 3.0.04.34
Versioning Support 3.0.04.34
Properties
Name Value
==== =====
awt.toolkit sun.awt.X11.XToolkit
class.load.environment oracle.ide.boot.IdeClassLoadEnvironment
class.load.log.level CONFIG
class.transfer delegate
file.encoding UTF-8
file.encoding.pkg sun.io
file.separator /
http.nonProxyHosts localhost|localhost.localdomain|127.0.0.1|::1|localhost|alex.localdomain
ice.browser.forcegc false
ice.pilots.html4.ignoreNonGenericFonts true
ice.pilots.html4.tileOptThreshold 0
ide.AssertTracingDisabled true
ide.bootstrap.start 5367470843749639
ide.build MAIN-04.34
ide.conf /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/bin/sqldeveloper.conf
ide.config_pathname /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/bin/sqldeveloper.conf
ide.debugbuild false
ide.devbuild false
ide.extension.search.path sqldeveloper/extensions:jdev/extensions:ide/extensions
ide.firstrun true
ide.java.minversion 1.6.0_04
ide.main.class oracle.ide.boot.IdeLauncher
ide.patches.dir ide/lib/patches
ide.pref.dir /home/alex/.sqldeveloper
ide.product oracle.sqldeveloper
ide.splash.screen splash.gif
ide.startingcwd "/home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/bin"
ide.user.dir /home/alex/.sqldeveloper
ide.user.dir.var IDE_USER_DIR
ide.vcs.noapplications true
ide.work.dir /home/alex/sqldeveloper
ilog.propagatesPropertyEditors false
java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
java.awt.printerjob sun.print.PSPrinterJob
java.class.path ../../ide/lib/ide-boot.jar
java.class.version 51.0
java.endorsed.dirs /home/alex/prg/jdk1.7.0/jre/lib/endorsed
java.ext.dirs /home/alex/prg/jdk1.7.0/jre/lib/ext:/usr/java/packages/lib/ext
java.home /home/alex/prg/jdk1.7.0/jre
java.io.tmpdir /tmp
java.library.path /home/alex/prg/oracle/instantclient_11_2::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.naming.factory.initial oracle.javatools.jndi.LocalInitialContextFactory
java.protocol.handler.pkgs oracle.jdevimpl.handler
java.runtime.name Java(TM) SE Runtime Environment
java.runtime.version 1.7.0-b147
java.specification.name Java Platform API Specification
java.specification.vendor Oracle Corporation
java.specification.version 1.7
java.util.logging.config.file logging.conf
java.vendor Oracle Corporation
java.vendor.url http://java.oracle.com/
java.vendor.url.bug http://bugreport.sun.com/bugreport/
java.version 1.7.0
java.vm.info mixed mode
java.vm.name Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Oracle Corporation
java.vm.specification.version 1.7
java.vm.vendor Oracle Corporation
java.vm.version 21.0-b17
jdbc.library /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/jdbc/lib/ojdbc6.jar
line.separator \n
log.file.name /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/extensions/oracle.datamodeler/log/datamodeler.log
oracle.home /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper
oracle.ide.util.AddinPolicyUtils.OVERRIDE_FLAG true
oracle.jdbc.mapDateToTimestamp false
oracle.net.tns_admin /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/network/admin
oracle.translated.locales de,es,fr,it,ja,ko,pt_BR,zh_CN,zh_TW
oracle.xdkjava.compatibility.version 9.0.4
orai18n.library /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/jlib/orai18n.jar
os.arch amd64
os.name Linux
os.version 2.6.30.10-105.2.23.fc11.x86_64
path.separator :
reserved_filenames con,aux,prn,lpt1,lpt2,lpt3,lpt4,lpt5,lpt6,lpt7,lpt8,lpt9,com1,com2,com3,com4,com5,com6,com7,com8,com9,conin$,conout,conout$
sqldev.debug false
sun.arch.data.model 64
sun.awt.enableExtraMouseButtons true
sun.boot.class.path /home/alex/prg/jdk1.7.0/jre/lib/resources.jar:/home/alex/prg/jdk1.7.0/jre/lib/rt.jar:/home/alex/prg/jdk1.7.0/jre/lib/sunrsasign.jar:/home/alex/prg/jdk1.7.0/jre/lib/jsse.jar:/home/alex/prg/jdk1.7.0/jre/lib/jce.jar:/home/alex/prg/jdk1.7.0/jre/lib/charsets.jar:/home/alex/prg/jdk1.7.0/jre/classes
sun.boot.library.path /home/alex/prg/jdk1.7.0/jre/lib/amd64
sun.cpu.endian little
sun.cpu.isalist
sun.desktop gnome
sun.io.unicode.encoding UnicodeLittle
sun.java.command oracle.ide.boot.Launcher
sun.java.launcher SUN_STANDARD
sun.java2d.ddoffscreen false
sun.java2d.pmoffscreen false
sun.jnu.encoding UTF-8
sun.management.compiler HotSpot 64-Bit Tiered Compilers
sun.os.patch.level unknown
svnkit.sax.useDefault true
user.country US
user.dir /home/alex/prg/oracle/sqldeveloper300434/sqldeveloper/sqldeveloper/bin
user.home /home/alex
user.language en
user.name alex
user.timezone CET
windows.shell.font.languages
Extensions
Name Identifier Version Status
==== ========== ======= ======
Check For Updates oracle.ide.webupdate 11.1.1.4.37.59.31 Loaded
Code Editor oracle.ide.ceditor 11.1.1.4.37.59.31 Loaded
Component Palette oracle.ide.palette1 11.1.1.4.37.59.31 Loaded
Data Miner oracle.dmt.dataminer 11.2.0.1.10.109 Loaded
Database Connection Support oracle.jdeveloper.db.connection 11.1.1.4.37.59.31 Loaded
Database Object Explorers oracle.ide.db.explorer 11.1.1.4.37.59.31 Loaded
Database UI oracle.ide.db 11.1.1.4.37.59.31 Loaded
Diagram Framework oracle.diagram 11.1.1.4.37.59.31 Loaded
Diagram Javadoc Extension oracle.diagram.javadoc 11.1.1.4.37.59.31 Loaded
Diagram Thumbnail oracle.diagram.thumbnail 11.1.1.4.37.59.31 Loaded
Diff/Merge oracle.ide.diffmerge 11.1.1.4.37.59.31 Loaded
Extended IDE Platform oracle.javacore 11.1.1.4.37.59.31 Loaded
External Tools oracle.ide.externaltools 11.1.1.4.37.59.31 Loaded
File Support oracle.ide.files 11.1.1.4.37.59.31 Loaded
Help System oracle.ide.help 11.1.1.4.37.59.31 Loaded
History Support oracle.jdeveloper.history 11.1.1.4.37.59.31 Loaded
Import/Export Support oracle.ide.importexport 11.1.1.4.37.59.31 Loaded
Index Migrator support oracle.ideimpl.indexing-migrator 11.1.1.4.37.59.31 Loaded
JDeveloper Runner oracle.jdeveloper.runner 11.1.1.4.37.59.31 Loaded
JViews Registration Addin oracle.diagram.registration 11.1.1.4.37.59.31 Loaded
Log Window oracle.ide.log 11.1.1.4.37.59.31 Loaded
Mac OS X Adapter oracle.ideimpl.apple 11.1.1.4.37.59.31 Loaded
Navigator oracle.ide.navigator 11.1.1.4.37.59.31 Loaded
Object Gallery oracle.ide.gallery 11.1.1.4.37.59.31 Loaded
Oracle IDE oracle.ide 11.1.1.4.37.59.31 Loaded
Oracle SQL Developer oracle.sqldeveloper 11.1.2.04.34 Loaded
Oracle SQL Developer - 3rd Party Database Browsers oracle.sqldeveloper.thirdparty.browsers 11.1.1.04.34 Loaded
Oracle SQL Developer - DBA Navigator oracle.sqldeveloper.dbanavigator 11.1.1.04.34 Loaded
Oracle SQL Developer - Extras oracle.sqldeveloper.extras 1.1.1.04.34 Loaded
Oracle SQL Developer - File Navigator oracle.sqldeveloper.filenavigator 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Antlr3 Translator oracle.sqldeveloper.migration.translation.core_antlr3 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Application Migration oracle.sqldeveloper.migration.application 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Core oracle.sqldeveloper.migration 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations DB2 oracle.sqldeveloper.migration.db2 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations DB2 Translator oracle.sqldeveloper.migration.translation.db2 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Microsoft Access oracle.sqldeveloper.migration.msaccess 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Microsoft SQL Server oracle.sqldeveloper.migration.sqlserver 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations MySQL oracle.sqldeveloper.migration.mysql 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Sybase Adaptive Server oracle.sqldeveloper.migration.sybase 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations T-SQL Translator oracle.sqldeveloper.migration.translation.core 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Teradata oracle.sqldeveloper.migration.teradata 11.1.1.04.34 Loaded
Oracle SQL Developer - Migrations Translation UI oracle.sqldeveloper.migration.translation.gui 11.1.1.04.34 Loaded
Oracle SQL Developer - Object Viewer oracle.sqldeveloper.oviewer 11.1.1.04.34 Loaded
Oracle SQL Developer - Real Time SQL Monitoring oracle.sqldeveloper.sqlmonitor 11.1.1.04.34 Loaded
Oracle SQL Developer - Reports oracle.sqldeveloper.report 11.1.1.04.34 Loaded
Oracle SQL Developer - Scheduler oracle.sqldeveloper.scheduler 11.1.1.04.34 Loaded
Oracle SQL Developer - Schema Browser oracle.sqldeveloper.schemabrowser 11.1.1.04.34 Loaded
Oracle SQL Developer - SearchBar oracle.sqldeveloper.searchbar 11.1.1.04.34 Loaded
Oracle SQL Developer - Snippet oracle.sqldeveloper.snippet 11.1.1.04.34 Loaded
Oracle SQL Developer - Spatial oracle.sqldeveloper.spatial 11.1.1.04.34 Loaded
Oracle SQL Developer - TimesTen oracle.sqldeveloper.timesten 2.0.0.04.34 Loaded
Oracle SQL Developer - Tuning oracle.sqldeveloper.tuning 11.1.1.04.34 Loaded
Oracle SQL Developer - Unit Test oracle.sqldeveloper.unit_test 11.1.1.04.34 Loaded
Oracle SQL Developer - User Extensions Support oracle.sqldeveloper.userextensions 11.1.1.04.34 Loaded
Oracle SQL Developer - Worksheet v2 oracle.sqldeveloper.worksheet 11.1.1.04.34 Loaded
Oracle SQL Developer - XML Schema oracle.sqldeveloper.xmlschema 11.1.1.04.34 Loaded
Oracle SQL Developer Data Modeler oracle.datamodeler 3.0.0.665.2 Loaded
Oracle SQL Developer Data Modeler - Reports oracle.sqldeveloper.datamodeler_reports 11.1.1.04.34 Loaded
PROBE Debugger oracle.jdeveloper.db.debug.probe 11.1.1.4.37.59.31 Loaded
Peek oracle.ide.peek 11.1.1.4.37.59.31 Loaded
Persistent Storage oracle.ide.persistence 11.1.1.4.37.59.31 Loaded
Property Inspector oracle.ide.inspector 11.1.1.4.37.59.31 Loaded
QuickDiff oracle.ide.quickdiff 11.1.1.4.37.59.31 Loaded
Replace With oracle.ide.replace 11.1.1.4.37.59.31 Loaded
Runner oracle.ide.runner 11.1.1.4.37.59.31 Loaded
SQL Developer Patch oracle.sqldeveloper.patch 11.1.2.04.39 Loaded
VHV oracle.ide.vhv 11.1.1.4.37.59.31 Loaded
Versioning Support oracle.jdeveloper.vcs 11.1.1.4.37.59.31 Loaded
Versioning Support for Subversion oracle.jdeveloper.subversion 11.1.1.4.37.59.31 Loaded
Virtual File System oracle.ide.vfs 11.1.1.4.37.59.31 Loaded
Web Browser and Proxy oracle.ide.webbrowser 11.1.1.4.37.59.31 Loaded
XML Editing Framework IDE Extension oracle.ide.xmlef 11.1.1.4.37.59.31 Loaded
audit oracle.ide.audit 11.1.1.4.37.59.31 Loaded
classpath: protocol handler extension oracle.jdeveloper.classpath 11.1.1.0.0 Loaded
jdukshare oracle.bm.jdukshare 11.1.1.4.37.59.31 Loaded
mof-xmi oracle.mof.xmi 11.1.1.4.37.59.31 Loaded
oracle.ide.dependency oracle.ide.dependency 11.1.1.4.37.59.31 Loaded
oracle.ide.indexing oracle.ide.indexing 11.1.1.4.37.59.31 Loaded
palette2 oracle.ide.palette2 11.1.1.4.37.59.31 Loaded
status oracle.ide.status 11.1.1.4.37.59.31 LoadedIt doesn't sound like this is the answer in your case, but here is a problem I had with tree icons in 6i which took me a while to figure out.
For some unknown and probably pointless reason, forms converts the tree query to uppercase before executing it. This can cause problems if the sql contains any hardcoded strings. In my case I was doing something like
decode(status,1,'red',2,'green')||icon_name
this resulted in REDicon when my icon was actually redicon.gif -
Help is not shown in the window
I have written the necessary documents (HelpSet, MapFile, HelpTOC).
The Table-Of-Contents are shown in the left frame, but if I select them, the html-help-file is not shown in the right frame.
Please help!
HelpSet:
<maps>
<homeID>top </homeID>
<mapref location="vcsMapFile.jhm" />
</maps>
<!-- views -->
<view>
<name>TOC</name>
<label>Table Of Contents</label>
<type>javax.help.TOCView</type>
<data>vcsHelpTOC.xml</data>
</view>
HelpTOC:
<?xml version='1.0' encoding='UTF-8' ?>
<!-- was: <?xml version='1.0' encoding='ISO−8859−1' ?> -->
<!DOCTYPE toc
PUBLIC
"−//Sun Microsystems Inc.//DTD
JavaHelp TOC Version 2.0//EN"
"http://java.sun.com/products/javahelp/toc_2_0.dtd">
<toc version="2.0">
<tocitem image="toplevelfolder"
text="Virtual Circuit System">
<tocitem text="Schaltungen erstellen" target="test">
</tocitem>
</tocitem>
</toc>
MapFile:
<?xml version='1.0' encoding='ISO?8859?1' ?>
<!DOCTYPE map
PUBLIC "?//Sun Microsystems Inc.//DTD JavaHelp Map Version 2.0//EN"
"http://java.sun.com/products/javahelp/map_2_0.dtd">
<map version="2.0">
<mapID target="test" url="test.html" />
</map>
test.html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
That is the help.
</body>
</html>The tutorial I believe you are referring to uses Visual Studio .NET 2003. So, it won't be in the exact same place as Visual Studio 2005.
You should be able to right click on the database connection node and see an option for Query Window. -
Tables (not shown or hidden)
Hi Experts,
Is there a way of showing tables that are hidden or not shown in the query wizard listing when you tab to see the table list.
I have had a couple of instances where when trying too write the query and struggled. But when I have spoken to our BP Channel Partner they have given me a table name not shown in the wizard and I have got the query information.
For example CSHS does not show in the wizard as a named table but if you ignore and cancel the blank selection list carry on and select all. Data fields are shown and you can return data.
Thanks.
Regards
JimJim,
It's not possible to display those tables in SAP but I have a list of all the existing ones, I've sent it to your e-mail address.
Regards,
Nat -
Modified versions from external editor are not shown in browser, why?
After I modify an image in Silver Efex and save it , the image is not shown in it's modified form in the browser. When I open the image it shows as modified.
Remember when you return an image from an external editor/plugin the returned image is made into a new master. Are you sure you're looking at the correct image in Aperture?
If that's not it post back describing the exact steps you are taking from sending the image to the plugin until you're back in Aperture.
regards -
App tabs not shown after browser closes and reopens
Greetings.
I tryed to use the new App Tabs future, i pinned some tabs, but after i close the browser and reopen it, the tabs not shown.
I tryed it with only 1 tab and multiple, but it's the same.
Anyone have an answer or it's allready a bug?
Thank you.App tabs are only restored if you restore the session. [[Options window - General panel#w_startup]] 'Show my windows and tabs from last time' will always restore your tabs and app tabs.
Using the history menu item and then 'Restore previous session' or set about:home as your home page and it will have a button to restore your previous session. Will also work. -
HR SCHEMA FILES PRESENT BUT TABLES NOT SHOWN IN SQL DEVELOPER - PLS HELP
Dear DBA's,
I am studying towards the OCA and working through the SQL Fundamentals I Exam guide text book by John Watson and Roopesh Ramklass. I have a problem with accessing the HR Schema tables in SQL Developer. I can get connected to the HR schema but no information is available when i click on the + sign next to the "Tables (filtered)" link in SQL Developer under Human Resources - BTW (I've downloaded Oracle 11G)
Please help, I've tried the following already;
1. Downloaded the HR Schema sample scripts again
2. Resetting the Sample schema with this syntax in SQL PLUS - @?/demo/schema/mksample systempwd syspwd hrpwd oepwd pmpwd ixpwd shpwd bipwd default_tablespace temp_tablespace log_file_directory/
3. I have no Master script file so I cant recreate the sample scripts
I've been reading forums and trying to Google but I am too new at this and just can't get the HR schema to display all the information in SQL Developer. Please help as I really badly need to practice the exercises in the text book.
Any help to resolve this will be greatly appreciated.
Ali
Edited by: 942730 on Jun 26, 2012 1:15 AM942730 wrote:
Dear DBA's,
I am studying towards the OCA and working through the SQL Fundamentals I Exam guide text book by John Watson and Roopesh Ramklass. I have a problem with accessing the HR Schema tables in SQL Developer. I can get connected to the HR schema but no information is available when i click on the + sign next to the "Tables (filtered)" link in SQL Developer under Human Resources - BTW (I've downloaded Oracle 11G)
Please help, I've tried the following already;
1. Downloaded the HR Schema sample scripts again
2. Resetting the Sample schema with this syntax in SQL PLUS - @?/demo/schema/mksample systempwd syspwd hrpwd oepwd pmpwd ixpwd shpwd bipwd default_tablespace temp_tablespace log_file_directory/
3. I have no Master script file so I cant recreate the sample scripts
I've been reading forums and trying to Google but I am too new at this and just can't get the HR schema to display all the information in SQL Developer. Please help as I really badly need to practice the exercises in the text book.
Any help to resolve this will be greatly appreciated.
Alisqlplus
/ as sysdba
alter user HR identified by hr account unlock;
connect hr/hr
select table_name from user_tables;
exit -
Would Appreciate Your Help - Tables Not Connecting/Pages Not Being Generated
Hi,
I have a recipes section in the site I'm building.
There are 7 categories from which a user can click on.
The first page of each category has a form on it for users to enter a new recipe. Once they've entered a new recipe, the title of it is shown above the form. Here's where the problem starts.
First category is desserts, and I entered two dummy titles as a trial run, Apple and Blueberry. No matter which title I click on, I am taken to the page for Apple. And the thing is, when I click on Blueberry, the url address shows Blueberry as the recipe ID. Which indicates to me that it's recognizing it, but not going to the recipe. What am I missing? Could someone please advise as to how I can have the necessary pages created?
There are two separate tables in my database, Recipes, and Categories. The second table was created after I made the SQL connection in Dreamweaver. Do I need to reestablish the connection, because of when the second table was created?
Thank you.
This is the SQL Join that I have on both the Main Desserts Page, and the one to which a recipe should appear on, Recipes Desserts:
$query = "SELECT title".
"FROM recipes, categories".
"WHERE recipes.cat_id = categories.cat_id";
"AND category = desserts";
Here's the code on the Main Desserts page:
<div id="background">
<div id="navbar2">
<ul>
<li><a href="desserts.php">Desserts</a></li>
<li><a href="drinks.php">Drinks</a></li>
<li><a href="fowl.php">Fowl</a></li>
<li><a href="meat.php">Meat</a></li>
<li><a href="pasta.php">Pasta</a></li>
<li><a href="seafood.php">Seafood</a></li>
<li><a class="last" href="vegetables.php">Vegetables</a></li>
</ul>
<p>
</div>
<div id="items">
<ol>
<?php do { ?>
<li><a href="recipesdesserts.php?recipeID=1<?php echo $row_GetRecipes['Title']; ?>"><strong><?php echo $row_GetRecipes['Title']; ?></strong></a></li>
<?php } while ($row_GetRecipes = mysql_fetch_assoc($GetRecipes)); ?>
</ol>
<p><a href="<?php printf("%s?pageNum_GetRecipes=%d%s", $currentPage, max(0, $pageNum_GetRecipes - 1), $queryString_GetRecipes); ?>">Previous</a> Showing<?php echo ($startRow_GetRecipes + 1) ?>...<?php echo min($startRow_GetRecipes + $maxRows_GetRecipes, $totalRows_GetRecipes) ?> out of <?php echo $totalRows_GetRecipes ?> <a href="<?php printf("%s?pageNum_GetRecipes=%d%s", $currentPage, min($totalPages_GetRecipes, $pageNum_GetRecipes + 1), $queryString_GetRecipes); ?>">Next</a></p>
</div>
</div>I'll try to paint a better picture.
I have two tables in the database.
First table is Recipes. The fields in this one are: Title, Ingredients, Prep, Serves.
Second table is Categories. The fields in this one are: Title, Desserts, Drinks, Fowl, Meat, Pasta, Seafood, Vegetables.
User 1 enters the following into the form:
Title: Apple Strudel
Ingredients: Apples, Flour, Water
Prep: Core and slice apples, etc.
Serves: 6
User 2 enters the following into the form:
Title: Blueberry Pie
Ingredients: Blueberries, Flour, Water
Prep: Wash blueberries, etc.
Serves: 6
Both titles now appear on the Main Desserts page, which is what I want. When a user clicks on the title, "Apple Strudel," they are taken to the page with that recipe on it. When a user clicks on the title, "Blueberry Pie," the ending of the URL address is recipesdesserts.php?recipeID=1Blueberry, but the page that's generated shows the recipe for the Strudel.
Does that help at all?
Thank you. -
caption align="left" for table not working in browser
Hi,
I am using Dreamweaver CS6. I have placed two tables on my page and am using <caption align="left"> to left-justify the captions. This looks fine in Design View, but when I bring the page up in a browser, the captions are still centered. I have tested this in I.E. 9 and Chrome, which are the only two browsers I have installed, and the result is the same in both.
Any ideas? I am fairly new to Dreamweaver, and have taken classes in basic Dreamweaver and HTML/CSS. I have searched online help, and could find nothing about this issue.
TIA!
DeniseNot meaning to beat a dead horse but I want to assure you that the <hr> or <hr /> tag is NOT deprecated in HTML or XHTML doc types.
However, the HTML attributes for it: align, noshade, size and width are all deprecated in HTML 4.01 and not supported in HTML5. This is why you must use CSS to style it.
As for IE not displaying correctly, something else is amiss in your code.
As an example, this code has no errors & tests fine in IE7, 8, 9, current Chrome, Opera & Firefox.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>HR Test</title>
<style type="text/css">
hr {
color: #900;
background-color:#900;
height: 1px;
width: 75%;
border: none;
margin-top: 20px;
</style>
</head>
<body>
<h3>Horizontal Rule styled with CSS</h3>
<hr />
</body>
</html>
Nancy O. -
In BSP 'ZCRM_BSP_CP' we make use of a tree with nodes showing a business partner (organization), its departments and contact persons.
The tree is shown as expected, meaning that the organization is shown at the highest level, the nodes underneath are related to the departments and within the departments the contact persons are shown.
On selecting the contact person, the detailed data of that employee should be shown at the right-hand side of the screen. However, although the view is called, no output is shown in the browser.
Everything works fine in production, but this problem occured in development since we have implemented SIE-ADDON (CRMIS until SP04) and SUPPORT PACKAGES BASIS 620 56 and ABA 620 56.
Does anybody know what causes this strange behavior?
Regards,
HenryHi,
if the click is unresponsive/ not doing anything, then i suspect your db user has insufficient rights (i.e. try dbowner instead)
if you trace the client tool, then you would get more information in the logs as to the root cause.
please search www.service.sap.com/xsearch for 'how to trace Universe Designer XI3.1"
regards,
H -
I am using Oracle SQL Developer 3.0.03. We are going through some security lock downs in Oracle (10g, 11g) and before we were able to use Oracle SQL Developer to see tables, when logged in as the schema owner. Now, after completing the Oracle lock down, we're not able to. The easiest thing is to revert everything back, however, we can't do that. Can someone tell me what Oracle SQL Developer needs in order to see a table list? When I click on Tables, to expand, I get o.d.db.DBUtil (Source) and Warning, unhandled exception: ORA-00942: table or view does not exist. Any help would be much appreciated
Looking at the logs, the query that is failing is this:
select * from
SELECT o.OBJECT_NAME,
o.OBJECT_ID,
'' short_name,
decode(bitand(t.property, 32), 32, 'YES', 'NO') partitioned,
decode(bitand(t.property, 64), 64, 'IOT',
decode(bitand(t.property, 512), 512, 'IOT_OVERFLOW',
decode(bitand(t.flags, 536870912), 536870912, 'IOT_MAPPING', null)
) iot_type,
o.OWNER OBJECT_OWNER,
o.CREATED,
o.LAST_DDL_TIME,
O.GENERATED,
O.TEMPORARY,
case when xt.obj# is null
then 'N'
else 'Y'
end EXTERNAL
FROM SYS.Dba_OBJECTS O,
sys.tab$ t, sys.external_tab$ xt
WHERE O.OWNER = :SCHEMA
and o.object_id = t.obj#(+)
and o.object_id = xt.obj#(+)
AND O.OBJECT_TYPE = 'TABLE'
union all
SELECT OBJECT_NAME, OBJECT_ID , syn.SYNONYM_NAME short_NAME, decode(bitand(t.property, 32), 32, 'YES', 'NO') partitioned,
decode(bitand(t.property, 64), 64, 'IOT',
decode(bitand(t.property, 512), 512, 'IOT_OVERFLOW',
decode(bitand(t.flags, 536870912), 536870912, 'IOT_MAPPING', null))) iot_type,
SYN.TABLE_OWNER OBJECT_OWNER, o.CREATED, o.LAST_DDL_TIME, O.GENERATED, O.TEMPORARY, case when xt.obj# is null then 'N' else 'Y' end EXTERNAL
FROM SYS.Dba_OBJECTS O, sys.user_synonyms syn,sys.tab$ t, sys.external_tab$ xt
WHERE syn.table_owner = o.owner
and syn.TABLE_NAME = o.object_NAME
and o.object_id = t.obj#
and o.object_id = xt.obj#(+)
and o.object_type = 'TABLE'
and :INCLUDE_SYNS = 1
) -
When I build a WebHelp project, I then link my app to the
main .htm file. This of course opens in a browser. I notice when in
RoboHelp, if I open their help, it's still opening a .htm frameset
but it's not launching in a browser. How can I accomplish this?
The issue with the browser is that if it's opening a local
.htm (C:\Help\MyHelp.htm), it brings up that infamous yellow bar
asking if you want to allow blocked content and I don't want the
users to get that.
Thanks in advance!
~ LisaHi again Lisa
Let's back up a tad. There are many ways to generate your
WebHelp.
* You may click the "Quick Generate" toolbar icon
* You may use the super secret "now that I''ve told you I
have to kill you" keyboard combination of Ctrl+M
* You may click File > Generate Primary Layout
* You may expand the Single Source Layouts pseudo folder and
double-click the layout.
If you use the last option, you should see some intermediate
screens that allow you to choose many different options prior to
creating your help. The first screen should have a check box
labeled "Add Mark of the Web". This is where you should find the
option.
Cheers... Rick -
hi,
I have a simple program: one frame's content pane adds two JPanels.
Source as follows:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class DragTest2 {
public static void main(String[] args) {
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setSize(new Dimension(Constants.RECEIPT_WIDTH_X_AXIS,
(int)(Constants.RECEIPT_WIDTH_X_AXIS/Constants.RECEIPT_X_WIDTH_TO_Y_LENGTH_RATIO)));
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
int x = screenSize.width/2 - frame.getSize().width/2;
int y = screenSize.height/2 - frame.getSize().height/2;
frame.setLocation(x, y);
Container c = frame.getContentPane();
c.setLayout(null);
// Adding two panels
c.add(new DraggableJPanel(100, 200));
c.add(new DraggableJPanel(300, 400));
c.validate();
Insets insets = frame.getInsets();
frame.setVisible(true);
public class DraggableJPanel extends JPanel {
private final JPanel p;
private final JTextField tf;
public DraggableJPanel(int x, int y){
tf = new JTextField(Integer.toString(x)+"---"+Integer.toString(y));
p = this;
tf.addMouseMotionListener(new MouseMotionAdapter() {
public void mouseDragged(MouseEvent e) {
p.setLocation(p.getX()+e.getX(), p.getY()+e.getY());
this.add(tf);
p.setLocation(x,y);
Nothing fancy here.
However, when i run the program, i can NOT see any jtextfield. Moreover, if I comment out
the c.setLayout(null), I can see the 2nd Jtextfield (but in a wrong location, not 300, 400),
not the first.
Any help is greatly appreciated.
JKBorderLayout is the default layout for a contentpane. By default, add() adds a componetn to the center of
the border layout. You can only have one component
in the center. If you put another there, the first
is gone. Either use add(myPanel, BorderLayout.NORTH)
or change the layout.Thanks for the help.
I want to do the absolute positioning, that is why inside DraggableJPanel, I have setLocation( ) called:
this.setLocation(x,y);
However, for some reason, the JPanel doesn't show up at all.
Seems to me content pane is ignoring this setLocation call for some reason.
You pointed out a good diretion, i will continue investigate. Thanks again.
JK -
i have logon to the ORACLE SQL. when i write the query ,
select * from emp
ORA-00942: table or view does not exist
what is the problem with it? what i have to doCopy the below code into a text editor like notepad or something else. Save it like demo.sql or anything in any of your familiar folders which SQL*Plus recognizes. You can always run the file as I mentioned earlier.
@your_path\demo.sql
Here goes the code.
-- echo Building Oracle demonstration tables. Please wait.
DROP TABLE EMP;
DROP TABLE DEPT;
DROP TABLE BONUS;
DROP TABLE SALGRADE;
DROP TABLE DUMMY;
DROP TABLE ITEM;
DROP TABLE PRICE;
DROP TABLE PRODUCT;
DROP TABLE ORD;
DROP TABLE CUSTOMER;
DROP VIEW SALES;
DROP SEQUENCE ORDID;
DROP SEQUENCE CUSTID;
DROP SEQUENCE PRODID;
CREATE TABLE DEPT (
DEPTNO NUMBER(2) NOT NULL,
DNAME CHAR(14),
LOC CHAR(13),
CONSTRAINT DEPT_PRIMARY_KEY PRIMARY KEY (DEPTNO));
INSERT INTO DEPT VALUES (10,'ACCOUNTING','NEW YORK');
INSERT INTO DEPT VALUES (20,'RESEARCH','DALLAS');
INSERT INTO DEPT VALUES (30,'SALES','CHICAGO');
INSERT INTO DEPT VALUES (40,'OPERATIONS','BOSTON');
CREATE TABLE EMP (
EMPNO NUMBER(4) NOT NULL,
ENAME CHAR(10),
JOB CHAR(9),
MGR NUMBER(4) CONSTRAINT EMP_SELF_KEY REFERENCES EMP (EMPNO),
HIREDATE DATE,
SAL NUMBER(7,2),
COMM NUMBER(7,2),
DEPTNO NUMBER(2) NOT NULL,
CONSTRAINT EMP_FOREIGN_KEY FOREIGN KEY (DEPTNO) REFERENCES DEPT (DEPTNO),
CONSTRAINT EMP_PRIMARY_KEY PRIMARY KEY (EMPNO));
INSERT INTO EMP VALUES (7839,'KING','PRESIDENT',NULL,'17-NOV-81',5000,NULL,10);
INSERT INTO EMP VALUES (7698,'BLAKE','MANAGER',7839,'1-MAY-81',2850,NULL,30);
INSERT INTO EMP VALUES (7782,'CLARK','MANAGER',7839,'9-JUN-81',2450,NULL,10);
INSERT INTO EMP VALUES (7566,'JONES','MANAGER',7839,'2-APR-81',2975,NULL,20);
INSERT INTO EMP VALUES (7654,'MARTIN','SALESMAN',7698,'28-SEP-81',1250,1400,30);
INSERT INTO EMP VALUES (7499,'ALLEN','SALESMAN',7698,'20-FEB-81',1600,300,30);
INSERT INTO EMP VALUES (7844,'TURNER','SALESMAN',7698,'8-SEP-81',1500,0,30);
INSERT INTO EMP VALUES (7900,'JAMES','CLERK',7698,'3-DEC-81',950,NULL,30);
INSERT INTO EMP VALUES (7521,'WARD','SALESMAN',7698,'22-FEB-81',1250,500,30);
INSERT INTO EMP VALUES (7902,'FORD','ANALYST',7566,'3-DEC-81',3000,NULL,20);
INSERT INTO EMP VALUES (7369,'SMITH','CLERK',7902,'17-DEC-80',800,NULL,20);
INSERT INTO EMP VALUES (7788,'SCOTT','ANALYST',7566,'09-DEC-82',3000,NULL,20);
INSERT INTO EMP VALUES (7876,'ADAMS','CLERK',7788,'12-JAN-83',1100,NULL,20);
INSERT INTO EMP VALUES (7934,'MILLER','CLERK',7782,'23-JAN-82',1300,NULL,10);
CREATE TABLE BONUS (
ENAME CHAR(10),
JOB CHAR(9),
SAL NUMBER,
COMM NUMBER);
CREATE TABLE SALGRADE (
GRADE NUMBER,
LOSAL NUMBER,
HISAL NUMBER);
INSERT INTO SALGRADE VALUES (1,700,1200);
INSERT INTO SALGRADE VALUES (2,1201,1400);
INSERT INTO SALGRADE VALUES (3,1401,2000);
INSERT INTO SALGRADE VALUES (4,2001,3000);
INSERT INTO SALGRADE VALUES (5,3001,9999);
CREATE TABLE DUMMY (
DUMMY NUMBER );
INSERT INTO DUMMY VALUES (0);
CREATE TABLE CUSTOMER (
CUSTID NUMBER (6) NOT NULL,
NAME CHAR (45),
ADDRESS CHAR (40),
CITY CHAR (30),
STATE CHAR (2),
ZIP CHAR (9),
AREA NUMBER (3),
PHONE CHAR (9),
REPID NUMBER (4) NOT NULL,
CREDITLIMIT NUMBER (9,2),
COMMENTS LONG,
CONSTRAINT CUSTOMER_PRIMARY_KEY PRIMARY KEY (CUSTID),
CONSTRAINT CUSTID_ZERO CHECK (CUSTID > 0));
CREATE TABLE ORD (
ORDID NUMBER (4) NOT NULL,
ORDERDATE DATE,
COMMPLAN CHAR (1),
CUSTID NUMBER (6) NOT NULL,
SHIPDATE DATE,
TOTAL NUMBER (8,2) CONSTRAINT TOTAL_ZERO CHECK (TOTAL >= 0),
CONSTRAINT ORD_FOREIGN_KEY FOREIGN KEY (CUSTID) REFERENCES CUSTOMER (CUSTID),
CONSTRAINT ORD_PRIMARY_KEY PRIMARY KEY (ORDID));
CREATE TABLE ITEM (
ORDID NUMBER (4) NOT NULL,
ITEMID NUMBER (4) NOT NULL,
PRODID NUMBER (6),
ACTUALPRICE NUMBER (8,2),
QTY NUMBER (8),
ITEMTOT NUMBER (8,2),
CONSTRAINT ITEM_FOREIGN_KEY FOREIGN KEY (ORDID) REFERENCES ORD (ORDID),
CONSTRAINT ITEM_PRIMARY_KEY PRIMARY KEY (ORDID,ITEMID));
CREATE TABLE PRODUCT (
PRODID NUMBER (6) CONSTRAINT PRODUCT_PRIMARY_KEY PRIMARY KEY,
DESCRIP CHAR (30));
CREATE TABLE PRICE (
PRODID NUMBER (6) NOT NULL,
STDPRICE NUMBER (8,2),
MINPRICE NUMBER (8,2),
STARTDATE DATE,
ENDDATE DATE);
INSERT INTO CUSTOMER (ZIP, STATE, REPID, PHONE, NAME, CUSTID, CREDITLIMIT,
CITY, AREA, ADDRESS, COMMENTS)
VALUES ('96711', 'CA', '7844', '598-6609',
'JOCKSPORTS',
'100', '5000', 'BELMONT', '415', '345 VIEWRIDGE',
'Very friendly people to work with -- sales rep likes to be called Mike.');
INSERT INTO CUSTOMER (ZIP, STATE, REPID, PHONE, NAME, CUSTID, CREDITLIMIT,
CITY, AREA, ADDRESS, COMMENTS)
VALUES ('94061', 'CA', '7521', '368-1223',
'TKB SPORT SHOP',
'101', '10000', 'REDWOOD CITY', '415', '490 BOLI RD.',
'Rep called 5/8 about change in order - contact shipping.');
INSERT INTO CUSTOMER (ZIP, STATE, REPID, PHONE, NAME, CUSTID, CREDITLIMIT,
CITY, AREA, ADDRESS, COMMENTS)
VALUES ('95133', 'CA', '7654', '644-3341',
'VOLLYRITE',
'102', '7000', 'BURLINGAME', '415', '9722 HAMILTON',
'Company doing heavy promotion beginning 10/89. Prepare for large orders during
winter.');
INSERT INTO CUSTOMER (ZIP, STATE, REPID, PHONE, NAME, CUSTID, CREDITLIMIT,
CITY, AREA, ADDRESS, COMMENTS)
VALUES ('97544', 'CA', '7521', '677-9312',
'JUST TENNIS',
'103', '3000', 'BURLINGAME', '415', 'HILLVIEW MALL',
'Contact rep about new line of tennis rackets.');
INSERT INTO CUSTOMER (ZIP, STATE, REPID, PHONE, NAME, CUSTID, CREDITLIMIT,
CITY, AREA, ADDRESS, COMMENTS)
VALUES ('93301', 'CA', '7499', '996-2323',
'EVERY MOUNTAIN',
'104', '10000', 'CUPERTINO', '408', '574 SURRY RD.',
'Customer with high market share (23%) due to aggressive advertising.');
INSERT INTO CUSTOMER (ZIP, STATE, REPID, PHONE, NAME, CUSTID, CREDITLIMIT,
CITY, AREA, ADDRESS, COMMENTS)
VALUES ('91003', 'CA', '7844', '376-9966',
'K + T SPORTS',
'105', '5000', 'SANTA CLARA', '408', '3476 EL PASEO',
'Tends to order large amounts of merchandise at once. Accounting is considering
raising their credit limit. Usually pays on time.');
INSERT INTO CUSTOMER (ZIP, STATE, REPID, PHONE, NAME, CUSTID, CREDITLIMIT,
CITY, AREA, ADDRESS, COMMENTS)
VALUES ('94301', 'CA', '7521', '364-9777',
'SHAPE UP',
'106', '6000', 'PALO ALTO', '415', '908 SEQUOIA',
'Support intensive. Orders small amounts (< 800) of merchandise at a time.');
INSERT INTO CUSTOMER (ZIP, STATE, REPID, PHONE, NAME, CUSTID, CREDITLIMIT,
CITY, AREA, ADDRESS, COMMENTS)
VALUES ('93301', 'CA', '7499', '967-4398',
'WOMENS SPORTS',
'107', '10000', 'SUNNYVALE', '408', 'VALCO VILLAGE',
'First sporting goods store geared exclusively towards women. Unusual promotion
al style and very willing to take chances towards new products!');
INSERT INTO CUSTOMER (ZIP, STATE, REPID, PHONE, NAME, CUSTID, CREDITLIMIT,
CITY, AREA, ADDRESS, COMMENTS)
VALUES ('55649', 'MN', '7844', '566-9123',
'NORTH WOODS HEALTH AND FITNESS SUPPLY CENTER',
'108', '8000', 'HIBBING', '612', '98 LONE PINE WAY', '');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('101.4', '08-JAN-87', '610', '07-JAN-87', '101', 'A');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('45', '11-JAN-87', '611', '11-JAN-87', '102', 'B');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('5860', '20-JAN-87', '612', '15-JAN-87', '104', 'C');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('2.4', '30-MAY-86', '601', '01-MAY-86', '106', 'A');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('56', '20-JUN-86', '602', '05-JUN-86', '102', 'B');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('698', '30-JUN-86', '604', '15-JUN-86', '106', 'A');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('8324', '30-JUL-86', '605', '14-JUL-86', '106', 'A');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('3.4', '30-JUL-86', '606', '14-JUL-86', '100', 'A');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('97.5', '15-AUG-86', '609', '01-AUG-86', '100', 'B');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('5.6', '18-JUL-86', '607', '18-JUL-86', '104', 'C');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('35.2', '25-JUL-86', '608', '25-JUL-86', '104', 'C');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('224', '05-JUN-86', '603', '05-JUN-86', '102', '');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('4450', '12-MAR-87', '620', '12-MAR-87', '100', '');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('6400', '01-FEB-87', '613', '01-FEB-87', '108', '');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('23940', '05-FEB-87', '614', '01-FEB-87', '102', '');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('764', '10-FEB-87', '616', '03-FEB-87', '103', '');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('1260', '04-FEB-87', '619', '22-FEB-87', '104', '');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('46370', '03-MAR-87', '617', '05-FEB-87', '105', '');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('710', '06-FEB-87', '615', '01-FEB-87', '107', '');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('3510.5', '06-MAR-87', '618', '15-FEB-87', '102', 'A');
INSERT INTO ORD (TOTAL, SHIPDATE, ORDID, ORDERDATE, CUSTID, COMMPLAN)
VALUES ('730', '01-JAN-87', '621', '15-MAR-87', '100', 'A');
INSERT INTO ITEM (QTY, PRODID, ORDID, ITEMTOT, ITEMID, ACTUALPRICE)
VALUES ('1', '100890', '610', '58', '3', '58');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '1', '100861', '611', '45', '1', '45');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '100', '100860', '612', '3000', '1', '30');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '1', '200376', '601', '2.4', '1', '2.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '20', '100870', '602', '56', '1', '2.8');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '3', '100890', '604', '174', '1', '58');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '2', '100861', '604', '84', '2', '42');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '10', '100860', '604', '440', '3', '44');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '4', '100860', '603', '224', '2', '56');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '1', '100860', '610', '35', '1', '35');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '3', '100870', '610', '8.4', '2', '2.8');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '200', '200376', '613', '440', '4', '2.2');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '444', '100860', '614', '15540', '1', '35');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '1000', '100870', '614', '2800', '2', '2.8');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '20', '100861', '612', '810', '2', '40.5');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('150', '101863', '612', '1500', '3', '10');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('10', '100860', '620', '350', '1', '35');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('1000', '200376', '620', '2400', '2', '2.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('500', '102130', '620', '1700', '3', '3.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ( '100', '100871', '613', '560', '1', '5.6');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('200', '101860', '613', '4800', '2', '24');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('150', '200380', '613', '600', '3', '4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '102130', '619', '340', '3', '3.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('50', '100860', '617', '1750', '1', '35');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '100861', '617', '4500', '2', '45');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('1000', '100871', '614', '5600', '3', '5.6');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('10', '100861', '616', '450', '1', '45');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('50', '100870', '616', '140', '2', '2.8');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('2', '100890', '616', '116', '3', '58');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('10', '102130', '616', '34', '4', '3.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('10', '200376' , '616', '24', '5', '2.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '200380', '619', '400', '1', '4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '200376', '619', '240', '2', '2.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('4', '100861', '615', '180', '1', '45');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('1', '100871', '607', '5.6', '1', '5.6');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '100870', '615', '280', '2', '2.8');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('500', '100870', '617', '1400', '3', '2.8');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('500', '100871', '617', '2800', '4', '5.6');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('500', '100890', '617', '29000', '5', '58');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '101860', '617', '2400', '6', '24');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('200', '101863', '617', '2500', '7', '12.5');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '102130', '617', '340', '8', '3.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('200', '200376', '617', '480', '9', '2.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('300', '200380', '617', '1200', '10', '4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('5', '100870', '609', '12.5', '2', '2.5');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('1', '100890', '609', '50', '3', '50');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('23', '100860', '618', '805', '1', '35');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('50', '100861', '618', '2255.5', '2', '45.11');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('10', '100870', '618', '450', '3', '45');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('10', '100861', '621', '450', '1', '45');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '100870', '621', '280', '2', '2.8');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('50', '100871', '615', '250', '3', '5');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('1', '101860', '608', '24', '1', '24');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('2', '100871', '608', '11.2', '2', '5.6');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('1', '100861', '609', '35', '1', '35');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('1', '102130', '606', '3.4', '1', '3.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '100861', '605', '4500', '1', '45');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('500', '100870', '605', '1400', '2', '2.8');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('5', '100890', '605', '290', '3', '58');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('50', '101860', '605', '1200', '4', '24');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '101863', '605', '900', '5', '9');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('10', '102130', '605', '34', '6', '3.4');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('100', '100871', '612', '550', '4', '5.5');
INSERT INTO ITEM ( QTY , PRODID , ORDID , ITEMTOT , ITEMID , ACTUALPRICE)
VALUES ('50', '100871', '619', '280', '4', '5.6');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('4.8', '01-JAN-85', '100871', '3.2', '01-DEC-85');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('58', '01-JAN-85', '100890', '46.4', '');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('54', '01-JUN-84', '100890', '40.5', '31-MAY-84');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('35', '01-JUN-86', '100860', '28', '');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('32', '01-JAN-86', '100860', '25.6', '31-MAY-86');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('30', '01-JAN-85', '100860', '24', '31-DEC-85');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('45', '01-JUN-86', '100861', '36', '');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('42', '01-JAN-86', '100861', '33.6', '31-MAY-86');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('39', '01-JAN-85', '100861', '31.2', '31-DEC-85');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('2.8', '01-JAN-86', '100870', '2.4', '');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('2.4', '01-JAN-85', '100870', '1.9', '01-DEC-85');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('5.6', '01-JAN-86', '100871', '4.8', '');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('24', '15-FEB-85', '101860', '18', '');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('12.5', '15-FEB-85', '101863', '9.4', '');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('3.4', '18-AUG-85', '102130', '2.8', '');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('2.4', '15-NOV-86', '200376', '1.75', '');
INSERT INTO PRICE (STDPRICE, STARTDATE, PRODID, MINPRICE, ENDDATE)
VALUES ('4', '15-NOV-86', '200380', '3.2', '');
CREATE INDEX PRICE_INDEX ON PRICE(PRODID, STARTDATE);
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('100860', 'ACE TENNIS RACKET I');
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('100861', 'ACE TENNIS RACKET II');
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('100870', 'ACE TENNIS BALLS-3 PACK');
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('100871', 'ACE TENNIS BALLS-6 PACK');
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('100890', 'ACE TENNIS NET');
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('101860', 'SP TENNIS RACKET');
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('101863', 'SP JUNIOR RACKET');
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('102130', 'RH: "GUIDE TO TENNIS"');
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('200376', 'SB ENERGY BAR-6 PACK');
INSERT INTO PRODUCT (PRODID, DESCRIP)
VALUES ('200380', 'SB VITA SNACK-6 PACK');
CREATE SEQUENCE ORDID
INCREMENT BY 1
START WITH 622
NOCACHE;
CREATE SEQUENCE PRODID
INCREMENT BY 1
START WITH 200381
NOCACHE;
CREATE SEQUENCE CUSTID
INCREMENT BY 1
START WITH 109
NOCACHE;
CREATE VIEW SALES AS
SELECT REPID, ORD.CUSTID, CUSTOMER.NAME CUSTNAME, PRODUCT.PRODID,
DESCRIP PRODNAME, SUM(ITEMTOT) AMOUNT
FROM ORD, ITEM, CUSTOMER, PRODUCT
WHERE ORD.ORDID = ITEM.ORDID
AND ORD.CUSTID = CUSTOMER.CUSTID
AND ITEM.PRODID = PRODUCT.PRODID
GROUP BY REPID, ORD.CUSTID, NAME, PRODUCT.PRODID, DESCRIP;Cheers
Sarma.
Maybe you are looking for
-
I am trying to "upgrade" an old ibook g3 (800MHz) I have managed to get it up to OS 10.2.8 with automatic updates, but I would like to install OSX 10.4 Tiger (The most advanced compatible os for this ibook), But I have not managed to find anywhere on
-
Need help with startup Sync issue with Photoshop Elements 8.0
When starting up Photoshop Elements 8.0 a brief dialog appears about sync space being filled up with options for Cancel or Proceed. This is then quickly covered up by the frame showing Survey/Show What's New/etc... cannot get back to dialog about syn
-
Close a PO so that no further postings hit it
Help, I am interested in knowing how to close a PO so that no further invoices and goods receipts may be entered. Even when we have marked Final Invoice and Delivery complete boxes, we can still enter another invoice against that PO. We are using SRM
-
Sql server 2005 and jsp connectivity
hello everyone....am new to JSP...:-) i use apache tomcat server 4.1.37,SQL SERVER 2005(Studio express),dreamweaver cs3.. this is my first page... <%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHT
-
Speakable Items for all Apps?
We've installed two iMac G5's on walls in a new waiting room/meeting room. The wireless keyboards and mouse are put away so that they aren't stolen. I've activated Speakable Items, and a few commands are working great. Is it possible to find speakabl