SUM function query
Hi guys! Hi, I am trying to solve the following exercise in order to practice my knowledge in sql. The exercise is located in: The JOIN operation - SQLZOO and the one I am stuck with is number 13,...
View ArticleHelp Decoding SQL - Hack Attempt?
In my mysql_slow_queries logs I am getting data like this, and I fear I am getting hacked... Can anyone explain what the code means? Code: # Thu Jan 31 01:49:42 2013 # Query_time: 4.551053 Lock_time:...
View ArticleHelp needed to set DB permissions
Hi all, Just joined this forum. Complete noob! I apologise upfront already for wasting time for my noob questions. I am installing some applications that require DB2 and there are two things that I not...
View Articlehow to join using comma seperated column?
i want to join two tables using common column, but in one table the column is having comma seperated values how can i join those tables? i try with like operator but not got exactly. please tell me the...
View Articledb2 instance is going into inactive state
Hi, I'm pretty new to db2. I have a shell script where we'll do first catalog database then restart db. While performing catalog it was successful, but when db2 restart was initiated it threw the error...
View ArticleInvestment ownership structures database design (M-to-M): hierarchy? graph?
Hi all, I am designing a database for my job that would be collecting information on:(1) financial flows related to investments in specific types of projects, gathering information along the way on (2)...
View ArticleHelp optimizing this crazy query
We have 4 table relationship, 2 main tables - "assets" and "products", a through table - "assets_products" and a products/price relationship. Here's the gist of the tables with only the relevant...
View ArticleNot Your Standard Time Query
Hello, I am looking for some help on this query.. I need to find how many minutes are in each 1/2 hour interval for each exception code.. Take a look at the raw data in the attached jpeg.. What I need...
View ArticleResults in one line
Hello all Is it possible to get all the lines of a query next to each other? I.e. if a query normally returns: A; B; C; D; Is it possible to display this result as: A;B;C;D Thanks and regards S. BASU
View ArticleMySQL 5.5 Replication Issue
Hi everyone, I am trying to do a POC on MySQL 5.5.29 enterprise edition (Trial version). For this purpose I set up two virtual machines, with same OS (RHEL 6) and MySQL version. I installed MySQL 5.5...
View ArticleCombo Box Help
Hello Again. I am having an issue with my combo box. The code I am using is not populating my other boxes. attached is my database. and form. This is the code I am using for the combo box. It is not...
View ArticleUpdate one record & OUTPUT two records
For a staging table Table TimeRange id binary(16), startTime datetime, endTime datetime, isValid tinyint There are two validation rules: starttime cannot be null, endTime cannot be null (assume that we...
View ArticleOracle form not getting displayed in IE browser
Hi, I have installed oracle 10g and generated a form .Now when I am compiling the form,its not getting displayed in the browser. In the browser,below lines are getting displayed. <html>...
View ArticleLocal Index/Range Partitioning (DB2-UDB V9.7 on AIX)
Can someone please explain the significance of local indexes with regards to Range Partitioning and how it works? What are the benefits? Thank you
View ArticleGeneral question about SQL standards
Hi, I'm coding a batch application using JDBC. The batch app insert data it reads from a file into a Oracle table. On error, its supposed to try to re-insert all rows from the beginning. In the end the...
View ArticleHow to subtract two values from two tables
Helllo everyone How are you ?? I need your help i attached a sample file, i want to know how can i make a Remaining hours that will take the teacher_observno from the teacher table and subtract it from...
View Articleerror when creating user temperory tablespace
HI when i try to create temperory table space, i am getting following error db2V9.7 on Red hat linux version 5 command what i executed --db2 create user temporay tablespace tempspc1 managed by database...
View ArticleSSIS Read Excel rows and create new output
Hi, I have an excel file with following data: Agent State Exposure Insured Name Rogers Inc MA 100,000 John Smith SAN Group RI 200,000 Jim Morrison SAN Group RI 100,000 Jimi Hendrix 123 Agency MA...
View Articlecreate or restore from Hot backup
hi, I have oracle 11.2.0.2 on Linux. I have question regarding that i have last week (1/26/2013) hot backup of database and cold backup from (dec 9 2012). and user needs data from the database but...
View Articledb2profile (Environment and Registry Variables) DB2 V9
Hi There, Please explain what a db2profile is and it's purpose along with the difference between Environment and Registry variables. My environment (AIX) does not allow us to sign on to the lpar using...
View Article