Hi All
I've got a table which contains sensitive data and according to data protection policy we have to keep a record of every read/write of the data including a row identifier and the user who accessed the table. The writing is no issue using triggers but triggers aren't supported for SELECT statements.
What's the best method of doin...
hi
I have a warehouse_products table which defines how many products in the warehouses
so lets say I have 20 records/rows in the table, some rows may contain the same product id but in a different warehouse
I need to create select statement that give every product one row, and in this row I must have the quantity in warehouse A and wa...
I've tried looking around and there are similar problems, but mine is way more simple, but yet, I can't find a solution within these forums.
While learning jQuery, I'm trying to show a DIV when an item/option from a select drop down is selected, and hide that same DIV when any other option in the select drop down is selected.
select HT...
Hi,
I an SQL SELECT statement I need to extract the name of two teams, taking both teams from the same table. Eg Below
SELECT sport_activity_id, (team A), (team B), date, time
FROM sportactivity, teams
WHERE competition_id_fk = 2
For (team A) and (team B) I have an team_id, which is a FK for the table 'teams'
Is it possible to get...
Hey all, I have a server and a client running on two different machines where the client send()s but the server doesn't seem to receive the message. The server employs select() to monitor sockets for any incoming connections/messages. I can see that when the server accepts a new connection, it updates the fd_set array but always returns ...
Normally, we get first value that way:
$("#color option:first").val()
But I need something like
$(this.id option:first).val()
and of course it doesn't work.
...
Hi,
I've been doing some research and testing on how to do fast random selection in MySQL. In the process I've faced some unexpected results and now I am not fully sure I know how ORDER BY RAND() really works.
I always thought that when you do ORDER BY RAND() on the table, MySQL adds a new column to the table which is filled with rando...
HI
I have the following code and a massive problem:
WITH CALC1 AS (
SELECT OTQUOT, OTIT01 AS ITEMS, ROUND(OQCQ01 * OVRC01,2) AS COST
FROM @[email protected] WHERE OTIT01 <> ''
UNION ALL
SELECT OTQUOT, OTIT02 AS ITEMS, ROUND(OQCQ02 * OVRC02,2) AS COST
FROM @[email protected] WHERE OTIT02 <> ''
UNION ALL
SELECT OTQUOT, OTIT03 AS ITEMS, ROUND(OQC...
Hi Guys,
I have a stock table and I would like to create a report that will show how often were items ordered.
"stock" table:
item_id | pcs | operation
apples | 100 | order
oranges | 50 | order
apples | -100 | delivery
pears | 100 | order
oranges | -40 | delivery
apples | 50 | order
apples | 50 | delivery
Basically I...
I have the following code and it should return just one value (id) from mysql table. The following code doesnt work. How can I output it without creating arrays and all this stuff, just a simple output of one value.
$query = "SELECT id FROM users_entity WHERE username = 'Admin' ";
$result = map_query($query);
echo $result;
...
Please bare with me this is difficult to explain xD
http://img90.imageshack.us/i/croppercapture1.png/
This is based on an undergraduate degree course where a student takes many units (say 4 core units and 1 optional unit per year). tblAwardCoreUnits and tblAwardOptUnits store which units are optional and core for which award, hence the...
Hi,
Here's my problem:
I have 2 identical tables (past month data, current month data) - data_2010_03, data_2010_04:
Content_type (VARCHAR), content_id (INT), month_count (INT), pubDate (DATETIME)
Data in month_count is updated hourly, so for each combination of content_type and content_id we insert new row, where value of month_count ...
Hi Everyone,
I have this file 'gardens.php', which pulls data from a table called 'generalinfo' and I use fopen to send that data to a file called 'index.html'. Here is the issue, only one option is filled. I have a demo running here Garden Demo <-- this is a new updated page and location, there are more errors than I have locally If an...
I have a form with multiple dropdownlists on it. Some of them possess multiple values, others posess a blank choice and another random choice.
Using jQuery how do I detect which dropdowns have the blank choice selected AND have only one other choice THEN select that other choice.
I got the selector part down,
$("[id*='_ddl']").ea...
Preface:
If you don't care about the preface, skip down to the section marked "Question."
Hi,
Recently my company has upgraded to the latest version of WatiN for its test automation framework. We upgraded to avoid a problem where interacting with a select list would cause an ACCSES DENIED error. This error seems to be a product of t...
I have a select box that gives a description of a product along with a price. Depending on what the user selects, I'd like to automatically grab that dollar amount from the option selected and assign it to a price input field. My HTML:
<tr>
<td>
<select class="selector">
<option value="Item One $500">Item One $5...
Where can i find a jquery customized select list, that works even on IE?
...
Basically I have a table which is used to hold employee work wear details. It is formed of the columns:
EmployeeID, CostCentre, AssociateLevel, IssueDate, TrouserSize, TrouserLength, TopSize & ShoeSize.
An employee can be assigned a pair of trousers, a top and shoes at the same time or only one or two pieces of clothing. As we all k...
Hi,
I'm wondering if there's some clever way in MySQL to return a "mixed/balanced" dataset according to a specific criterion?
To illustrate, let's say that there are potential results in a table that can be of Type 1 or Type 2 (i.e. a column has a value 1 or 2 for each record). Is there a clever query that would be able to directly ret...
I just ran into a problem.
I know these integers, $integers: 3,5,15,20.
I only want to select the rows from this following table where all comma separated INT's from the field NUMBERS are found.
TABLE: number_table
Uid Numbers
------------------------
1 3,5,15 OK, since all of NUMBERS are in $integers
2 5,15,20 OK, since all ...